Run AI locally: a practical learning path from hardware to working tools

Choose a local AI workflow, estimate memory, select a runtime, and diagnose GPU, chat-template, and integration failures without relying on model rankings.

AILocal modelsLearning path

Sources are linked in the guide. Read our editorial policy.

On this page 7 sections

Start with a job you can evaluate, not the largest model you can download. Running AI locally means owning the model, runtime, memory budget, and verification process. This learning path connects those decisions so that a successful installation becomes a useful, inspectable workflow.

You do not need to read every guide in order. Choose the row that matches your current problem, then return here when you reach the next decision. This is a navigation and acceptance framework, not a hardware benchmark or an endorsement of a particular model.

Choose your starting point

Your situation Start here Evidence to collect before moving on
You have hardware but have not chosen a model Model selection and memory sizing Exact model revision, license, supported task, and intended context
You want to see how context or concurrency changes memory Local LLM VRAM calculator Model architecture and an explicit memory budget, not only its parameter headline
You are choosing a desktop runtime or shared server Ollama versus vLLM Supported checkpoint, required API features, expected load, and an operating owner
Ollama is unexpectedly using the CPU Ollama GPU diagnostic Loaded model’s processor split, serving-process configuration, and logs
Your vLLM chat request fails on template handling vLLM chat-template diagnostic Exact endpoint, tokenizer configuration, message format, and error
An integration connects but exposes no actions MCP connected but no tools Advertised capabilities, tool-list response, and client admission decisions

1. Define a small workload you can judge

Write down the input, acceptable output, and maximum waiting time. “Extract these five fields from this document” is testable. “Be as good as a hosted assistant” is not a useful initial acceptance criterion.

Keep a small collection of non-sensitive examples: an ordinary input, the longest input you expect, and an ambiguous or invalid case. If the model will call tools, include an action it must refuse. Check correctness before optimizing token throughput.

Record whether you need a local chat interface, application API, or shared service. These are different operating requirements; they do not automatically require different models. The coding-agent acceptance guide provides a more detailed contract for code-changing workflows.

2. Size the whole request, not only the weight file

The VRAM calculator separates weight storage, key-value cache, and a runtime reserve. Its starting architecture is illustrative. Replace it using the exact checkpoint’s configuration before treating the result as a planning estimate.

Parameter count and weight precision describe only part of the allocation. Cache geometry, context length, simultaneous sequences, and runtime workspaces also matter. Weight quantization and cache quantization are separate choices. A model with fewer active experts still needs storage for the weights the runtime keeps resident.

Use available memory after other applications, not the capacity printed on the graphics card. The calculator uses GiB; do not silently compare that with decimal GB. For unified-memory systems, account for the operating system and other applications sharing the same pool. A below-budget estimate is not proof that a particular runtime can allocate the workload.

Transformers’ cache documentation explains why dynamic, static, sliding-window, quantized, and offloaded caches behave differently. Do not apply a full-attention estimate as if every architecture had identical cache growth.

3. Choose the runtime by compatibility and ownership

Use the Ollama/vLLM comparison to check the required model, hardware backend, chat format, structured outputs, and tool-call behavior. “OpenAI-compatible” does not establish complete compatibility with every client feature.

Start with one ordinary request and inspect what actually loaded. Ollama’s FAQ documents ollama ps, processor placement, server configuration, and parallel-request behavior. CPU offload can be intentional; it is not automatically an installation failure.

For a shared endpoint, assign an owner for credentials, access restrictions, queue limits, upgrades, and recovery. Keep a local-only endpoint private unless you deliberately deploy an authenticated access layer. A working HTTP response does not establish a secure service.

4. Diagnose the failing boundary

Avoid changing the model, driver, prompt, and runtime settings together. Identify the first boundary that fails:

  • Execution placement: use the Ollama GPU diagnostic to distinguish incompatibility, memory pressure, and configuration applied to the wrong process.
  • Conversation serialization: use the vLLM template diagnostic before borrowing a template from an unrelated model. A template that renders is not necessarily the format the checkpoint learned.
  • Integration discovery: use the MCP tool-discovery diagnostic. A connected transport, an advertised tool, and permission to execute it are three separate observations.

These guides distinguish documentation-backed instructions from any checks actually performed. They are not a claim that Shipfoundary has tested your accelerator, checkpoint, or client.

5. Keep a run record before adding complexity

Use this worksheet in your existing notes or issue tracker:

Record What to retain
Identity Model repository and revision, quantization artifact, runtime version
Hardware Accelerator, driver/backend, available device or unified memory
Workload Input/output limits, configured context, simultaneous requests
Result Accepted outputs, cold and warm latency, peak memory, errors
Boundary Local/cloud execution, connected services, reachable endpoints, credential scope
Change The single setting changed and the observation that justified it

Only expand context or concurrency after the smaller workload passes. If the task needs live data, treat retrieval and tool permissions as separate components rather than assuming larger weights provide current information. Use the MCP security checklist before connecting private systems and runtime human approval before consequential actions.

Continue with a specific question

Return to all guides for agent costs, shared-state coordination, and context diagnostics. The text-generation directory can help discover models and tools, but a listing is not a compatibility test, license approval, or quality ranking. Verify the publisher’s current documentation against your recorded workload.

Connected by shared topics