[GH-ISSUE #6088] Ollama运行Huggingface中下载的sqlcoder-34b-alpha模型报错:error loading model: vocab size mismatch #29565

Open
opened 2026-04-22 08:33:06 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Crazyisme on GitHub (Jul 31, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6088

What is the issue?

执行命令:ollama run sqlcoder-34b-Q4_K_M
报错信息:
llama_model_load: error loading model: vocab size mismatch
llama_load_model_from_file: exception loading model
terminate called after throwing an instance of 'std::runtime_error'
what(): vocab size mismatch

前置信息:通过llamap.cpp 执行了命令:

  1. python ./convert_hf_to_gguf.py /home/user/datadisk-largemodel/sqlcoder-34b-alpha/ --outfile /home/user/datadisk-largemodel/sqlcoder-34b-alpha/sqlcoder-34b.gguf
  2. ./llama-quantize /home/user/datadisk-largemodel/sqlcoder-34b-alpha/sqlcoder-34b.gguf /home/user/datadisk-largemodel/sqlcoder-34b-alpha/sqlcoder-34b-Q4_K_M.gguf Q4_K_M

OS

Linux

GPU

Nvidia

CPU

No response

Ollama version

0.3.0

Originally created by @Crazyisme on GitHub (Jul 31, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6088 ### What is the issue? 执行命令:ollama run sqlcoder-34b-Q4_K_M 报错信息: llama_model_load: error loading model: vocab size mismatch llama_load_model_from_file: exception loading model terminate called after throwing an instance of 'std::runtime_error' what(): vocab size mismatch 前置信息:通过llamap.cpp 执行了命令: 1. python ./convert_hf_to_gguf.py /home/user/datadisk-largemodel/sqlcoder-34b-alpha/ --outfile /home/user/datadisk-largemodel/sqlcoder-34b-alpha/sqlcoder-34b.gguf 2. ./llama-quantize /home/user/datadisk-largemodel/sqlcoder-34b-alpha/sqlcoder-34b.gguf /home/user/datadisk-largemodel/sqlcoder-34b-alpha/sqlcoder-34b-Q4_K_M.gguf Q4_K_M ### OS Linux ### GPU Nvidia ### CPU _No response_ ### Ollama version 0.3.0
GiteaMirror added the bug label 2026-04-22 08:33:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#29565