Closed hsyodyssey closed 9 months ago
Please try using the peft version in our repo, as it is strongly bound.
Please try using the peft version in our repo, as it is strongly bound.
Yep, I just created a new env and run $ pip install -r requirements.txt
directly.
I think it is because in requirements.txt only requiring peft>=0.3.0. Thus, the latest version would be downloaded.
Collecting peft>=0.3.0 (from -r requirements.txt (line 1))
Downloading peft-0.6.2-py3-none-any.whl.metadata (23 kB)
Collecting torch==2.0.1 (from -r requirements.txt (line 2))
Using cached torch-2.0.1-cp311-cp311-manylinux1_x86_64.whl (619.9 MB)
Collecting transformers==4.35.0 (from -r requirements.txt (line 3))
Downloading transformers-4.35.0-py3-none-any.whl.metadata (123 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.1/123.1 kB 7.3 MB/s eta 0:00:00
Collecting sentencepiece==0.1.99 (from -r requirements.txt (line 4))
Downloading sentencepiece-0.1.99-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 50.0 MB/s eta 0:00:00
Collecting bitsandbytes==0.41.1 (from -r requirements.txt (line 5))
You are right, some parameters of the old version and the new version of peft are not compatible, you can delete the relevant parameters or install the earlier version of peft.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your consideration.
Closing the issue, since no updates observed. Feel free to re-open if you need any further assistance.
Check before submitting issues
Type of Issue
Model conversion and merging
Base Model
Chinese-LLaMA-2 (7B/13B)
Operating System
Linux
Describe your issue in detail
According to the issue here, parameters " "enable_lora": null," and "merge_weights": false," in adapter_config.json file are dismissed in the latest huggingface/peft repo.
Would be better to delete them when doing manually merge locally. Otherwise, shall meet the following issues:
Dependencies (must be provided for code-related issues)
Execution logs or screenshots
One
Two