<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Foundations on AI Tools</title>
    <link>https://ait.bsc.es/handbook/foundations/</link>
    <description>Recent content in Foundations on AI Tools</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="https://ait.bsc.es/handbook/foundations/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>What is LLM inference?</title>
      <link>https://ait.bsc.es/handbook/foundations/what-is-llm-inference/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://ait.bsc.es/handbook/foundations/what-is-llm-inference/</guid>
      <description>&lt;p&gt;Inference is the process of using a trained model to produce output for new input. For&#xA;large language models this happens in two distinct phases with very different&#xA;performance characteristics, and almost every serving trade-off in this handbook follows&#xA;from that asymmetry.&lt;/p&gt;&#xA;&lt;p&gt;This page establishes the vocabulary used throughout: prefill, decode, tokens, context,&#xA;and the KV cache.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-you-will-learn&#34;&gt;What you will learn&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;What happens between a request arriving and tokens being returned.&lt;/li&gt;&#xA;&lt;li&gt;Why prefill is compute-bound and decode is memory-bandwidth-bound.&lt;/li&gt;&#xA;&lt;li&gt;What the KV cache is and why it dominates memory planning.&lt;/li&gt;&#xA;&lt;li&gt;The vocabulary reused across the rest of the handbook.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;recommended-outline&#34;&gt;Recommended outline&lt;/h2&gt;&#xA;&lt;p&gt;This page is an outline. The subsections below are the planned structure;&#xA;they are filled in as the handbook is written.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Training vs. inference</title>
      <link>https://ait.bsc.es/handbook/foundations/training-vs-inference/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://ait.bsc.es/handbook/foundations/training-vs-inference/</guid>
      <description>&lt;p&gt;Training and inference both run the same model architecture on the same accelerators,&#xA;which makes it tempting to treat them as one problem. Their resource profiles, failure&#xA;modes and success criteria differ enough that conflating them leads to expensive&#xA;mistakes.&lt;/p&gt;&#xA;&lt;p&gt;This page contrasts the two so the rest of the handbook can assume an inference-first&#xA;perspective.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-you-will-learn&#34;&gt;What you will learn&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;How the compute, memory and networking profiles of the two workloads differ.&lt;/li&gt;&#xA;&lt;li&gt;Why throughput is the goal in training and latency often is in serving.&lt;/li&gt;&#xA;&lt;li&gt;Which training-oriented infrastructure choices transfer to serving and which do not.&lt;/li&gt;&#xA;&lt;li&gt;How the cost model changes when a workload runs continuously.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;recommended-outline&#34;&gt;Recommended outline&lt;/h2&gt;&#xA;&lt;p&gt;This page is an outline. The subsections below are the planned structure;&#xA;they are filled in as the handbook is written.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How does an LLM work?</title>
      <link>https://ait.bsc.es/handbook/foundations/how-does-an-llm-work/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://ait.bsc.es/handbook/foundations/how-does-an-llm-work/</guid>
      <description>&lt;p&gt;You do not need to be able to derive backpropagation to serve a model well, but you do&#xA;need an accurate picture of what the hardware is doing during each forward pass. This&#xA;page provides that picture, at the level of detail that serving decisions actually&#xA;depend on.&lt;/p&gt;&#xA;&lt;p&gt;The emphasis is on where the time and the memory go, rather than on model quality or&#xA;training dynamics.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-you-will-learn&#34;&gt;What you will learn&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The shape of a transformer forward pass, layer by layer.&lt;/li&gt;&#xA;&lt;li&gt;Why attention cost grows with sequence length.&lt;/li&gt;&#xA;&lt;li&gt;How autoregressive generation turns one request into many forward passes.&lt;/li&gt;&#xA;&lt;li&gt;Which parts of the computation dominate time and memory.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;recommended-outline&#34;&gt;Recommended outline&lt;/h2&gt;&#xA;&lt;p&gt;This page is an outline. The subsections below are the planned structure;&#xA;they are filled in as the handbook is written.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Where is LLM inference run?</title>
      <link>https://ait.bsc.es/handbook/foundations/where-is-llm-inference-run/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://ait.bsc.es/handbook/foundations/where-is-llm-inference-run/</guid>
      <description>&lt;p&gt;Where inference runs determines what you can control and what you must accept. The&#xA;decision is rarely purely technical: data residency, procurement, existing hardware and&#xA;the shape of demand all constrain it.&lt;/p&gt;&#xA;&lt;p&gt;This page lays out the options and the criteria for choosing between them.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-you-will-learn&#34;&gt;What you will learn&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The main deployment targets and what distinguishes them.&lt;/li&gt;&#xA;&lt;li&gt;How data residency and compliance constrain the choice.&lt;/li&gt;&#xA;&lt;li&gt;When on-premises accelerators are worth the operational burden.&lt;/li&gt;&#xA;&lt;li&gt;Why demand shape matters as much as demand volume.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;recommended-outline&#34;&gt;Recommended outline&lt;/h2&gt;&#xA;&lt;p&gt;This page is an outline. The subsections below are the planned structure;&#xA;they are filled in as the handbook is written.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Key metrics for LLM inference</title>
      <link>https://ait.bsc.es/handbook/foundations/key-metrics/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://ait.bsc.es/handbook/foundations/key-metrics/</guid>
      <description>&lt;p&gt;Inference performance cannot be summarised by a single number. A deployment tuned for&#xA;tokens per second may feel unresponsive; one tuned for first-token latency may waste&#xA;most of its accelerator capacity.&lt;/p&gt;&#xA;&lt;p&gt;This page defines the metrics used throughout the handbook and, importantly, what each&#xA;one obscures when quoted alone.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-you-will-learn&#34;&gt;What you will learn&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The definitions of time to first token, time per output token and end-to-end latency.&lt;/li&gt;&#xA;&lt;li&gt;How throughput and concurrency relate, and why averages mislead.&lt;/li&gt;&#xA;&lt;li&gt;What goodput measures and why it matters under load.&lt;/li&gt;&#xA;&lt;li&gt;Which metrics to attach to a service-level objective.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;recommended-outline&#34;&gt;Recommended outline&lt;/h2&gt;&#xA;&lt;p&gt;This page is an outline. The subsections below are the planned structure;&#xA;they are filled in as the handbook is written.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
