huggingface / alignment-handbook

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

huggingface_hub version #94

Closed Harry-mic closed 6 months ago

Harry-mic commented 6 months ago

Hello! I encounter an issue when pip the repo.

After I install the requirements and try : ACCELERATE_LOG_LEVEL=info accelerate launch --config_file recipes/accelerate_configs/multi_gpu.yaml --num_processes=1 scripts/run_dpo.py recipes/accelerate_configs/deepspeed_zero3.yaml scripts/run_dpo.py recipes/zephyr-7b-beta/dpo/config_lora.yaml, it came an error: cannot import name 'HF_HOME' from 'huggingface_hub.constants', Could you please give a feasible version of huggingface_hub, tokenizers and transformers you use? Mine is huggingface_hub==0.17.3, tokenizers==0.14.0,transformers ==4.35.0

bugface commented 6 months ago

https://github.com/huggingface/huggingface_hub/releases/tag/v0.19.2

huggingface_hub>=0.19.2 should work.