Any-to-Any
Transformers
GGUF
conversational

New gemma-4-12B-it-qat Image Didn't work on Ollama version 0.32.0

#6
by ytooyama - opened

When you run it, the following error will be displayed:

% ollama run hf.co/google/gemma-4-12B-it-qat-q4_0-gguf:Q4_0
Error: 500 Internal Server Error: llama-server process has terminated: GGML_ASSERT(id_to_token.size() == token_to_id.size()) failed: GGML_ASSERT(id_to_token.size() == token_to_id.size()) failed

% sw_vers
ProductName:            macOS
ProductVersion:         26.5.2
BuildVersion:           25F84
% arch
arm64

Same with latest llama.cpp (10054 ac2557cb2):

❯ llama-cli -hf google/gemma-4-12B-it-qat-q4_0-gguf:Q4_0

Loading model... //home/runner/work/llama.cpp/llama.cpp/src/llama-vocab.cpp:2447: GGML_ASSERT(id_to_token.size() == token_to_id.size()) failed
/home/ssmith/services/llama/llama-b10054/libggml-base.so.0(+0x1c79b) [0x7fe78a74f79b]
/home/ssmith/services/llama/llama-b10054/libggml-base.so.0(ggml_print_backtrace+0x21f) [0x7fe78a74fc1f]
/home/ssmith/services/llama/llama-b10054/libggml-base.so.0(ggml_abort+0x152) [0x7fe78a74fdf2]
/home/ssmith/services/llama/llama-b10054/libllama.so.0(_ZN11llama_vocab4impl4loadER18llama_model_loaderRK6LLM_KV+0x44d3) [0x7fe7893ceca3]
/home/ssmith/services/llama/llama-b10054/libllama.so.0(_ZN16llama_model_base10load_vocabER18llama_model_loader+0x44) [0x7fe78938def4]
/home/ssmith/services/llama/llama-b10054/libllama.so.0(+0xc45ef) [0x7fe7892c45ef]
/home/ssmith/services/llama/llama-b10054/libllama.so.0(+0xc5d42) [0x7fe7892c5d42]
/home/ssmith/services/llama/llama-b10054/libllama.so.0(llama_model_load_from_file+0xb6) [0x7fe7892c60a6]
/home/ssmith/services/llama/llama-b10054/libllama-common.so.0(+0x247013) [0x7fe789847013]
/home/ssmith/services/llama/llama-b10054/libllama-common.so.0(+0x2480a2) [0x7fe7898480a2]
/home/ssmith/services/llama/llama-b10054/libllama-common.so.0(_Z17common_fit_paramsPKcP18llama_model_paramsP20llama_context_paramsPfP32llama_model_tensor_buft_overridePmj14ggml_log_level+0x52) [0x7fe78984bb32]
/home/ssmith/services/llama/llama-b10054/libllama-common.so.0(_ZN18common_init_resultC2ER13common_paramsb+0x105) [0x7fe78981da55]
/home/ssmith/services/llama/llama-b10054/libllama-common.so.0(_Z23common_init_from_paramsR13common_paramsb+0x4c) [0x7fe78981f0bc]
/home/ssmith/services/llama/llama-b10054/libllama-server-impl.so(_ZN19server_context_impl10load_modelER13common_params+0xade) [0x7fe789db002e]
/home/ssmith/services/llama/llama-b10054/libllama-server-impl.so(_Z12llama_serverR13common_paramsiPPc+0x39b3) [0x7fe789ce1753]
/home/ssmith/services/llama/llama-b10054/libllama-cli-impl.so(_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN10cli_server5startER13common_paramsEUlvE_EEEEE6_M_runEv+0x15) [0x7fe78afbae75]
/lib/x86_64-linux-gnu/libstdc++.so.6(+0xe1224) [0x7fe78a4e1224]
/lib/x86_64-linux-gnu/libc.so.6(+0x92b7b) [0x7fe78a29eb7b]
/lib/x86_64-linux-gnu/libc.so.6(+0x1107f8) [0x7fe78a31c7f8]
Aborted

hey, sorry, we've just fixed the GGUF, it was malformed. everything should work now.

Sign up or log in to comment