trlx icon indicating copy to clipboard operation
trlx copied to clipboard

maybe bug in prepare & load's order

Open daiwk opened this issue 2 years ago • 1 comments

🐛 Describe the bug

https://github.com/CarperAI/trlx/blob/main/trlx/trlx.py#L140 this load function may be called after prepare in https://github.com/CarperAI/trlx/blob/main/trlx/trainer/accelerate_base_trainer.py#L86 according to https://huggingface.co/docs/accelerate/usage_guides/checkpoint

this may cause the loading not work actually, such as deepspeed model

Which trlX version are you using?

No response

Additional system and package information

No response

daiwk avatar Jul 27 '24 21:07 daiwk

this commit could help in my situation https://github.com/Jingru/trlx/commit/39f1ae9bbea2dc5d12688cdd64ebe2307fd7b2c3

daiwk avatar Jul 28 '24 08:07 daiwk