winglian commited on
Commit
c7e344a
1 Parent(s): 8a8aa43

Update modeling_llama.py

Browse files
Files changed (1) hide show
  1. modeling_llama.py +1 -1
modeling_llama.py CHANGED
@@ -91,7 +91,7 @@ class MightyLlamaModel(LlamaModel):
91
  all_self_attns = () if output_attentions else None
92
  next_decoder_cache = None
93
 
94
- layer_order = list(range(0, 3)) + [x for _ in range(1) for x in range(4, 17)] + list(range(18, len(self.layers)))
95
  for idx, layer_idx in enumerate(layer_order):
96
  decoder_layer = self.layers[layer_idx]
97
  if output_hidden_states:
 
91
  all_self_attns = () if output_attentions else None
92
  next_decoder_cache = None
93
 
94
+ layer_order = list(range(0, 3)) + [x for _ in range(16) for x in range(4, 17)] + list(range(18, len(self.layers)))
95
  for idx, layer_idx in enumerate(layer_order):
96
  decoder_layer = self.layers[layer_idx]
97
  if output_hidden_states: