Update llama.py
This commit is contained in:
parent
30ddeca3e2
commit
fad6c2d96f
1 changed files with 1 additions and 4 deletions
|
|
@ -599,11 +599,8 @@ def LlamaModel_fast_forward(
|
|||
else:
|
||||
boundaries = None
|
||||
pass
|
||||
|
||||
# Find which layers to do gradient checkpointing
|
||||
n_layers = len(self.layers)
|
||||
|
||||
for idx, decoder_layer in enumerate(n_layers):
|
||||
for idx, decoder_layer in enumerate(self.layers):
|
||||
if output_hidden_states:
|
||||
all_hidden_states += (hidden_states,)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue