<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Transformer on Le Site de François</title><link>https://lesitedefrancois.be/en/tags/transformer/</link><description>Recent content in Transformer on Le Site de François</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2026 François</copyright><atom:link href="https://lesitedefrancois.be/en/tags/transformer/index.xml" rel="self" type="application/rss+xml"/><item><title>KV cache (Key-Value Cache)</title><link>https://lesitedefrancois.be/en/ai/kv-cache/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://lesitedefrancois.be/en/ai/kv-cache/</guid><description>&lt;p&gt;The &lt;strong&gt;KV cache (key-value cache)&lt;/strong&gt; is the stored result of the &lt;strong&gt;attention&lt;/strong&gt; layers for tokens already processed in a sequence. During &lt;strong&gt;autoregressive decode&lt;/strong&gt;, each new token only needs a forward pass that depends on prior context; recomputing keys and values for all earlier tokens every step would be wasteful. The cache therefore holds, per layer and per sequence, the &lt;strong&gt;K&lt;/strong&gt; and &lt;strong&gt;V&lt;/strong&gt; tensors produced when those tokens were first seen (during &lt;strong&gt;prefill&lt;/strong&gt; for the prompt, then extended one token at a time during decode). The objective is lower &lt;strong&gt;time per output token&lt;/strong&gt; and lower FLOPs; the cost is &lt;strong&gt;GPU memory&lt;/strong&gt;: cache size grows with batch × layers × heads × sequence_length × head_dim, and is often the limit on concurrent sessions or context length before model weights fill VRAM.&lt;/p&gt;</description></item><item><title>LLM (Large Language Model)</title><link>https://lesitedefrancois.be/en/ai/llm/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://lesitedefrancois.be/en/ai/llm/</guid><description>&lt;p&gt;An &lt;strong&gt;LLM (large language model)&lt;/strong&gt; is a deep neural network—almost always a &lt;strong&gt;Transformer&lt;/strong&gt;—trained on large amounts of text (and sometimes multimodal data) to model the probability of the next token given prior context. Its objective at &lt;strong&gt;training&lt;/strong&gt; time is to minimize prediction error over billions of tokens, producing weights that encode grammar, facts (with limitations), reasoning patterns, and task-following behavior after alignment or instruction tuning. At &lt;strong&gt;inference&lt;/strong&gt; time the same model &lt;strong&gt;generates&lt;/strong&gt; completions, answers questions, summarizes documents, or drives agents; production systems expose it through APIs (often OpenAI-compatible) backed by engines such as &lt;strong&gt;vLLM&lt;/strong&gt; or &lt;strong&gt;NIM&lt;/strong&gt;. LLMs power chatbots, code assistants, RAG pipelines, and enterprise copilots.&lt;/p&gt;</description></item></channel></rss>