Techniques
RAG Assessment where RAG is Retrieval-Augmented Generation
Chunking
Breaking down documents into lexical or semantically coherent sections so we don't waste the context window. Bad chunking strategies can seriously degrade RAG performance.
Distilled models
Where a large model 'teaches' a much smaller one so it can learn as much of its teachers weight distribution as it can. The smaller model may start with random weights or a large model with (say) half its layers removed.
Abliteration
This technique can remove censorship. By comparing activations for acceptable versus unacceptable input, the part of the LLM that is responsible for censorship can be neutralized.
Classification
Zero-shot Classification
A type of classification that classifies on the fly and does not require training examples.
Brier Score
Simple equation for measuring how confidently right or wrong an answer is.
GLiClass
Generalist and Lightweight Model for Text Classification. Zero-shot, ultra lightweight and forward pass only.
Perplexity
A mathematical formula based on cross-entropy for showing how confident a model is when choosing words. Note, it does not measure intelligence but verbal fluency.
Terminology
Joint Vector Space
Also called a shared embedding, it is a mathematical space where conceptually similar vectors live together (eg "I lost my credit card" and "billing and payment").
LSP
Language Server Protocol is a standardized communication protocol created by Microsoft that defines how a code-parsing plugin talks to an editor or an AI harness.
Model Context Protocol
Open standard that allows LLMs to talk to external services.
A2A
This is a protocol that came out of Google allowing agents to discover and talk to each other. If an agent discovers another specializes in something, the first can delegate to the second.
Agent
The agent makes decisions. It is non-deterministic as it relies on an LLM.
Harness
If the agent needs data, the harness gets it. It manages memory and context. It loops until the job is done. It is deterministic in that it just makes calls.
Agents vs Harnesses
The agent is what the model wants to do but the harness is what allows it actually safely do it.
Runtime
Prompt Processing (aka Prefill Phase)
This is the conversion of the text to KV attention matrices. It determins the TTFT (time to first token). TTFT obviously increases the longer the context becomes.
Pipeline Parallelism
For huge LLMs, it makes sense for layers to live on different GPUs simply to fit into VRAM. This opens up the opportunity of parallelising work loads.
Reward Hacking
This is a pathological case where the LLM learns to do the wrong thing to minimize its loss function. Imagine a junior developer who fixes the build by deleting the failing tests.
Implementations
Agent Harnesses
While Claude etc are the agent models, Claude Code is the agent harness. Open source alternatives to Claude Code are Pi, DeepSeek Harness and OpenCode.
Jev
A closed source, System One descision model. It is not generative but gives a probability distribution over its classifications. System One refers to Daniel Kahneman's two types of thinking. Open source competitors exist including Kev, Laya, NanoJev, Von and SemIf.
TokenWing
This has some really clever ideas that allow an LLM larger than a machine's VRAM to be processed. These techniques include caching 'hot' parts of the LLM and running some computation in RAM rather than VRAM. The major downside is that this won't work for dense models but rather mixture-of-expert models.
No comments:
Post a Comment