huggingface / alignment-handbook

Robust recipes to align language models with human and AI preferences
https://huggingface.co/HuggingFaceH4
Apache License 2.0
4.28k stars 367 forks source link

Question about "ModuleNotFoundError: No module named 'alignment'" #37

Open liugangdao opened 8 months ago

liugangdao commented 8 months ago

Prectise in python shell is successed, but error is exist when I used "accelarate launch"....

fblgit commented 8 months ago

follow the guide, ensure pip / pip3 are he ones your python command path bin is targeting.

gaoshiping commented 7 months ago

maybe you can add the /alignment-handbook/src into the sys path. use import sys and sys.path.apeend(path to /alignment-handbook/src)