Skip to content
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

failed to convert llama_2 7B model in .gguf to .bin format #527

Open
adi-lb-phoenix opened this issue Jun 20, 2024 · 2 comments
Open

failed to convert llama_2 7B model in .gguf to .bin format #527

adi-lb-phoenix opened this issue Jun 20, 2024 · 2 comments

Comments

@adi-lb-phoenix
Copy link

I have tried to convert llama 2 model from .gguf to .bin

~/llm_inferences/llama.cpp/models/meta$ ls
llama-2-7b.Q4_K_M.gguf

python3 export.py llama2_7b.bin --meta-llama /home/####/llm_inferences/llama.cpp/models
Traceback (most recent call last):
  File "/home/aadithya.bhat/llm_inferences/llama2.c/export.py", line 559, in <module>
    model = load_meta_model(args.meta_llama)
  File "/home/aadithya.bhat/llm_inferences/llama2.c/export.py", line 373, in load_meta_model
    with open(params_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/aadithya.bhat/llm_inferences/llama.cpp/models/params.json'

I have downloaded this model from https://huggingface.co/TheBloke/Llama-2-7B-GGUF, the model with name ending with Q4_K.gguf

@adi-lb-phoenix adi-lb-phoenix changed the title failed to convert llama_2 7B model .gguf to .bin failed to convert llama_2 7B model in .gguf to .bin format Jun 20, 2024
@chsasank
Copy link

llama2.c supports conversion of original llama2 checkpoints, not quantised ones in gguf format.

@adi-lb-phoenix
Copy link
Author

Yes noted. I did not follow the instructions carefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants