Skip to content
Courses/Claude Code + Local AI/Quantization and models for coding

Quantization and models for coding

For coding with local models, the biggest model doesn't always win. The one that responds well enough, fits with useful context, and can repeat tasks without dragging you into OOM or impossible latency wins.

  • Choose quant based on hardware and task.
  • Measure speed, quality, and context instead of trusting rankings.
  • Prepare a minimal test for local coding agents.

Practical rule

  • Q4: fits on more hardware, good speed, may lose nuance.
  • Q5: common balance for daily use.
  • Q8: more quality, more memory, less margin for context.
  • FP8/KV cache: useful in serving, but stability must be validated.
Terminal
# Repeatable test to compare models
ollama run qwen2.5-coder:7b "Create tests for a function that parses ISO dates."
ollama run qwen2.5-coder:14b "Create tests for a function that parses ISO dates."

# Watch context and effective load
ollama ps

# Save results:
# - tokens/s
# - time to first token
# - test quality
# - whether it compiles
# - memory used

Minimal test for a coding model

  • Explain a real bug from your repo.
  • Generate tests that fail before the fix.
  • Propose a small patch.
  • Run lint and build.
  • Compare diff and errors.

Official sources

  • llama.cpp quantization README
  • vLLM quantized KV cache
  • Ollama context length
Complete Aulafy mapSee how this lesson fits without leaving your path.

Complete Aulafy map

How all courses connect

This is not a checklist. Start with the foundation, choose an outcome, and go deeper only when your project needs more control.

  1. 1Understand
  2. 2Apply or build
  3. 3Operate with confidence
01

Choose an application

Turn the foundation into a visible outcome: a website, a business improvement, media, or an interactive experience.

Continue into the technical branch when you need to maintain code, data, or infrastructure.

02

Build with code

Prepare your environment, work with coding agents, and run models while keeping control of your projects.

This branch prepares you to design and operate reliable AI systems.

03

Take systems to production

Combine retrieval, agents, evaluation, security, deployment, and model adaptation when the problem requires it.

You do not need every course: choose the component your system needs and return as it grows.

View full catalogue