LMFlow icon indicating copy to clipboard operation
LMFlow copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: '.\\output_models\\llama_7b_lora\\7B\\params.json'

Open NingBoHao opened this issue 2 years ago • 5 comments

(lmflow) PS E:\LMFlow-main\LMFlow-main> python ./scripts/convert_llama_weights_to_hf.py --input_dir .\output_models\llama_7b_lora\ --model_size 7B --output_dir .\output_models\llama-7b-hf
Traceback (most recent call last): File "E:\LMFlow-main\LMFlow-main\scripts\convert_llama_weights_to_hf.py", line 279, in main() File "E:\LMFlow-main\LMFlow-main\scripts\convert_llama_weights_to_hf.py", line 267, in main write_model( File "E:\LMFlow-main\LMFlow-main\scripts\convert_llama_weights_to_hf.py", line 80, in write_model params = read_json(os.path.join(input_base_path, "params.json")) File "E:\LMFlow-main\LMFlow-main\scripts\convert_llama_weights_to_hf.py", line 66, in read_json with open(path, "r") as f: FileNotFoundError: [Errno 2] No such file or directory: '.\output_models\llama_7b_lora\7B\params.json' (lmflow) PS E:\LMFlow-main\LMFlow-main>

NingBoHao avatar Apr 24 '23 15:04 NingBoHao

To download the model, please go to the 'output_models' folder and execute 'bash download.sh all'.

shizhediao avatar Apr 24 '23 15:04 shizhediao

下载之后出现的 image

NingBoHao avatar Apr 24 '23 15:04 NingBoHao

是不是可以修改这个代码 image

NingBoHao avatar Apr 24 '23 15:04 NingBoHao

image

NingBoHao avatar Apr 24 '23 15:04 NingBoHao

You can use the downloaded files without any changes. Please refer to our Chinese version documentation for more information about setting up and tuning models. Thanks https://github.com/OptimalScale/LMFlow/blob/main/readme/README_zh-hans.md

shizhediao avatar Apr 25 '23 02:04 shizhediao

This issue has been marked as stale because it has not had recent activity. If you think this still needs to be addressed please feel free to reopen this issue. Thanks

shizhediao avatar May 15 '23 00:05 shizhediao