Closed Tizzzzy closed 2 weeks ago
Hi, seems like you're using an old llama-recipes version (pypi releases are sadly lagging behind quite a bit) as we've switched to prepare_model_for_kbit_training some time ago https://github.com/meta-llama/llama-recipes/blob/fb7dd3a3270031e407338027e3f6fbea2b8e431e/src/llama_recipes/finetuning.py#L11
Please update llama-recipes from source by running:
git checkout main && git pull && pip install -U .
in the repo main directory.
Closing this issue , feel free to reopen if there are more questions. btw we just updated the pypi package.
System Info
All other packages are the same as the
requirments.txt
Information
🐛 Describe the bug
I am new to llama-recipe, I am trying to finetune llama3 on a huggingface dataset "openbookqa". I used this command to run:
python -m llama_recipes.finetuning --dataset "openbookqa" --custom_dataset.file "datasets/openbookqa_dataset.py" --batching_strategy "packing"
. However I got this error:I followed the README instruction. I git clone the repo. I did
pip install llama-recipes
. I also didpip install -r requirements.txt
I did some research on this error, and some people said
prepare_model_for_int8_training
has been deprecated for quite some time, with PEFT v0.10.0, useprepare_model_for_kbit_training
instead.However, if this is the case, I don't know which file I need to change.
Error logs
Expected behavior
I expect I can finetune llama3