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

Gemma-2-2b gguf conversion error #1486

Open
176deepak opened this issue Dec 29, 2024 · 0 comments
Open

Gemma-2-2b gguf conversion error #1486

176deepak opened this issue Dec 29, 2024 · 0 comments

Comments

@176deepak
Copy link

Hi Team,

I recently fine-tuned the Gemma 2 2B model and want to use it with Ollama. I followed the instructions provided in the documentation, but encountered an error while converting the fine-tuned LoRA to gguf for llama.cpp.

if True: model.save_pretrained_gguf("model/", tokenizer)
Unsloth: ##### The current model auto adds a BOS token.
Unsloth: ##### Your chat template has a BOS token. We shall remove it temporarily.
Unsloth: Merging 4bit and LoRA weights to 16bit...
Unsloth: Will use up to 6.67 out of 12.67 RAM for saving.
Unsloth: Saving model... This might take 5 minutes ...
100%|██████████| 26/26 [00:01<00:00, 24.40it/s]
Unsloth: Saving tokenizer... Done.
Unsloth: Saving model/pytorch_model-00001-of-00002.bin...
Unsloth: Saving model/pytorch_model-00002-of-00002.bin...
Done.
==((====))==  Unsloth: Conversion from QLoRA to GGUF information
   \\   /|    [0] Installing llama.cpp might take 3 minutes.
O^O/ \_/ \    [1] Converting HF to GGUF 16bits might take 3 minutes.
\        /    [2] Converting GGUF 16bits to ['q8_0'] might take 10 minutes each.
 "-____-"     In total, you will have to wait at least 16 minutes.

Unsloth: Installing llama.cpp. This might take 3 minutes...
Unsloth: [1] Converting model at model/ into q8_0 GGUF format.
The output location will be /content/model/unsloth.Q8_0.gguf
This might take 3 minutes...
INFO:hf-to-gguf:Loading model: model
INFO:gguf.gguf_writer:gguf: This GGUF file is for Little Endian only
INFO:hf-to-gguf:Exporting model...
INFO:hf-to-gguf:gguf: loading model weight map from 'pytorch_model.bin.index.json'
INFO:hf-to-gguf:gguf: loading model part 'pytorch_model-00001-of-00002.bin'
INFO:hf-to-gguf:token_embd.weight,                 torch.float16 --> Q8_0, shape = {2304, 256000}
INFO:hf-to-gguf:blk.0.attn_q.weight,               torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.0.attn_k.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.0.attn_v.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.0.attn_output.weight,          torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.0.ffn_gate.weight,             torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.0.ffn_up.weight,               torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.0.ffn_down.weight,             torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.0.attn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.0.post_attention_norm.weight,  torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.0.ffn_norm.weight,             torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.0.post_ffw_norm.weight,        torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.1.attn_q.weight,               torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.1.attn_k.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.1.attn_v.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.1.attn_output.weight,          torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.1.ffn_gate.weight,             torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.1.ffn_up.weight,               torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.1.ffn_down.weight,             torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.1.attn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.1.post_attention_norm.weight,  torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.1.ffn_norm.weight,             torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.1.post_ffw_norm.weight,        torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.2.attn_q.weight,               torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.2.attn_k.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.2.attn_v.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.2.attn_output.weight,          torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.2.ffn_gate.weight,             torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.2.ffn_up.weight,               torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.2.ffn_down.weight,             torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.2.attn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.2.post_attention_norm.weight,  torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.2.ffn_norm.weight,             torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.2.post_ffw_norm.weight,        torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.3.attn_q.weight,               torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.3.attn_k.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.3.attn_v.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.3.attn_output.weight,          torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.3.ffn_gate.weight,             torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.3.ffn_up.weight,               torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.3.ffn_down.weight,             torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.3.attn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.3.post_attention_norm.weight,  torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.3.ffn_norm.weight,             torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.3.post_ffw_norm.weight,        torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.4.attn_q.weight,               torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.4.attn_k.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.4.attn_v.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.4.attn_output.weight,          torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.4.ffn_gate.weight,             torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.4.ffn_up.weight,               torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.4.ffn_down.weight,             torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.4.attn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.4.post_attention_norm.weight,  torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.4.ffn_norm.weight,             torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.4.post_ffw_norm.weight,        torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.5.attn_q.weight,               torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.5.attn_k.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.5.attn_v.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.5.attn_output.weight,          torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.5.ffn_gate.weight,             torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.5.ffn_up.weight,               torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.5.ffn_down.weight,             torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.5.attn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.5.post_attention_norm.weight,  torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.5.ffn_norm.weight,             torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.5.post_ffw_norm.weight,        torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.6.attn_q.weight,               torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.6.attn_k.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.6.attn_v.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.6.attn_output.weight,          torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.6.ffn_gate.weight,             torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.6.ffn_up.weight,               torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.6.ffn_down.weight,             torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.6.attn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.6.post_attention_norm.weight,  torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.6.ffn_norm.weight,             torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.6.post_ffw_norm.weight,        torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.7.attn_q.weight,               torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.7.attn_k.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.7.attn_v.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.7.attn_output.weight,          torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.7.ffn_gate.weight,             torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.7.ffn_up.weight,               torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.7.ffn_down.weight,             torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.7.attn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.7.post_attention_norm.weight,  torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.7.ffn_norm.weight,             torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.7.post_ffw_norm.weight,        torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.8.attn_q.weight,               torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.8.attn_k.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.8.attn_v.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.8.attn_output.weight,          torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.8.ffn_gate.weight,             torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.8.ffn_up.weight,               torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.8.ffn_down.weight,             torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.8.attn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.8.post_attention_norm.weight,  torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.8.ffn_norm.weight,             torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.8.post_ffw_norm.weight,        torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.9.attn_q.weight,               torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.9.attn_k.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.9.attn_v.weight,               torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.9.attn_output.weight,          torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.9.ffn_gate.weight,             torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.9.ffn_up.weight,               torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.9.ffn_down.weight,             torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.9.attn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.9.post_attention_norm.weight,  torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.9.ffn_norm.weight,             torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.9.post_ffw_norm.weight,        torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.10.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.10.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.10.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.10.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.10.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.10.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.10.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.10.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.10.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.10.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.10.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.11.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.11.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.11.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.11.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.11.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.11.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.11.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.11.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.11.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.11.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.11.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.12.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.12.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.12.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.12.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.12.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.12.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.12.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.12.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.12.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.12.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.12.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.13.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.13.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.13.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.13.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.13.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.13.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.13.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.13.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.13.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.13.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.13.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.14.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.14.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.14.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.14.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.14.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.14.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.14.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.14.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.14.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.14.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.14.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.15.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.15.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.15.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.15.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.15.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.15.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.15.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.15.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.15.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.15.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.15.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.16.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.16.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.16.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.16.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.16.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.16.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.16.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.16.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.16.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.16.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.16.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.17.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.17.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.17.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.17.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.17.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.17.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.17.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.17.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.17.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.17.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.17.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.18.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.18.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.18.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.18.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.18.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.18.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.18.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.18.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.18.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.18.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.18.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.19.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.19.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.19.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.19.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.19.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.19.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.19.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.19.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.19.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.19.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.19.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.20.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.20.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.20.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.20.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.20.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.20.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.20.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.20.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.20.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.20.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.20.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.21.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.21.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.21.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.21.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.21.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.21.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.21.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.21.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.21.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.21.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.21.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.22.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.22.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.22.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.22.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.22.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.22.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.22.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.22.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.22.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.22.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.22.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.23.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.23.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.23.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.23.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.23.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.23.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.23.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.23.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.23.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.23.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.23.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.24.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.24.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.24.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.24.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.24.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:gguf: loading model part 'pytorch_model-00002-of-00002.bin'
INFO:hf-to-gguf:blk.24.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.24.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.24.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.24.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.24.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.24.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.25.attn_q.weight,              torch.float16 --> Q8_0, shape = {2304, 2048}
INFO:hf-to-gguf:blk.25.attn_k.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.25.attn_v.weight,              torch.float16 --> Q8_0, shape = {2304, 1024}
INFO:hf-to-gguf:blk.25.attn_output.weight,         torch.float16 --> Q8_0, shape = {2048, 2304}
INFO:hf-to-gguf:blk.25.ffn_gate.weight,            torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.25.ffn_up.weight,              torch.float16 --> Q8_0, shape = {2304, 9216}
INFO:hf-to-gguf:blk.25.ffn_down.weight,            torch.float16 --> Q8_0, shape = {9216, 2304}
INFO:hf-to-gguf:blk.25.attn_norm.weight,           torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.25.post_attention_norm.weight, torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.25.ffn_norm.weight,            torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:blk.25.post_ffw_norm.weight,       torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:output_norm.weight,                torch.float16 --> F32, shape = {2304}
INFO:hf-to-gguf:Set meta model
INFO:hf-to-gguf:Set model parameters
INFO:hf-to-gguf:Set model tokenizer
Traceback (most recent call last):
  File "/content/llama.cpp/convert_hf_to_gguf.py", line 4894, in <module>
    main()
  File "/content/llama.cpp/convert_hf_to_gguf.py", line 4888, in main
    model_instance.write()
  File "/content/llama.cpp/convert_hf_to_gguf.py", line 439, in write
    self.prepare_metadata(vocab_only=False)
  File "/content/llama.cpp/convert_hf_to_gguf.py", line 432, in prepare_metadata
    self.set_vocab()
  File "/content/llama.cpp/convert_hf_to_gguf.py", line 3155, in set_vocab
    self._set_vocab_sentencepiece()
  File "/content/llama.cpp/convert_hf_to_gguf.py", line 780, in _set_vocab_sentencepiece
    tokens, scores, toktypes = self._create_vocab_sentencepiece()
  File "/content/llama.cpp/convert_hf_to_gguf.py", line 797, in _create_vocab_sentencepiece
    raise FileNotFoundError(f"File not found: {tokenizer_path}")
FileNotFoundError: File not found: model/tokenizer.model
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
[<ipython-input-12-d84031104098>](https://localhost:8080/#) in <cell line: 1>()
----> 1 if True: model.save_pretrained_gguf("model/", tokenizer)

1 frames
[/usr/local/lib/python3.10/dist-packages/unsloth/save.py](https://localhost:8080/#) in save_to_gguf(model_type, model_dtype, is_sentencepiece, model_directory, quantization_method, first_conversion, _run_installer)
   1194                 )
   1195         else:
-> 1196             raise RuntimeError(
   1197                 f"Unsloth: Quantization failed for {final_location}\n"\
   1198                 "You might have to compile llama.cpp yourself, then run this again.\n"\

RuntimeError: Unsloth: Quantization failed for /content/model/unsloth.Q8_0.gguf
You might have to compile llama.cpp yourself, then run this again.
You do not need to close this Python program. Run the following commands in a new terminal:
You must run this in the same folder as you're saving your model.
git clone --recursive https://github.com/ggerganov/llama.cpp
cd llama.cpp && make clean && make all -j
Once that's done, redo the quantization.
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

1 participant