llama_model_load: error loading model: create_tensor: tensor 'output_norm.weight' not found

#3
by kiopuy - opened

I am encountering an issue while loading the model. Please help.

llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
llama_model_loader: - kv 0: general.architecture str = llama
llama_model_loader: - kv 1: general.name str = merged_model_multiling
llama_model_loader: - kv 2: llama.block_count u32 = 56
llama_model_loader: - kv 3: llama.context_length u32 = 65536
llama_model_loader: - kv 4: llama.embedding_length u32 = 6144
llama_model_loader: - kv 5: llama.feed_forward_length u32 = 16384
llama_model_loader: - kv 6: llama.attention.head_count u32 = 48
llama_model_loader: - kv 7: llama.attention.head_count_kv u32 = 8
llama_model_loader: - kv 8: llama.rope.freq_base f32 = 1000000.000000
llama_model_loader: - kv 9: llama.attention.layer_norm_rms_epsilon f32 = 0.000010
llama_model_loader: - kv 10: llama.expert_count u32 = 8
llama_model_loader: - kv 11: llama.expert_used_count u32 = 2
llama_model_loader: - kv 12: general.file_type u32 = 12
llama_model_loader: - kv 13: llama.vocab_size u32 = 32000
llama_model_loader: - kv 14: llama.rope.dimension_count u32 = 128
llama_model_loader: - kv 15: tokenizer.ggml.model str = llama
llama_model_loader: - kv 16: tokenizer.ggml.tokens arr[str,32000] = ["", "", "", "<0x00>", "<...
llama_model_loader: - kv 17: tokenizer.ggml.scores arr[f32,32000] = [0.000000, 0.000000, 0.000000, 0.0000...
llama_model_loader: - kv 18: tokenizer.ggml.token_type arr[i32,32000] = [2, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 6, ...
llama_model_loader: - kv 19: tokenizer.ggml.bos_token_id u32 = 1
llama_model_loader: - kv 20: tokenizer.ggml.eos_token_id u32 = 2
llama_model_loader: - kv 21: tokenizer.ggml.unknown_token_id u32 = 0
llama_model_loader: - kv 22: tokenizer.ggml.padding_token_id u32 = 2
llama_model_loader: - kv 23: tokenizer.ggml.add_bos_token bool = true
llama_model_loader: - kv 24: tokenizer.ggml.add_eos_token bool = false
llama_model_loader: - kv 25: tokenizer.chat_template str = {{ bos_token }}{% for message in mess...
llama_model_loader: - kv 26: general.quantization_version u32 = 2
llama_model_loader: - kv 27: split.no u16 = 0
llama_model_loader: - kv 28: split.count u16 = 5
llama_model_loader: - kv 29: split.tensors.count i32 = 563
llama_model_loader: - type f32: 24 tensors
llama_model_loader: - type f16: 13 tensors
llama_model_loader: - type q8_0: 26 tensors
llama_model_loader: - type q3_K: 39 tensors
llama_model_loader: - type q4_K: 10 tensors
llama_model_loader: - type q5_K: 16 tensors
llm_load_vocab: special tokens definition check successful ( 259/32000 ).
llm_load_print_meta: format = GGUF V3 (latest)
llm_load_print_meta: arch = llama
llm_load_print_meta: vocab type = SPM
llm_load_print_meta: n_vocab = 32000
llm_load_print_meta: n_merges = 0
llm_load_print_meta: n_ctx_train = 65536
llm_load_print_meta: n_embd = 6144
llm_load_print_meta: n_head = 48
llm_load_print_meta: n_head_kv = 8
llm_load_print_meta: n_layer = 56
llm_load_print_meta: n_rot = 128
llm_load_print_meta: n_embd_head_k = 128
llm_load_print_meta: n_embd_head_v = 128
llm_load_print_meta: n_gqa = 6
llm_load_print_meta: n_embd_k_gqa = 1024
llm_load_print_meta: n_embd_v_gqa = 1024
llm_load_print_meta: f_norm_eps = 0.0e+00
llm_load_print_meta: f_norm_rms_eps = 1.0e-05
llm_load_print_meta: f_clamp_kqv = 0.0e+00
llm_load_print_meta: f_max_alibi_bias = 0.0e+00
llm_load_print_meta: n_ff = 16384
llm_load_print_meta: n_expert = 8
llm_load_print_meta: n_expert_used = 2
llm_load_print_meta: rope scaling = linear
llm_load_print_meta: freq_base_train = 1000000.0
llm_load_print_meta: freq_scale_train = 1
llm_load_print_meta: n_yarn_orig_ctx = 65536
llm_load_print_meta: rope_finetuned = unknown
llm_load_print_meta: model type = ?B
llm_load_print_meta: model ftype = Q3_K - Medium
llm_load_print_meta: model params = 31.94 B
llm_load_print_meta: model size = 14.58 GiB (3.92 BPW)
llm_load_print_meta: general.name = merged_model_multiling
llm_load_print_meta: BOS token = 1 ''
llm_load_print_meta: EOS token = 2 '
'
llm_load_print_meta: UNK token = 0 ''
llm_load_print_meta: PAD token = 2 ''
llm_load_print_meta: LF token = 13 '<0x0A>'
llm_load_tensors: ggml ctx size = 0.10 MiB
llama_model_load: error loading model: create_tensor: tensor 'output_norm.weight' not found
llama_load_model_from_file: failed to load model
llama_init_from_gpt_params: error: failed to load model '/Users/test/Downloads/Karasu-Mixtral-8x22B-v0.1-Q3_K_M-00001-of-00005.gguf'
{"timestamp":1713075764,"level":"ERROR","function":"load_model","line":535,"message":"unable to load model","model":"/Users/test/Downloads/Karasu-Mixtral-8x22B-v0.1-Q3_K_M-00001-of-00005.gguf"}
20240414 06:22:44.737382 UTC 539671 ERROR Error loading the model - llamaCPP.cc:654

Lightblue KK. org

I have not been able to reproduce your error unfortunately!

Here is an example of the model running (very very very slowly) on a free Colab instance, if you'd like to compare it to your environment:

https://drive.google.com/file/d/1JSdAhezEPbKUGtS2ugQNhomp03Pp3LYk/view?usp=sharing

It looks like your file may be corrupted or in the wrong place perhaps? Try re-downloading the files in a new folder using the following code:

huggingface-cli download lightblue/Karasu-Mixtral-8x22B-v0.1-gguf  --local-dir /Users/test/Downloads/NewKarasuFolder

Then run using:

cd /path/to/llama.cpp
./main -m /Users/test/Downloads/NewKarasuFolder/Karasu-Mixtral-8x22B-v0.1-Q3_K_M-00001-of-00005.gguf -n 300 -p 'Hello, my name is' -ngl 8
kiopuy changed discussion status to closed
Lightblue KK. org

@kiopuy I hope you managed to fix it!

Sign up or log in to comment