You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As such, it is not available and thus (correctly) not imported where the unguarded reference correctly causes a NameError.
The text was updated successfully, but these errors were encountered:
fkarg
changed the title
Bug: NameError: name 'PeftModel' is not defined due to broken imports
Bug: NameError: name 'PeftModel' is not defined due to unguarded reference
Sep 4, 2023
In version 0.7.1 (latest at time of writing), it is inevitable to get a
NameError
upon usage of the SFTTrainer.Occurances of
PeftModel
, such astrl/trl/trainer/sft_trainer.py
Line 141 in 34e6948
is_peft_available
, e.g.:trl/trl/trainer/sft_trainer.py
Line 134 in 34e6948
trl/trl/trainer/sft_trainer.py
Line 154 in 34e6948
As such, it is not available and thus (correctly) not imported where the unguarded reference correctly causes a
NameError
.The text was updated successfully, but these errors were encountered: