Skip to content
Courses/Claude Code + Local AI/Ollama, vLLM, SGLang, and MLX: What to Use

Ollama, vLLM, SGLang, and MLX: What to Use

The real question isn't which one is better, but which one fits your task, your hardware, and your operational level. Prototyping, serving multiple users, and squeezing performance out of a Mac don't call for the same tool.

  • Choose a runtime based on use case: testing, RAG, agents, or production.
  • Avoid premature migrations that add complexity without delivering value.
  • Measure latency, memory, and errors before deciding.

Quick decision

  • Ollama: get started fast, demos, desktop, courses, and prototypes.
  • llama.cpp: fine-grained control, GGUF, simple CPU/GPU, and small deployments.
  • vLLM: high request volume, compatible API, batching, and NVIDIA GPU.
  • SGLang: advanced serving, structured flows, and complex workloads.
  • MLX: Apple Silicon, efficient local experimentation on Mac.
Terminal
Measure before you opine:

caso: "chat_rag_pyme"
modelo: "local-coder"
hardware: "Mac M4 24GB"
runtime: "Ollama"
metricas:
  first_token_ms: 850
  tokens_s: 28
  ram_gb: 11
  errores_20_preguntas: 2
decision: "sufficient for prototype; don't migrate yet"

Official sources

  • Ollama GitHub
  • vLLM documentation
  • SGLang documentation
  • MLX documentation
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