-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PEFT version conflict #13
Comments
Hello! So if you only need to infer, you don't have to strictly follow requirements.txt. It is flexible. |
Hi! Thanks for your response :) Those versions work fine when running inference on the base model. The conflicts I found arise when trying to do it after fine-tuning on a user-defined set of instructions. I tried fine-tuning with the requirements.txt libraries versions, then installing those other versions of the libraries you mentioned, then running the infer.py script and got, again, an error related to PEFT:
Any guidance on how to proceed would be much appreciated, as I think it could benefit us all who want to experiment with ProLLaMA 🙌🏻 |
Thanks for you suggestion and debugging! I will fix it soon. |
Hello! I have updated the codes for easier usage. You could check the README.md for what is changed. I run the run_it.sh on a toy dataset in my python environment sucessfully:
After training, I get a model in ./save_dir_merged/. And I run the below succefully:
I just use the newest pip package of tranformers, peft, etc. I think the package version is not strict. My environment is:
Please let me know if you have any questions. Best regards |
Hello again and thank you so much, the new Just four comments before closing this issue:
Best regards! |
Thanks for your valuable suggestions! Below are my suggestions:
Then you don't have to type it per time. Sorry for the late reply. Best regards! |
Hello @Lyu6PosHao ! Thank you for your suggestions :) I have one more question. I saw that, when executing fine-tuning, the script doesn't make use of a validation split, it just uses every JSON file in the |
Hi! I'm facing library conflicts while trying to fine-tune and generate sequences using this repository. Here's a breakdown of my setup and the issue:
Setup
pip install -r requirements.txt
.example.json
with mytrain_split.json
file (shown below) in theinstruction_tuning_dataset
folder.deepspeed
anddatasets
) manually.run_it.sh
, saving the fine-tuned model in thesave_dir
folder.CUDA_VISIBLE_DEVICES=0 python ProLLaMA/scripts/infer.py --model "save_dir/sft_lora_model/" --interactive
train_split.json Example
Error Encountered
While running the inference script, I encountered the following error:
Issue Description
Installing an updated version of PEFT to resolve the error creates compatibility issues with huggingface_hub. I’m unsure how to resolve this version conflict without breaking other dependencies.
Can someone provide guidance on how to proceed? Thanks in advance!
The text was updated successfully, but these errors were encountered: