LLM Concepts & Capability Filters
Start with the capability that gates your model choice, then drill into the models and provider routes that support it. The remaining glossary stays below for definitions.
Glossary and capability filters for comparison shopping — find LLMs by context window, agent and coding capability, tool use, structured output, batch API support, and token pricing.
11
capability filters
3,786
model matches
69
concept pages
4
capability groups
Capability Filters
Input, output, and context
Use these filters when modality or window size is the gating requirement.
Context window
Models with a tracked context window, sorted by window size for long-document triage.
Evidence: model.context
Vision
image input
Evidence: model.vision, model.multimodal
multimodal
Models with multimodal support, including image/audio-adjacent variants when tracked.
Evidence: model.multimodal, model.vision, model.audio
Audio
speech or audio I/O
Evidence: model.audio
Agent and control surfaces
Find models that expose structured control, tool calls, or execution hooks.
Reasoning
deliberate problem solving
Evidence: model.reasoning
Tool use / Function calling
Models with tool-use, function-calling, or structured-output flags for agentic flows.
Evidence: model.toolUse, model.functionCalling, model.structuredOutputs
Structured outputs
schema-shaped JSON
Evidence: model.structuredOutputs
Code execution
run code as part of a workflow
Evidence: model.codeExecution
Cost and throughput levers
Compare models with batch or cache evidence in model/provider data.
Customization
Track models with first-party fine-tuning support in the seed data.
Glossary Concepts
agents
Agent
An agent is a harness that has been empowered with three things: a **role** (who it is — system prompt, persona, domain expertise), a **mission** (what it is supposed to accomplish — a task, goal, or recurring responsibility), and a **scope** (what it is allowed to touch — which tools, repos, files, and permissions). Once configured, the agent is pointed at work and runs its agentic loop until the mission is done or it hits a blocker. Concrete examples from Data Advantage's own setup: our Founding Engineer agent, CTO agent, DevOps Engineer, and CPO are all agents — each is the same underlying harness (Claude Code plus the Paperclip execution layer) configured with a distinct AGENTS.md, a task queue, and a permissions profile. **A note on industry usage.** Most sources call any agentic coding tool an "agent" — including unconfigured harnesses like Cursor or Claude Code out of the box. We use the term more narrowly: an agent is a *configured, pointed* harness. The binary by itself is a harness; the binary plus `role + mission + scope` is an agent. Same runtime, different layer in the stack. Under the industry's looser usage, a "coding agent" is really "an agentic harness." This precision matters when designing agentic systems: choosing a harness and configuring agents are two separate decisions, often made by different people. See the [harness](/concept/harness) concept for the runtime distinction. For common agent archetypes (autonomous SWE, pair programmer, research assistant, etc.), see our [AI Agents vs Harnesses](https://vibereference.com/ai-development/agents-vs-harnesses) explainer on VibeReference.
Agentic loop
The agentic loop is the repeating cycle at the heart of every autonomous AI system: **model → tool call → result → model → tool call → result → …** until the model produces a final answer or the harness stops it. On each iteration, the harness sends the model its current context, the model responds either with a tool call or a final message, the harness executes any tool call and feeds the result back into context, and the loop continues. This loop is what distinguishes agentic systems from simple chat. A chat completion is one turn — prompt in, response out. An agentic loop lets the model gather evidence, act, observe the effect, and revise its plan, turn after turn. It is how an AI actually *does* things — edits files, runs tests, searches, deploys — rather than just describing what it would do. Key design questions around the loop include: how many iterations to allow before escalating, how to compact context as history grows, how to detect when the model is stuck in a tool-call loop, how to handle errors from tool results, and when to hand control back to a human. Most harnesses expose configuration for all of these. The loop is executed by the [harness](/concept/harness); the steps taken within the loop depend on the [agent](/concept/agent)'s role, mission, and scope; and the quality of each step depends on the [model](/concept/model) and the [context](/concept/context) it receives.
Context
Context is everything the model sees on a given turn: the full set of tokens loaded into its context window before it produces its next output. That typically includes the system prompt (role and instructions), the conversation history so far, any tool call results from prior turns, attached files or code snippets, retrieved documents, and explicit memory the harness has surfaced. Context is the only place a model can look for information — it has no hidden state and no memory between API calls. Whatever is in context on this turn is what the model "knows" right now. Everything else, from yesterday's conversation to the contents of a file on disk, must be reloaded into context for the model to use it. Because context windows are finite — typically 128K–2M tokens today, depending on the model — and every token costs money and attention, context management is one of the hardest problems in agentic systems. Harnesses spend significant effort deciding what to include, what to summarize, when to compact older turns, and how to surface the right files, tool results, and memories without drowning the model in irrelevant text. Good context engineering — clear system prompts, tight tool results, selective history, and retrieval that surfaces only what's needed — often matters more than raw model capability. A frontier model with bad context will underperform a weaker model given the right information. See also: [context window](/concept/context-window), [system prompt](/concept/system-prompt), [RAG](/concept/rag).
Harness
A harness is the runtime scaffolding that wires a model, its tools, and its context into a working agentic loop. It is the software that actually runs the model-to-tool-to-result cycle: handling API calls to the model, executing tool calls the model emits, feeding results back, managing the context window, and enforcing sandboxing and permissions. Well-known harnesses include Claude Code, Cursor, Cowork, Cline, Aider, Windsurf, and Devin. A freshly installed harness is unconfigured — a binary or IDE extension with no role, no mission, and no active task. It becomes useful only when someone points it at work with a specific prompt, system prompt, or AGENTS.md-style configuration. At that point the harness is operating as an agent, but the harness itself is the runtime, not the task. **A note on industry usage.** Many articles and vendors use "harness" and "agent" interchangeably, or skip "harness" entirely and call every agentic tool an "agent." On this site we reserve **harness** for the unconfigured runtime and **agent** for a harness that has been given a role, mission, and scope. The distinction matters because a single harness (e.g., Claude Code) can host dozens of different agents just by swapping AGENTS.md files — same binary, different configuration state. See the [agents directory](/agents) for a catalog of products in this category, and the [agent](/concept/agent) concept for how harnesses get pointed at specific work.
Tools
Tools are the discrete capabilities a model can invoke to act on the world. A model on its own can only emit text; tools turn text emissions into real effects — reading files, running shell commands, editing code, searching the web, querying databases, calling APIs. Common examples in coding agents include `bash`, `read`, `edit`, `grep`, `web_search`, `web_fetch`, and any MCP server exposed to the runtime. Mechanically, tool use works via function calling. The harness advertises a set of tool schemas (name, description, input parameters) in the model's context. When the model decides a tool is needed, it emits a structured tool call; the harness executes it, captures the result, and feeds that result back as a new turn. The model then either calls another tool or produces a final response. This repeating cycle is the agentic loop. Tools are where agents meet reality. Their design determines how capable, safe, and efficient an agent can be: too few tools and the model is blind; too many and its context fills with schemas it will never use. Permission scoping on tools — which tools a given agent may call, against which resources — is one of the main safety levers in any agentic system. Tools can be built in to a harness, loaded from local plugins, or exposed over [Model Context Protocol (MCP)](/concept/mcp) by external servers, which is what makes the MCP ecosystem important for composable agents.
architecture
Attention mechanism
The attention mechanism allows large language models to weigh the importance of different tokens in a sequence relative to each other when processing input, enabling focus on relevant context regardless of position. It is core to transformer architectures, powering parallel computation and long-range dependencies.
Subquadratic Attention
Linear Attention / SSM
Subquadratic attention refers to any language model architecture that scales compute with sequence length at less than O(n²) — the quadratic cost of standard transformer self-attention. Standard transformers compare every token against every other token, making long-context processing computationally expensive (and practically limited to 8K–200K tokens before inference cost becomes prohibitive). Subquadratic architectures break this bottleneck via one of three main approaches: **State Space Models (SSMs):** Replace attention with a compressed recurrent state that evolves through the sequence. The state size is fixed regardless of context length, yielding O(n) training and O(1) constant-memory inference. The Mamba architecture (and Mamba-2) is the canonical SSM, used in models like Falcon Mamba, Falcon3-Mamba, Jamba, Zamba, Codestral Mamba, and Liquid Foundation Models. **Recurrent LLMs:** The RWKV family (Eagle, Finch, Goose) treats the model as a pure RNN with linear complexity, enabling infinite-length inference with a fixed memory footprint. Unlike attention-based SSMs, RWKV requires no KV cache at all — inference memory does not grow with context length. **Sparse / Selective Attention:** Instead of computing all-pairs attention, models select a subset of relevant tokens per query. SubQ (Subquadratic Sparse Attention, 2026) is the most prominent example, claiming O(n) complexity via sparse token selection with a production 1M-token context window. **Hybrid SSM + Attention:** Several production models combine attention layers with SSM layers for the best of both: AI21's Jamba family and Zyphra's Zamba family interleave Mamba blocks with standard transformer attention. Subquadratic models trade off some in-context retrieval precision (transformers with full attention tend to have stronger exact-match recall) against dramatically lower inference cost and memory at long contexts. As context windows extend past 1M tokens, subquadratic approaches become the only economically viable option at scale.
behavior
capability
foundation
inference_optimization
infrastructure
Anthropic Console
Direct Claude API access: choose Console, select a model, and prototype in Workbench.
## Access decision + +1. **Need Anthropic's direct Claude API?** Open the Console at [platform.claude.com](https://platform.claude.com/) and use it as the API control plane. The older hostname `console.anthropic.com` redirects to that root. +2. **Need credentials?** Create API credentials in Console, then apply your preferred deployment and security flow. +3. **Choosing a Claude model?** Validate model and pricing at [Anthropic API](/provider/anthropic-api). For a current destination example, use [Claude Fable 5](/model/claude-fable-5). +4. **Prototyping in-browser?** Use [Anthropic Workbench](https://platform.claude.com/workbench), an in-Console API-testing feature, not a separate model provider. + +Anthropic Console is now the Claude Platform. It is not a separate inference provider, and it is not the consumer chat product at claude.ai. + +## Related destination + +- [Anthropic API provider](/provider/anthropic-api) — model coverage and sourced pricing +- [Claude Fable 5](/model/claude-fable-5) — verified current model destination
Vector Database
A specialized database for storing and querying high-dimensional embedding vectors using similarity search rather than exact key lookup.
A vector database is a data storage system designed specifically for storing high-dimensional embedding vectors and performing fast approximate nearest-neighbor (ANN) search over them. Where traditional databases retrieve records by exact key or index match, a vector database retrieves records by semantic similarity — returning the vectors and associated documents closest to a query vector in the embedding space. This makes vector databases the foundational infrastructure layer for RAG systems, semantic search, recommendation engines, duplicate detection, and long-term agent memory. Common vector database systems include Pinecone, Weaviate, Qdrant, Milvus, Chroma, and pgvector (a PostgreSQL extension). Each makes different trade-offs between index algorithm (HNSW is the most widely used for low-latency high-recall search), filtering capabilities (metadata predicates alongside vector queries), scalability, and operational complexity. Performance is typically measured by recall@k — what fraction of the true top-k nearest neighbors are returned — balanced against query latency and indexing throughput. As RAG architectures have matured, vector databases are typically used in conjunction with an embedding model (to generate vectors at index and query time) and often with a re-ranker (to refine initial ANN results with a more precise cross-encoder pass). Vector search is also increasingly available natively inside general-purpose databases (PostgreSQL via pgvector, Redis, Elasticsearch), reducing the need for a dedicated specialized system. Understanding vector databases is prerequisite knowledge for building any retrieval-augmented LLM system.
learning_paradigm
Few-shot learning
Few-shot learning enables large language models to perform tasks effectively using only a small number of labeled examples (typically 1-10) provided in the prompt, relying on in-context learning without parameter updates. It bridges the gap between zero-shot and fine-tuning by demonstrating patterns through examples.
Zero-shot learning
Zero-shot learning allows large language models to perform tasks without any task-specific examples in the prompt, relying solely on instructions and pre-trained knowledge to generalize to unseen tasks. It tests the model's ability to understand and apply concepts from training data alone.
optimization
preprocessing
prompting_technique
Chain of Thought
Chain of Thought (CoT) prompts a model to work through intermediate reasoning before answering, which raises accuracy on multi-step tasks but adds tokens and latency. Don't surface raw reasoning in production UX unless you need it — reasoning models expose it as a separate, often summarized channel, and the visible steps aren't guaranteed to reflect the model's true computation.
System prompt
A system prompt is a control message, separate from user turns, that sets a model's role, task, tone, and constraints for a conversation. Providers weight it more heavily than user input, and it is typically not shown to end users — though that is a product choice, not a guarantee. It is your main lever for steering behavior without fine-tuning.
protocol
representation
safety
Guardrails
Input and output validation layers that enforce safety, quality, and policy constraints on language model behavior in production systems.
Guardrails are software components — operating before, during, or after LLM inference — that validate inputs and outputs against defined safety, quality, or policy criteria. Input guardrails screen user requests for harmful intent, prompt injection attempts, sensitive data exposure, or out-of-scope queries before they reach the model. Output guardrails evaluate model responses for hallucinations, toxic content, policy violations, or format errors before delivery to the end user. Together they provide a controllable safety layer that operates independently of the model's own internal alignment training. Common guardrail implementations span a range of complexity: rule-based filters (regex patterns, keyword blocklists), lightweight classifier models specialized for toxicity or policy violation detection (e.g., Meta Llama Guard, Microsoft Azure Content Safety, Google's safety filters), LLM-as-judge pipelines that use a second model to evaluate outputs, and structured output parsers that enforce schema compliance and type safety. Dedicated orchestration frameworks such as Guardrails AI and NVIDIA NeMo Guardrails combine multiple check types into configurable pipelines. Guardrails are especially critical in agentic systems where models can take real-world actions — sending emails, querying databases, executing code. In these contexts, guardrails often include permission checks, rate limits, and action confirmation gates in addition to content filters. A common production design pairs lightweight, low-latency input guardrails (fast keyword or classifier checks, under 50ms) with asynchronous output guardrails (LLM-as-judge) for post-delivery monitoring and compliance logging. Enterprise deployments require documented guardrail policies for legal liability and regulatory compliance sign-off.
Prompt Injection
An attack where malicious instructions embedded in external content attempt to override a language model's intended behavior.
Prompt injection is a class of adversarial attacks against language model systems in which untrusted external content — such as web pages, documents, user inputs, or tool results — contains hidden or overt instructions designed to override the model's original system prompt or directives. When a model processes this content as part of its context, it may follow the injected instructions instead of (or in addition to) its legitimate ones, potentially leaking sensitive data, taking unauthorized actions, or producing responses the system designer did not intend. Indirect prompt injection is the most dangerous variant in agentic contexts: the attacker's payload is not in the user's direct message but embedded in external content the agent retrieves or processes autonomously — for example, a malicious README file, a webpage loaded by a browsing agent, or a document retrieved via RAG. This enables remote attacks without direct access to the victim's session, and the blast radius scales with the agent's permissions. Defenses include input and output validation (guardrails), privilege separation between trusted system-prompt content and untrusted external content, sandboxing tool execution, model-level safety training, clearly delimited prompt structure that marks untrusted content, and explicit confirmation steps before high-consequence actions. Prompt injection is recognized as the primary security threat in agentic AI systems and is tracked by OWASP as a top vulnerability for LLM applications.
technique
Context Engineering
The practice of deliberately managing what goes into an LLM's context window — prompts, retrieved chunks, history, and tool results — to optimize model performance.
Context engineering is the discipline of systematically controlling and optimizing the inputs placed into a language model's context window — including system prompts, retrieved documents, conversation history, tool results, and user instructions — to achieve reliable, high-quality outputs. While prompt engineering focuses on the phrasing and structure of individual instructions, context engineering addresses the broader orchestration question: what information to include, exclude, compress, or retrieve at each inference step. In production agentic systems, context engineering is often the primary lever for improving model behavior without changing the model itself. Key concerns include managing token budgets across multi-turn conversations, selecting the most relevant retrieved chunks for RAG pipelines, structuring chat history to preserve key facts while compressing stale context, and sequencing tool results to maximize downstream reasoning quality. Effective context engineering requires understanding how different model architectures handle positional information (the 'lost in the middle' effect, attention decay near context boundaries), how models weight system versus user versus assistant turns, and how to exploit prompt caching for repeated prefixes to reduce latency and cost. As context windows have grown to 1M+ tokens, the discipline has shifted from fitting everything in to selecting what matters most — an architectural and product design skill as much as a prompting skill.
Grounding
Grounding ties a model's output to verifiable external sources — retrieved documents, tool results, live data — often with citation contracts that let a user check each claim. It reduces unsupported statements and enables verification, but does not guarantee factual accuracy: the model can still misread, misattribute, or over-extend a cited source.
LLM Evaluation
Systematic frameworks for measuring LLM performance, capability, safety, and reliability across standardized or custom tasks.
LLM evaluation (commonly shortened to 'evals') refers to the structured practice of measuring a language model's performance across a defined set of tasks, benchmarks, or behavioral criteria. Evals are the primary method by which researchers, engineers, and product teams compare models, track capability regressions, measure safety properties, and make deployment decisions. They range from automated benchmarks graded by code (MMLU, HumanEval, MATH, GPQA, SWE-bench) to human-preference comparisons (Chatbot Arena) to adversarial red-teaming for safety and robustness. For practitioners building LLM-powered products, custom evals are often more valuable than published benchmarks. A custom eval suite captures the actual query distribution, the output quality dimensions that matter (accuracy, format adherence, tone, latency), and the failure modes specific to the application — including edge cases that public benchmarks do not cover. Frameworks such as OpenAI Evals, Braintrust, LangSmith, and Inspect help teams build, version, and continuously track evaluation results. Key eval design considerations include: choosing between reference-based scoring (exact match, ROUGE, F1) and model-graded scoring (LLM-as-judge), preventing benchmark contamination from training data leakage, ensuring reproducibility via deterministic prompts and fixed temperature settings, and weighting edge cases rather than only the central distribution. As enterprise AI deployments mature, evals are increasingly required for compliance, safety sign-off, and vendor selection — making them as important for buyers as for model researchers.
RAG (Retrieval Augmented Generation)
Retrieval Augmented Generation (RAG) retrieves relevant documents and adds them to the prompt so the model answers from your data instead of parametric memory, reducing hallucination on knowledge tasks. Its quality depends on retrieval more than the model; the tradeoffs to weigh are retrieval relevance, added latency and token cost, and keeping the source index fresh.
training_technique
Other
Activation-aware Weight Quantization
AWQ
AWQ (Activation-aware Weight Quantization) quantizes LLM weights based on activation statistics, preserving the most important weights for model performance. It achieves higher accuracy than uniform quantization at lower bit-widths by adapting quantization granularity to activation patterns.
alignment
Alignment is the tuning that turns a raw predictive model into a deployable one: how it follows instructions, when and how it refuses, its tone, and how reliably it stays on task. Techniques include RLHF, DPO, and constitutional methods. For a build decision, alignment shows up as refusal behavior and instruction adherence you can test on your own prompts.
Base Model
A base model refers to the core pretrained neural network, such as a Transformer architecture, before any task-specific fine-tuning or alignment. It provides the raw capabilities that are adapted for specialized uses, forming the starting point for instruct or chat variants.
Chat Model
A chat model is a model variant tuned for multi-turn dialogue and exposed through a chat-completions API that takes system, user, and assistant messages. It is the default surface for most build decisions — chat, RAG, and agent features all sit on top of it — as opposed to a base/completion model or a task-specific embedding or classification model.
chat tuning
Chat tuning fine-tunes a model on conversational data so it behaves correctly against a chat-completions API: honoring system, user, and assistant roles, staying coherent across multi-turn context, and emitting well-formed tool calls. It is what makes a base model deployable for chat, agent, and RAG features, and usually precedes preference-based alignment.
direct preference optimization
DPO
DPO is a lightweight alignment technique that fine-tunes LLMs directly on pairwise preference data (preferred vs. rejected responses) without a separate reward model or reinforcement learning. It optimizes the policy by maximizing the log-ratio of probabilities between chosen and rejected outputs relative to a reference model.
Foundation Model
A foundation model is a broadly pretrained model — usually Transformer-based — that a lab adapts into the chat, coding, embedding, or vision surfaces you actually deploy. When you pick a model you are choosing a foundation family and one of its adapted variants, so capability, price, context window, and modality all trace back to the base model and how it was tuned.
generative
Generative describes models that produce new content — text, code, images — by sampling from a learned distribution, autoregressively in LLMs. For build decisions this covers Coding, RAG answers, Agents, and JSON / Tool use output, as distinct from a discriminative model that only scores or classifies existing inputs.
Generative Pre-trained Transformer Quantization
GPTQ
GPTQ (Generative Pre-trained Transformer Quantization) is a post-training quantization method that reduces model precision to 4-8 bits while maintaining performance through careful rounding and calibration. It enables efficient deployment of large models on consumer hardware with minimal accuracy loss.
GPT
GPT (Generative Pretrained Transformer) is a decoder-only Transformer model series pretrained on internet-scale data for autoregressive text generation, pioneering LLMs like GPT-3 and GPT-4. It exemplifies foundation models adapted via fine-tuning for chat and instruction tasks, demonstrating scaling benefits and few-shot learning.
GPT-Generated Machine Learning
GGML
GGML is a low-level C tensor library for machine-learning inference on commodity CPUs and GPUs — the engine underneath local runtimes like llama.cpp, not a model format you choose directly. For self-hosting decisions you interact with it indirectly; the file format to pick is GGUF, which GGML-based runtimes load.
GPT-Generated Unified Format
GGUF
GGUF is the standard file format for running quantized open-weight models locally, used by llama.cpp and the tools built on it. It packs the weights, quantization scheme, and metadata into a single file that loads across different CPU and GPU setups — the format you deal with when self-hosting a model instead of calling a hosted API.
Instruct Model
An instruct model is a fine-tuned LLM optimized to follow user instructions accurately, often via supervised fine-tuning on instruction-response pairs. It enhances alignment with human intent, bridging general capabilities to directive use for practical deployment in interactive applications.
instruction following
Instruction following refers to an LLM's capability to comprehend and execute user-provided instructions accurately, generating responses that adhere to specified tasks, formats, or constraints. This emergent ability arises from training on datasets with explicit prompt-response pairs, enabling generalization across diverse directives.
instruction tuning
Instruction tuning is a supervised fine-tuning process where an LLM is trained on datasets of instructions paired with desired responses to enhance its ability to follow user directives. It bridges pre-training and advanced alignment by teaching the model to interpret natural language prompts as actionable commands.
language model
A language model predicts the next token over text — the mechanism behind every LLM you would evaluate. Modern ones are Transformer-based and autoregressive; the practical differences you compare, like capability, context window, price, and latency, come from scale, training data, and tuning rather than the underlying next-token objective.
large language model
LLM
A large language model (LLM) is a Transformer-based model with billions of parameters trained on large corpora for next-token prediction, covering tasks from Coding to RAG to Classification. Which LLM to deploy comes down to capability on your task, price per token, context window, and modality — not parameter count alone.
Low-Rank Adaptation
LoRA
LoRA (Low-Rank Adaptation) fine-tunes LLMs by freezing pre-trained weights and injecting trainable low-rank matrices into weight updates, approximating full fine-tuning with far fewer parameters. It decomposes delta weights as low-rank matrices where rank r is much smaller than dimensions, enabling efficient task adaptation.
model merging
Model merging combines multiple fine-tuned LLMs into a single model by averaging weights, resolving conflicts via task arithmetic or projection methods to preserve capabilities. Techniques like TIES or SLERP mitigate interference, enabling efficient knowledge fusion without retraining.
Parameter-Efficient Fine-Tuning
PEFT
PEFT (Parameter-Efficient Fine-Tuning) encompasses methods to adapt pre-trained LLMs for specific tasks by updating a small subset of parameters, avoiding full fine-tuning's compute costs. Approaches like adapters or prompt tuning inject task-specific modules, enabling scalability to massive models.
pretrained
Pretraining is the initial phase where a model learns general language representations from large unlabeled corpora via self-supervision, such as next-token prediction. It is what a lab does before instruction or chat tuning; the pretraining data and scale set the ceiling on a model's knowledge and capability, which later tuning shapes but rarely exceeds.
Pretrained Model
A pretrained model is the base model produced by self-supervised training on large text corpora, before instruction or chat tuning. Base checkpoints predict text but do not reliably follow instructions, so for most build decisions you deploy the instruct or chat variant; you reach for the raw base model mainly when you are doing your own fine-tuning.
proximal policy optimization
PPO
PPO is an on-policy reinforcement learning algorithm used in RLHF to update the LLM policy model by maximizing a clipped surrogate objective, ensuring stable training through trust-region constraints. It balances reward maximization with KL-divergence penalties to prevent large policy shifts.
quantization
Quantization reduces LLM precision by mapping high-bit weights and activations (e.g., FP16) to lower-bit representations (e.g., INT8 or INT4), minimizing memory footprint and inference latency. Techniques like post-training quantization preserve accuracy by calibrating rounding errors, enabling deployment on resource-constrained hardware.
Quantized Low-Rank Adaptation
QLoRA
QLoRA extends LoRA by combining 4-bit quantization (via NF4 and double quantization) with paged optimizers to fine-tune billion-parameter LLMs on consumer GPUs. It maintains performance parity with 16-bit full tuning while dramatically reducing memory requirements.
reinforcement learning from human feedback
RLHF
RLHF aligns a model with human preferences in stages: train a reward model on ranked responses, then optimize the policy against that reward with reinforcement learning. PPO is a common optimizer but not required — preference methods like DPO reach similar goals without an explicit RL loop. In practice it shapes refusal style, helpfulness, and instruction adherence.
Rotary Position Embedding
RoPE
RoPE (Rotary Position Embedding) encodes token positions by rotating query and key vectors, giving Transformers relative-position awareness that extrapolates better to longer sequences. It is a common choice in modern open-weight LLMs and underpins many of the long-context implementations you would evaluate.
supervised fine-tuning
SFT
Supervised fine-tuning (SFT) adapts a pretrained model on labeled instruction–response pairs so it follows directives and output formats, and typically precedes preference tuning like RLHF. SFT improves instruction adherence and formatting but does not guarantee factual accuracy — a well-tuned model can still hallucinate.
transformer
A Transformer is a neural architecture using self-attention mechanisms to process sequences in parallel, revolutionizing NLP by handling long-range dependencies efficiently. Transformers form the backbone of LLMs, with decoder-only variants dominating generative tasks and enabling scalable training on huge datasets.
transformer architecture
The Transformer architecture consists of encoder and/or decoder stacks with multi-head self-attention, feed-forward layers, and positional encodings for sequence modeling. It enables parallelization and captures context, with decoder-only Transformers powering autoregressive generation in models like GPT and Llama.