# Glossary

## Open-weight model

A model whose trained weights are published for download. The licence still sets the rules for use.

## Parameter

One learned number inside a model. Model size is quoted in billions of parameters.

## Weights

The stored parameters of a model. The weight file is what you download and load.

## Inference

Running a trained model to produce output, as opposed to training it.

## Inference engine

A program that loads model weights and generates text, often as a local server. Examples are Ollama, llama.cpp and vLLM.

## Quantization

Storing weights with fewer bits to shrink the file and the memory use, at some cost in precision.

## GGUF

A single-file model format used by llama.cpp and tools built on it. It holds weights, tokenizer and metadata.

## Safetensors

A safe file format for model weights used by the Hugging Face libraries and engines such as vLLM.

## Q4\_K\_M

A common 4-bit GGUF quantization type that uses K-quant blocks and a medium mix of layer precision.

## Bits per weight

How many bits store each weight. 16 is full half-precision, and 4 to 5 is common for local use.

## fp16

A 16-bit floating-point number format. The 16-bit size of a model assumes this or a similar format.

## bf16

A 16-bit format with the range of 32-bit numbers and less precision. Many models are trained and published in it.

## VRAM

The memory on a graphics card. A model runs fastest when it fits entirely in VRAM.

## Unified memory

One memory pool shared by the CPU and GPU, as on Apple Silicon Macs.

## Context window

The number of tokens a model can consider at once, including your prompt and its reply.

## Token

A piece of text a model reads or writes. In English, a token is often about three quarters of a word.

## Tokens per second

The speed at which a model generates output. It depends on the model, quantization, context length and hardware.

## KV cache

The key-value cache. It stores attention data for the tokens so far and grows with the context length.

## Memory bandwidth

How fast data moves between memory and the processor. It is a main limit on generation speed.

## Offload

Placing some model layers in system RAM when they do not fit in GPU memory. It works but slows generation.

## Mixture of experts

A design where only some parts of the model, called experts, work on each token. All experts must still be in memory.

## Dense model

A model where all parameters work on every token.

## Base model

A model trained to continue text. It is not tuned to follow instructions.

## Instruct model

A model tuned to follow instructions and answer in chat form.

## Fine-tuning

Training an existing model further on your own data to change its behaviour.

## LoRA

A fine-tuning method that trains small added matrices instead of all weights.

## Gated model

A Hugging Face model that needs you to accept its terms before you can download it.

## Multimodal model

A model that accepts more than text, such as images, as input.

## Hugging Face Hub

A public site that hosts model files, model cards and datasets.

## OpenRouter

A service with a public list of models and their context windows. This directory reads context sizes from it.

## CUDA

NVIDIA's software platform for running computation on its GPUs.

## ROCm

AMD's software platform for running computation on its GPUs.

## Metal

Apple's graphics and compute interface, used by engines to run models on Mac GPUs.

## MLX

An Apple machine learning framework for Apple Silicon that can run language models.

## Vulkan

A cross-vendor graphics and compute interface that some engines use to run on many GPUs.

## OpenAI-compatible API

A local server interface that copies the request format of the OpenAI API, so existing clients can connect to it.

## RAG

Retrieval-augmented generation. The system looks up documents and gives them to the model with your question.
