Skip to content

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.

Quick answer

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.
Environment#llama-cpp#gguf#check_tensor_dims#qwen#mamba#model-load

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.

Live diagnosis, no signup

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.

training_logs.txt
No log to hand? Try one:

Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.

3 free cloud diagnoses per day

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.

SymptomPossible explanation
llama_model_load: error loading model: check_tensor_dims: tensor 'token_embd.weight' not foundVersion 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 shapeVersion 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

  1. 1Ensure you are passing the primary model shard and not a standalone mmproj or partial download.
  2. 2Dump the GGUF metadata header to check general.architecture and tensor count.
  3. 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.

Use your company email, for example alex@yourcompany.com.

Who qualifies?

Company email domains activate the free 30-day Team evaluation (up to 50 diagnoses a day) after an email and domain check, whatever mail provider you use. If we cannot verify your domain automatically, support reviews it: write to support@denpex.com. Free local diagnosis in the editor extension needs no account.

Using a personal email (Gmail, Outlook, Naver, QQ) or solo cluster? Create a free $0 account (no work email required) to save 7-day history and unlock AI fallback, or send a cluster crash log for a live walkthrough.
Already have an account? Sign in

Searchable error signature

search key
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 logs

No 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

snippet
llama-server --version
python3 -m gguf.scripts.gguf_dump --no-tensors model.gguf | head -n 40

This 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 / StackRecommendationNotes
Missing token_embd.weightCheck mmproj vs main GGUF or split shard 1Loading a vision projector file or shard 2 directly misses token embeddings.
Missing ssm_conv1d or wrong output.weightUpgrade llama.cpp / wrapper binaryHybrid SSM and newly released open-weight models require matching loader commits.

With the fix vs without the fix

DimensionWith the fixWithout the fix
Loader checkDump GGUF general.architecture and verify binary versionAssuming GGUF format never changes across releases
Multi-part GGUFAll shards present, load shard 00001Loading only one shard or mismatched quant builds

Diagnostic note

“Grounded in upstream llama.cpp model loader behavior and GGUF format specifications.”

Visual fingerprint

GGUF check_tensor_dims flow
check_tensor_dims error -> verify not mmproj & all shards intact -> dump general.architecture -> update llama.cpp / reconvert GGUF
Validate file identity and multi-part shards first, then align the llama.cpp binary with the model architecture.

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 extension

Frequently 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?
Commonly either an mmproj vision adapter file was passed instead of the base model, a multi-part GGUF is missing shard 00001, or the llama.cpp loader is older than the GGUF converter.
Why does output.weight report a wrong shape in llama.cpp?
This happens when a model's vocabulary size or embedding dimension changed between checkpoints or when an older GGUF converter/loader mishandles padded vocabularies or LoRA adapters.

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.