Tuesday, July 21, 2026

Local LLM via LM Studio Diagnostics Report

See All on GenAI    « Previously

🔍 LLM Runtime Diagnostic Report

📋 LM Studio + Local Models 🐧 Ubuntu 25.04 💻 Dell Latitude 5310
🎯

Diagnosis: The Models Are the Problem (Not Your Laptop)

Your laptop hardware is perfectly capable of running LLMs. The two failing models (Ternary-Bonsai-27B-Q4_1 & Ternary-Bonsai-8B-Q2_0) use a custom GGML tensor type "42" that your current LM Studio runtime does not support. The successful model (Bonsai-27B-Q1_0) uses standard quantization and loads without issues, confirming your hardware is fine.

💻 Your Hardware at a Glance

CPU
i7-10810U
6C/12T @ 1.10GHz (Boost 4.9GHz)
RAM
16 GB DDR4
14 GiB usable ~12 GiB available
Storage
512 GB NVMe
SK hynix BC511 • 432 GB free
GPU
Intel UHD
Comet Lake (Integrated)
OS / Kernel
Ubuntu 25.04
Kernel 6.14.0-37
Swap
4.0 GiB
Currently unused (0B)

✅ Plenty of RAM, modern CPU with AVX2, enough disk — this machine can handle 7B–14B models comfortably and even 27B at low quantizations.

⚖️ Model-by-Model Analysis

Model File Quantization Status Key Error
Ternary-Bonsai-27B-dspark-Q4_1.gguf Q4_1 (custom) ❌ FAILED invalid ggml type 42
Ternary-Bonsai-8B-Q2_0.gguf Q2_0 (custom) ❌ FAILED invalid ggml type 42
Bonsai-27B-Q1_0.gguf Q1_0 (standard) ✅ SUCCESS No error. Loaded + inferred at ~0.83 t/s

🔬 Root Cause: Unsupported Tensor Type "42"

The critical error appears identically across both failed models. GGML defines a fixed set of tensor types (0–41). Type 42 is outside this range, meaning these model files were quantized with a custom fork of llama.cpp that introduced a new quantization method (likely ternary quantization — "Ternary-Bonsai").

E gguf_init_from_reader: tensor 'token_embd.weight' has invalid ggml type 42. should be in [0, 42)
E gguf_init_from_reader: failed to read tensor info
E llama_model_load: error loading model: llama_model_loader: failed to load model from ...Ternary-Bonsai-27B-dspark-Q4_1.gguf

Why Bonsai-27B-Q1_0 works: It uses standard Q1_0 quantization that falls within the supported range (0–41). The successful loading and inference (0.83 tokens/sec) prove your CPU and memory subsystem are operational for LLM inference.

I srv load_model: loading model '...Bonsai-27B-Q1_0.gguf'
W common_fit_params: failed to fit params to free device memory: n_gpu_layers already set ... abort
I srv llama_server: model loaded
I slot print_timing: ... prompt eval time = 28329.59 ms ... eval time = 255862.06 ms / 212 tokens (0.83 t/s)

Note: The "failed to fit params" warning is harmless — it just means no GPU offloading was attempted because you're on CPU-only Intel graphics.

🛠️ Recommended Actions

  • 1
    Stick to Standard Quantizations Look for models with conventional GGUF types: Q4_K_M, Q5_K_M, Q2_K, Q3_K_L, etc. Avoid experimental/custom types unless you compile a matching llama.cpp fork yourself.
  • 2
    Use Models Within Your RAM Budget You have ~12 GB available. A 27B at Q1_0 barely fits (~6–7 GB). For better speed and quality, try 7B–14B models at Q4_K_M or Q5_K_M (typically 4–8 GB). Examples: Mistral-7B, Llama-3.1-8B, Phi-4.
  • 3
    If You Need Ternary Models Compile the specific llama.cpp fork from the model author (likely prism-ml repo) that supports tensor type 42, then use it with LM Studio's "Local Inference Provider" or as a custom backend.
  • 4
    Validate Downloads Check file integrity (SHA256/MD5) for the .gguf files. Although unlikely given the consistent error, corruption can sometimes mimic parsing failures.
  • 5
    Monitor Thermals (Optional) Install lm-sensors and watch CPU temps during long inference runs. Your laptop can throttle under sustained load, impacting token generation speed.

Final Answer

It's the model, not the laptop. The "Ternary-Bonsai" GGUF files use a non-standard quantization that your LM Studio build doesn't understand. Your Dell Latitude 5310 is more than capable — as proven by the successful 27B run. Choose standard-quantized models and you'll be fine.

See All on GenAI    « Previously

No comments:

Post a Comment