llama.cpp check_tensor_dims: Missing GGUF Tensor
Fix llama_model_load check_tensor_dims errors (missing token_embd.weight, ssm_conv1d.weight, output_hc_norm.weight, or wrong shape) caused by GGUF build drift.
check_tensor_dims errors (missing token_embd.weight, blk.*.ssm_conv1d.weight, output_hc_norm.weight, or output.weight wrong shape) mean the GGUF tensor layout does not match the llama.cpp binary loading it. Update llama.cpp (and any embedded wrapper runtime), confirm all split-GGUF shards downloaded, and verify the base model was not re-quantized with an older converter.
- Symptom
llama_model_load: error loading model: check_tensor_dims: tensor 'token_embd.weight' not found- Root cause
- Version drift between the GGUF converter/quantizer and the embedded llama.cpp loader, or missing shards in a multi-part GGUF download.
- Recommended fix
- Check the exact llama.cpp commit or wrapper version loading the model against the upstream PR that added support for that architecture.
- How Denpex helps
- Denpex investigates llama.cpp check_tensor_dims: Missing GGUF Tensor using the evidence you provide or your connected workload collects. Earlier rank, host or application evidence is needed to distinguish an initiating failure from a downstream report.
What this failure is
A llama_model_load validation failure emitted by llama.cpp when expected architecture tensor names or shapes are missing or mismatched in a GGUF file.
Is this what broke your run? Paste your log.
You're reading about llama.cpp check_tensor_dims: Missing GGUF Tensor. Paste your own traceback and relevant evidence for an investigation of your workload, with a next action or a specific missing fact. A reference entry does not establish your cause. No account or card for the free diagnosis. Review data handling before submitting sensitive logs.
Before uploading, review cloud data handling and local options.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
Why it happens (the mechanism)
New architectures (hybrid SSM/Mamba layers with ssm_conv1d.weight, Qwen3/Qwen3.5/Gemma variants, or custom vocab embeddings) change tensor naming and dimensions; an older llama.cpp binary, incomplete split GGUF, or mismatched LoRA/quantizer breaks check_tensor_dims.
What you'll observe
- llama_model_load aborts at startup with check_tensor_dims: tensor not found or has wrong shape.
- Wrapper apps (Ollama, LM Studio, Unsloth Studio, llama-cpp-python) fail even when the downloaded GGUF file passes checksum.
Common symptoms and what they mean
Check possible explanations against the incident evidence. A matching symptom alone does not establish its cause.
| Symptom | Possible explanation |
|---|---|
| llama_model_load: error loading model: check_tensor_dims: tensor 'token_embd.weight' not found | Version drift between the GGUF converter/quantizer and the embedded llama.cpp loader, or missing shards in a multi-part GGUF download. |
| llama_model_load: error loading model: missing tensor 'blk.64.ssm_conv1d.weight' | Version drift between the GGUF converter/quantizer and the embedded llama.cpp loader, or missing shards in a multi-part GGUF download. |
| check_tensor_dims: tensor 'output_hc_norm.weight' not found or tensor 'output.weight' has wrong shape | Version drift between the GGUF converter/quantizer and the embedded llama.cpp loader, or missing shards in a multi-part GGUF download. |
Which systems are affected
- llama.cpp CLI, llama-server, llama-cpp-python, Ollama, and LM Studio
- Hybrid SSM/attention models, tied-embedding GGUFs, and multi-part split GGUF files
How to confirm this is the problem
Use this checklist to test the hypothesis against a small reproduction. No single line proves the root cause, so preserve the preceding events and compare one variable at a time.
- ✓Inspect GGUF metadata keys and tensor names using gguf-py (gguf_dump.py) without modifying the binary.
- ✓Compare general.architecture in the GGUF header against supported architectures in your installed llama.cpp build.
- ✓Confirm all split shards match upstream sizes.
Root cause
- Version drift between the GGUF converter/quantizer and the embedded llama.cpp loader, or missing shards in a multi-part GGUF download.
The fix and how to prevent it
How to fix it
- Check the exact llama.cpp commit or wrapper version loading the model against the upstream PR that added support for that architecture.
- Verify that all split GGUF shards (for example -00001-of-00003.gguf) sit in the same directory and match the publisher SHA256 checksums.
- Pass the first shard path (-m model-00001-of-00003.gguf) rather than a truncated or wrong shard, and verify you are not loading an mmproj projector file as the main model.
- Rebuild or upgrade llama.cpp from the upstream repository and re-run conversion from the original safetensors weights if the GGUF was produced by an outdated script.
Step-by-step remediation
- 1Ensure you are passing the primary model shard and not a standalone mmproj or partial download.
- 2Dump the GGUF metadata header to check general.architecture and tensor count.
- 3Update llama.cpp or the host application to a release supporting that model architecture.
How to prevent it
- Track the exact llama.cpp release tag alongside downloaded or self-converted GGUF artifacts.
- Verify multi-part shard counts and SHA256 digests before deploying a model to serving pods.
Save this diagnosis and catch the next crash automatically
All root cause, fix, and prevention steps above are free to read. Create a free account with any email or GitHub to keep your saved diagnosis history across the encyclopedia and run cloud checks, or use a work email below for the 30-day Team evaluation. No card required.
Or start a 30-day free Team trial (work email)
Verified work email unlocks all 14 fleet diagnostic tools, Slack alerts, and team history for 30 days. No card and no automatic charge.
Searchable error signature
llama_model_load: error loading model: check_tensor_dims: tensor 'token_embd.weight' not found
llama_model_load: error loading model: missing tensor 'blk.64.ssm_conv1d.weight'Use this text as a lookup key in logs and upstream issue trackers. It is not presented as a captured customer log. Confirm the cause from your own preceding events, versions, configuration and the cited references.
Diagnose your own log automatically
The root cause and fix steps above stay free. Create a free account to analyze full job logs, attribute the first failed rank, and keep saved incident history.
Sign up free. Analyze your cluster logsNo credit card. Daily allowance follows verified trust tier. Instant access.
Why the recommended fix works
Aligning the llama.cpp loader revision and verifying complete split shards resolves structural tensor mismatches without corrupting weights.
Code examples
llama-server --version
python3 -m gguf.scripts.gguf_dump --no-tensors model.gguf | head -n 40This snippet illustrates the entry-specific check. Verify the installed versions, permissions, target and workload context before using it. A command or API example is not proof of recovery.
Best practices by model family
| Model / Stack | Recommendation | Notes |
|---|---|---|
| Missing token_embd.weight | Check mmproj vs main GGUF or split shard 1 | Loading a vision projector file or shard 2 directly misses token embeddings. |
| Missing ssm_conv1d or wrong output.weight | Upgrade llama.cpp / wrapper binary | Hybrid SSM and newly released open-weight models require matching loader commits. |
With the fix vs without the fix
| Dimension | With the fix | Without the fix |
|---|---|---|
| Loader check | Dump GGUF general.architecture and verify binary version | Assuming GGUF format never changes across releases |
| Multi-part GGUF | All shards present, load shard 00001 | Loading only one shard or mismatched quant builds |
Diagnostic note
“Grounded in upstream llama.cpp model loader behavior and GGUF format specifications.”
Visual fingerprint
check_tensor_dims error -> verify not mmproj & all shards intact -> dump general.architecture -> update llama.cpp / reconvert GGUF
Diagnose this failure in VS Code
Select the traceback or open the failed terminal, then run Denpex locally to inspect matched failure patterns, supporting evidence and next checks without uploading the log. Verify recommendations against your workload before changing production.
Install the free VS Code extensionFrequently asked questions
Questions engineers and on-call staff commonly ask about this failure.
Why does check_tensor_dims say token_embd.weight is not found?
Why does output.weight report a wrong shape in llama.cpp?
Don't just read the fix, diagnose your run
The encyclopedia explains documented failure patterns. Denpex investigates your logs, configuration and stack, shows the supporting evidence, and asks for missing details when needed.