Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Serving Open-Weight Models

Free · sign in to start and track progress

1 · What the server does with your GPU

  • 1Inside an inference engine
  • 2GPU sizing arithmetic
  • 3Serving your adapter

2 · Smaller, faster, still correct

  • 4Quantisation with evidence
  • 5Latency, throughput and honest benchmarks
  • 6Speculative decoding in practice
  • 7Structured outputs and tool calls

3 · Ship it and run it

  • 8What self-hosting makes you responsible for

    Exercise answers

    • Answer: Write the service record and lint the launch command
  • 9Deployment and rollout
  • 10Observability and operations
CapstoneShip the triage endpointReference implementation

Module 3 · Ship it and run it · Lesson 8

What self-hosting makes you responsible for

Self-hosting buys control, privacy and predictability, and in exchange you own the licence terms, the data path, the security of an open port and every upgrade; this lesson turns each of those into a written policy a linter can check.

75 min 1 video 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodePython with uvThe Quillmoor triage kit

By the end of this lesson you can

  • State the reasons to self-host that survive the cost analysis and the ones that don't
  • Read an open-weights licence and extract its obligations for a fine-tune you serve under your own name
  • Design the data path for a self-hosted endpoint, with what is logged, for how long, where and for whom
  • Harden the endpoint against the failures the engine's own docs warn about, and pin every artefact
  • Write a service record and a machine-readable policy that a deploy script can enforce

On this page

  • Intuition: owning the building
  • Why self-host, beyond the cost
  • Reading a licence like an engineer
  • The data path
  • Hardening the port
  • Worked example: the licence walk for three bases
  • Misconceptions and limits
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01Intuition: owning the building
  2. 02Why self-host, beyond the cost
  3. 03Reading a licence like an engineer
  4. 04The data path
  5. 05Hardening the port
  6. 06Worked example: the licence walk for three bases
  7. 07Misconceptions and limits
  8. 08Connections
  9. 09Summary

Sources & further reading

  • gpt-oss-20b model cardLab research · OpenAI · 2025An example of a lab releasing weights under Apache-2.0, with the model card's licence tag and the technical conditions (the harmony format) that are not licence terms but still bind how you serve it.
  • Llama 3.1 Community License AgreementDocs · Meta · 2024Sections 1 and 2: the attribution display, the notice file, the naming rule for models built from Llama and the 700 million monthly-active-user threshold. Read it once in full; it is short.
  • Gemma Terms of UseDocs · Google · 2026Section 3.1 (distribution: the use-restriction flow-down, the copy of the terms, modified-file notices, the notice file) and 3.3 (outputs). Last modified April 2026; Gemma 4 has its own licence page.
  • Apache License, Version 2.0Docs · Apache Software Foundation · 2004Section 4, Redistribution, is the whole of what an Apache-2.0 base asks of you; section 6 is why the licence gives you no trademark rights to the model's name.
  • Qwen3-4B-Instruct-2507 model cardDocs · Qwen · 2025The course's base model, tagged apache-2.0; the model card is where the licence identifier lives, so this is the page the licence walk starts from.
  • Licenses on the Hugging Face HubDocs · Hugging FaceThe licence identifiers a model card can carry (apache-2.0, llama3.1, gemma, openmdw-1.0, other) and what to do when the licence is `other`: the text goes in a LICENSE file and the name in license_name.
  • LoRA Adapters in vLLMDocs · vLLMThe runtime adapter loading section and its security warning, which is the one hardening rule this lesson takes straight from the engine's own documentation.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 9 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks