FastChat
FastChat copied to clipboard
fastchat.model.apply_delta error
Loading checkpoint shards: 100%|███████████████████████████████████████████████████████████████████| 41/41 [00:28<00:00, 1.44it/s]
Loading delta
Loading checkpoint shards: 100%|█████████████████████████████████████████████████████████████████████| 3/3 [00:18<00:00, 6.16s/it]
Traceback (most recent call last):
File "/data/anbo/anaconda3/envs/chat/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/data/anbo/anaconda3/envs/chat/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/data/anbo/github/FastChat-main/fastchat/model/apply_delta.py", line 49, in
tokenizers==0.12.1 toolz==0.12.0 torch==2.0.0 tqdm==4.65.0 transformers==4.28.0.dev0
sentencepiece==0.1.97 sentry-sdk==1.17.0 setproctitle==1.3.2 setuptools-rust==1.5.2 six==1.16.0
Had a similar issue, did a couple things and was able to apply the deltas, I'm not sure which specific one worked.
Using conda on wsl:
conda create -n fastchat python=3.9
conda activate fastchat
pip3 install fschat
pip install git+https://github.com/huggingface/transformers@cae78c46d
python3 -m fastchat.model.apply_delta --base /path/to/llama13b --target /path/to/vicuna13b --delta lmsys/vicuna-13b-delta-v0
Specific changes:
- Using this version of hugging face transformers, instead of latest: transformers@cae78c46d
- Switched from using a downloaded version of the deltas to the ones hosted on hugging face.
Had a similar issue, did a couple things and was able to apply the deltas, I'm not sure which specific one worked.
Using conda on wsl:
conda create -n fastchat python=3.9 conda activate fastchat pip3 install fschat pip install git+https://github.com/huggingface/transformers@cae78c46d python3 -m fastchat.model.apply_delta --base /path/to/llama13b --target /path/to/vicuna13b --delta lmsys/vicuna-13b-delta-v0
Specific changes:
- Using this version of hugging face transformers, instead of latest: transformers@cae78c46d
- Switched from using a downloaded version of the deltas to the ones hosted on hugging face.
I followed the steps above, but still encounter the same error. My error occurs during the loading process of the 41st file, which is different from the one mentioned above.
@AmpleSoros what is your /path/to/llama13b
I know it has to be model directory. I am actually asking for where did you get model?
@AmpleSoros what is your
/path/to/llama13b
I know it has to be model directory. I am actually asking for where did you get model?
https://huggingface.co/decapoda-research/llama-13b-hf
Please use the Vicuna 1.1 new weight delta and new apply_delta script, which shouldn't have any issue.
Feel free to re-open if you find any issue!
我遇到了同样的问题,经过检查,是我的vicuna_delta_weights文件夹中缺少了tokenzier.model这个文件