Update llama.py
This commit is contained in:
parent
e887f43b52
commit
95f872dedc
1 changed files with 2 additions and 2 deletions
|
|
@ -2657,9 +2657,9 @@ class FastLlamaModel:
|
|||
pass
|
||||
m = model
|
||||
while hasattr(m, "model"):
|
||||
_for_inference(m)
|
||||
_for_training(m)
|
||||
m = m.model
|
||||
_for_inference(m)
|
||||
_for_training(m)
|
||||
|
||||
# Also re-enable training for embeddings for NEFTune
|
||||
if hasattr(model, "get_input_embeddings"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue