Skip to content

model: fix LFM2 missing tensors#18105

Merged
ngxson merged 1 commit intoggml-org:masterfrom
ngxson:xsn/lfm2_missing_tensor
Dec 16, 2025
Merged

model: fix LFM2 missing tensors#18105
ngxson merged 1 commit intoggml-org:masterfrom
ngxson:xsn/lfm2_missing_tensor

Conversation

@ngxson
Copy link
Contributor

@ngxson ngxson commented Dec 16, 2025

Overlooked a change from #18051

cc @tdakhran for visibility: LFM2 reports missing tensor without this fix

@ngxson ngxson merged commit ef83fb8 into ggml-org:master Dec 16, 2025
67 of 68 checks passed
@remixer-dec
Copy link

I'm still getting llama_model_load: error loading model: missing tensor 'token_embd_norm'
llama_model_load_from_file_impl: failed to load model
on build made at commit 5806286 with LFM2-8B-A1B-UD-Q6_K_XL.gguf

@tdakhran
Copy link
Contributor

@remixer-dec addressed in #18132

Luckybalabala pushed a commit to Luckybalabala/llama-cpp-AutoGLM that referenced this pull request Dec 19, 2025
应用上游PR修复:
- ggml-org/llama.cpp#18105 (LFM2模型张量已存在)
- auroralabs-loci/llama.cpp#605 (LFM2_MOE模型张量)

更改:
- src/llama-arch.cpp: LFM2MOE架构中 LLM_TENSOR_OUTPUT_NORM
  -> LLM_TENSOR_OUTPUT_NORM_LFM2

修复模型加载时缺失张量的问题
Anico2 added a commit to Anico2/llama.cpp that referenced this pull request Jan 15, 2026
blime4 referenced this pull request in blime4/llama.cpp Feb 5, 2026
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

Successfully merging this pull request may close these issues.

4 participants