Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Open-Source LLMs: Choose, Evaluate & Self-Host AI Models
New

Open-Source LLMs: Choose, Evaluate & Self-Host AI Models

Pick the right open model, check its license, test it on your data, size the hardware and run it securely
Last updated 11/2026
English

What you'll learn

  • Tell open weights from open source and apply the OSI Open Source AI Definition to real model releases
  • Read model licenses, spot restrictive clauses and trace a model's lineage before your team depends on it
  • Separate what the OSI definition, the EU AI Act and a model license each require of an open model
  • Define the task, critical errors and pass bar, then evaluate LLMs fairly on your own held-out data
  • Read LLM leaderboards critically and break evaluation results down by slice to find real failures
  • Estimate memory for weights, KV cache and concurrency, and run a hardware preflight before buying
  • Choose an inference runtime and compare quantized builds on accuracy, safety, speed and memory
  • Check model files before loading, protect the local endpoint and test prompt injection with guards
  • Build a local LLM client with output contracts, safe logging, upgrades and rollback
  • Work out total cost of ownership and break-even, plan capacity and write a defensible decision document

Course content

8 sections • 37 lectures • 3h 23m total length
  • Welcome: Why "Open" Is a Decision, Not a Label8:52

    Meet Ridgeway Field Services, a fictional company that wants to replace a proprietary AI service with an open-source LLM it runs itself. See the seven-step method this course follows (inventory, license, evaluate, size, secure, integrate, decide) and the evidence you will build. All course resources, including the Ridgeway lab kit and Lab Setup Guide, are in this lecture.

  • Separate Labels From Evidence6:19

    Learn why "open" is a marketing label, and how open weights, source-available and open source are three different claims. Check what a model release actually gives you: weights, code, training data and terms.

  • Understand OSI's Open Source AI Definition7:15

    Work through the Open Source Initiative's Open Source AI Definition: the four freedoms, the three components (data information, code and parameters), and why most popular open-weight models don't meet it.

  • Map the Open-Weight Landscape7:21

    A dated snapshot of today's open-weight model families, sizes and license types, plus the traits that outlast any ranking: parameter count, dense versus mixture of experts, context window and license.

  • Create the Model Inventory7:56

    First lab: use Ollama to list local models, record exact builds by digest, quantization, size and license line, and record the gaps honestly. The model inventory is the foundation for every later decision.

Requirements

  • Comfort with the command line and reading short Python scripts
  • A Windows, Mac or Linux computer that can run Ollama for the optional labs; a graphics card isn't required
  • No machine learning or model-training background needed; AI terms are explained when they first come up

Description

This course contains the use of artificial intelligence.

Your team wants to replace a proprietary AI service with an open-source LLM it runs itself. It sounds simple until the questions arrive. Is this model actually open, or just open-weight? Do its license terms allow your use? Is it good enough on your data, not on a leaderboard? What hardware does it need, how do you secure it, and does self-hosting really cost less? This course gives you a method for answering every one of those questions with evidence, so you can make the call and defend it.

Learn by making one real decision

You'll follow Ridgeway Field Services, a fictional HVAC and electrical services company that wants a local model to turn technicians' job notes into structured work orders, while honoring a customer clause that keeps site data off third-party services. Section by section, you'll inventory candidate models, check their terms, evaluate them on held-out notes, size the hardware, secure the endpoint, build the client, price the options and write the decision. Every result on screen comes from real runs on a local machine, not mockups.

The labs run locally with Ollama and small Python scripts. They work on an ordinary PC without a graphics card, and you don't need a cloud account.

What you'll cover

  • What "open" really means: open weights versus open source, and the OSI Open Source AI Definition

  • Model licenses and provenance: Apache 2.0 and community licenses, restrictive clauses, model cards, lineage, and the EU AI Act

  • LLM evaluation for your own workload: critical errors, held-out test sets, fair comparisons, quality slices and structured JSON output

  • Reading leaderboards and benchmarks critically: contamination, saturation and task mismatch

  • Hardware sizing: memory for weights, the KV cache and concurrency, plus a measured hardware preflight

  • Inference runtimes and formats: Ollama, llama.cpp, vLLM, LM Studio, GGUF and safetensors

  • Quantization: comparing Q4 and Q8 builds on accuracy, safety, speed and memory

  • When to adapt a model: prompts, examples, code checks, RAG, LoRA adapters and fine-tuning

  • Securing self-hosted inference: model file checks, endpoint protection, prompt injection tests and guards outside the model

  • Integration and operations: a local client, output contracts, API versus hosted versus hybrid patterns, upgrades, rollback and ownership

  • Costs and decisions: total cost of ownership, a break-even example, capacity planning, SLAs and the decision document

What's included

  • 37 lectures across 8 sections, with hands-on labs you can run on your own computer

  • The Ridgeway lab kit and a Lab Setup Guide, with every script and file used in the labs

  • Templates and worksheets in editable and PDF formats: a model and license register, a legal review brief, a task spec and critical-error rubric, an evaluation results workbook, a hardware and memory worksheet, an endpoint security checklist, a cost, break-even and capacity worksheet, a decision document and a maintenance plan

  • A capstone in which you compare two complete candidate paths and package the deployment evidence

  • A final practice test with scenario questions across all eight sections

Who this course is for

Software engineers, tech leads and architects who need to choose, evaluate and self-host open models responsibly, and anyone who has to explain that choice to a manager, a customer or a legal team.

Who this course is for:

  • Software engineers and developers asked to run an open-source LLM instead of a proprietary AI service
  • Tech leads and architects who must choose, size and secure a self-hosted model for a real workload
  • Platform, DevOps and security engineers responsible for running and protecting model endpoints
  • Engineering managers who need a defensible, evidence-based decision on open models, costs and risk