Open-weight models and inference
Open-weight models, running locally, quantization, serving, hardware, on-device AI and Hugging Face.
10 skills · 4 stages each
Skills
- Open-weight modelsFor engineersStart hereThe main open-weight families, their base, instruct and reasoning variants, size tiers, licence terms and how to test them on your own tasksneeds: The model landscape110 questions
- Running models locallyFor engineersRunning open models on your own machine with Ollama, LM Studio, llama.cpp and MLX, checking the setup works, and adding vision and speech modelsneeds: Open-weight models110 questions
- QuantizationFor engineersHow lower-precision weights cut memory, the GGUF, GPTQ, AWQ, MLX and native FP8/FP4 formats, choosing a quant level and measuring what it costs in qualityneeds: Open-weight models110 questions
- Serving open models at scaleFor engineersServing open models to many users with vLLM or SGLang: continuous batching, KV cache memory, multi-GPU parallelism and running the endpoint safelyneeds: Open-weight models110 questions
- Hardware basicsFor engineersEstimating memory for a model, why bandwidth sets speed, choosing GPUs, CPUs and Apple silicon, and when renting beats owningneeds: Open-weight models110 questions
- On-device and in-browser AIFor bothSmall models built into phones, laptops and browsers: what they can do, how to call them, what stays private and when a feature should go to the cloudneeds: The model landscape110 questions
- Using Hugging FaceFor engineersFinding, downloading and pinning models and datasets on the Hugging Face Hub, reading their cards critically, trying Spaces, and loading files safelyneeds: Open-weight models110 questions
- Building apps on local modelsFor engineersCalling local models from code through OpenAI-compatible APIs, getting valid JSON and tool calls from them, local embeddings and connecting coding toolsneeds: Running models locally110 questions
- Private AI on your own computerFor bothUsing a desktop app and an open model offline for sensitive work: when local fits, setting it up, asking about documents, proving nothing leaves and checking weaker answersneeds: Privacy basics for AI110 questions
- Measuring and tuning local inference speedFor engineersMeasuring prompt processing and generation speed, tuning GPU offload, context and KV cache settings, speculative decoding and diagnosing slow runsneeds: Running models locally110 questions
Scenarios using this domain
Where to study
- Ollama: OpenAI compatibility (opens in a new tab)DocsFree
Lists the endpoints and request fields Ollama accepts through its OpenAI-style API, and what is not supported.
- llama.cpp server README (opens in a new tab)DocsFree
Flags and endpoints of llama-server, including its OpenAI-compatible routes and JSON schema options.
- vLLM: structured outputs (opens in a new tab)DocsFree
How vLLM constrains output to a JSON schema, regex or grammar.
- Ollama: tool calling (opens in a new tab)DocsFree
How tools are declared and returned by local models, with examples.
- Ollama: embeddings (opens in a new tab)DocsFree
Generating embeddings locally and the shape of the response, with a search example.
- Ollama: structured outputs (opens in a new tab)DocsFree
Passing a JSON schema in the format field and validating the reply.
- llama.cpp grammars (GBNF) (opens in a new tab)DocsFree
The GBNF grammar syntax llama.cpp uses to restrict generated tokens.
- Hugging Face model hub (opens in a new tab)ToolFree
Search and filter open models by size, task and licence, and open each model card.
- Artificial Analysis: open-weight models (opens in a new tab)ToolFree
Independent quality, speed and price comparisons of open-weight models for shortlisting.
- The Open Source AI Definition (opens in a new tab)StandardFree
The definition that separates open-source AI from models that only publish weights.
- Chat templates (Hugging Face Transformers) (opens in a new tab)DocsFree
How chat templates turn messages into the exact text a model was trained on.
- Llama 3.3 community licence (opens in a new tab)DocsFree
A real custom licence: user cap, naming rule, acceptable-use policy and limits on training other models.