RUNLOCALAIv38
->Will it run?Best GPUCompareTroubleshootStartLearnPulseModelsHardwareToolsBench
Run check
RUNLOCALAI

Independently operated catalog for local-AI hardware and software. Hand-written verdicts. Source-cited claims. Reproducible commands when we have them.

OP·Eruo Fredoline
DIR
  • Models
  • Hardware
  • Tools
  • Benchmarks
TOOLS
  • Will it run?
  • Compare hardware
  • Cost vs cloud
  • Choose my GPU
  • Prompting kits
  • Quick answers
REF
  • All buyer guides
  • Learn local AI
  • Methodology
  • Glossary
  • Errors KB
  • Trust
EDITOR
  • About
  • Author
  • How we make money
  • Editorial policy
  • Contact
LEGAL
  • Privacy
  • Terms
  • Sitemap
MAIL · MONTHLY DIGEST
Get monthly local AI changes
Monthly recap. No spam.
DISCLOSURE

Some links on this site are affiliate links (Amazon Associates and other first-class retailers). When you buy through them, we earn a small commission at no extra cost to you. Affiliate links do not influence our verdicts — there are cards we rate highly that we don't have affiliate relationships with, and cards that sell well that we refuse to recommend. Read more →

© 2026 runlocalai.coIndependently operated
RUNLOCALAI · v38
  1. >
  2. Home
  3. /Learn
  4. /Courses
  5. /Troubleshooting Local AI
  6. /Ch. 13
Troubleshooting Local AI

13. Log Analysis

Chapter 13 of 15 · 20 min
KEY INSIGHT

Error messages are specific. "CUDA out of memory" means VRAM exhausted. "CUDA error" with no memory mentioned means hardware or driver failure. Read the actual error, not a summary of the error.

Finding Signal in Noise

Application logs for AI systems contain three types of messages: information (normal operation), warnings (suboptimal but functional), and errors (action required). Error messages from different layers look different.

Application Layer Errors

ValueError: cannot sample with temperature=0.0 using greedy decoding

This is a parameter validation error. Fix: set do_sample=True when using temperature > 0, or set temperature=0 and use greedy decoding.

Runtime Layer Errors

RuntimeError: CUDA error: an illegal memory access was encountered

This means the kernel attempted to read or write memory outside valid addresses. Causes: tensor shape mismatch, index out of bounds, or corrupted model weights.

Driver Layer Errors

NVRM: Xid: GPU 0: GPU fault: reasons...

These NVIDIA kernel driver messages in dmesg indicate hardware-level problems—typically overheating, power supply issues, or driver corruption. Rebooting clears the error state but does not fix the underlying cause.

Structured Log Collection

# Collect logs from Ollama
journalctl -u ollama --no-pager -n 100

# Collect Docker logs
docker logs --tail 200 your-container-name > docker_logs.txt

# Collect GPU error log
sudo dmesg | grep -E "(nvidia|NVRM|GPU)" > gpu_logs.txt

Local verification checkpoint

Run the smallest example from this chapter in a local workspace and record the package version, runtime, data path, and observed output. If the result depends on model size, vector count, CPU/GPU backend, or available memory, note that constraint beside the exercise so the lesson remains reproducible.

Local verification checkpoint

Run the smallest example from this chapter in a local workspace and record the package version, runtime, data path, and observed output. If the result depends on model size, vector count, CPU/GPU backend, or available memory, note that constraint beside the exercise so the lesson remains reproducible.

EXERCISE

Intentionally trigger three different error types: a parameter validation error (pass invalid temperature), a memory error (load a model larger than VRAM), and observe an application log. Compare how the error messages differ across these categories.

← Chapter 12
Performance Profiling
Chapter 14 →
Community Resources