Free course

Local AI Models Course

Understand open-weight models, choose one that fits your hardware, run it locally, and build a reliable private AI feature with Ollama and Node.js.

5 modules · 34 lessons · No signup

Prerequisites: AI Fundamentals

~~~

Your progress

of lessons completed.

Course completed.

What you'll learn

Choose and run an open-weight model locally, connect it to a small Node.js application, constrain and test its output, and document the privacy, reliability, and operating boundaries.

Take this course offline

Subscribe to my newsletter to get every free book, downloadable course, and complete software download.

Get the downloads

Course contents

  1. Understand open weights

    Separate weights, architecture, training, inference, licenses, and the wider meaning of open source AI.

    1. Weights are learned numbers
    2. Separate training from inference
    3. Architecture, weights, and runtime
    4. Open weights and open source AI
    5. Read the model card and license
    6. Check your understanding: open weights
  2. Choose a model that fits

    Compare capabilities, parameter counts, quantization, formats, context, memory, and task quality.

    1. Start from the task
    2. Parameters and memory
    3. Understand quantization
    4. Safetensors and GGUF
    5. Context and the KV cache
    6. Build a small evaluation
    7. Check your understanding: choosing a model
  3. Run models locally

    Install Ollama, manage model files, use the local API, stream responses, and measure performance.

    1. Choose a local runtime
    2. Install and check Ollama
    3. Pull and run your first model
    4. Call the local chat API
    5. Call Ollama from Node.js
    6. Stream and measure responses
    7. Check your understanding: running models locally
  4. Build a local AI feature

    Create a Node.js summarizer with structured output, timeouts, cancellation, fallback behavior, and focused tests.

    1. Define the feature boundary
    2. Request structured output
    3. Add timeout and cancellation
    4. Add a deterministic fallback
    5. Use tools with a permission boundary
    6. Keep the provider swappable
    7. Test the local AI feature
    8. Check your understanding: building a local feature
  5. Operate local AI responsibly

    Review privacy, model supply chains, permissions, upgrades, costs, evaluations, and production boundaries.

    1. Map the complete data flow
    2. Verify model files and code
    3. Pin and upgrade models
    4. Understand the real cost
    5. Complete the local summarizer
    6. Check your understanding: operating local AI