Notes on training language models, accelerating inference and fitting music retrieval models. The repo is meant to grow. New topics get
their own folder under docs/, and each page answers one question.
-
Music search with SBS-Music-Training covers building labeled comparisons and training and testing a retrieval metric.
-
ThunderLLM experiments — nine studies of GPU placement, long coding tasks, KV reuse, vision and Volta kernels, including failed trials.
-
Long-context inference on a V100 and an RTX 3060 compares one and two GPUs on cold prompts, repeated prefixes and interleaved chat requests. The paired CSV files contain the measurements.
-
DFlash2 Stage-2 covers the trainer, formulas, validation and runtime benchmark from 13 November.
-
The Whittle experiment history follows DFlash2 training from LoRA to forward KL.
-
EAGLE-3 on V100 covers Whittle features, offline training and the smoke run from 18 November.
The site is bilingual. Every page has an English file and a Russian twin, built
at / and /ru/, and the header carries a language switch that stays on the
same page.
| Path | Contents |
|---|---|
docs/ |
English pages plus *.ru.md twins, one topic per file, built by MkDocs |
mkdocs.yml |
Site config, navigation, locales, math and diagram setup |
requirements.txt |
Pinned Python dependencies for the build |
README.ru.md |
Russian version of this file |
| Section | Contents |
|---|---|
| Overview | The two prediction tasks, notation, the pipeline |
| Training data | How the frozen target makes tokens and features, anchor sampling, the context window |
| Draft architecture | Attention, SwiGLU, dynamic convolutions, output head, top-16 list |
| Objective | Full-vocabulary cross-entropy, the selector, the combined loss |
| Optimization | Clipping, AdamW, learning rate, mixed precision |
| Validation | Offline metrics, prefix proxy, validation windows, the 854 training positions |
| Multi-anchor analysis | What averaging over anchors changes, how much coverage it buys |
| Runtime and benchmark | Server verification, acceptance, the 768-request benchmark, long-context GPU placement and cache reuse |
| Training workflow | Checkpoint choice, feature storage, optimizer state memory, export rounding |
| Dataset | Mixing ratios and split leakage |
| Whittle experiments | Configurations, completed budgets, results and checkpoint lineage through 16 November 2026 |
| EAGLE-3 on Whittle | Feature layout, token alignment, offline training and the V100 smoke run |
| Reference | One training step in pseudocode, limits of the formulas, sources |
Python 3.11.5 or newer is required by the pinned Markdown extensions.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
mkdocs serveOpen http://127.0.0.1:8000/ML-Docs/ for English and
http://127.0.0.1:8000/ML-Docs/ru/ for Russian. The /ML-Docs/ prefix comes
from site_url, configured for a GitHub Pages project site.
Run mkdocs build --strict to check internal links, section anchors and navigation in both languages.
Run the site tests after installing the dependencies. They build both languages in a temporary directory, follow internal links and check that the language switch opens the same topic.
python -m unittest discover -s tests- Create
docs/<section>/<page>.md, one question per page. - Create
docs/<section>/<page>.ru.mdnext to it. The i18n plugin pairs the two by filename, so no extra config is needed. - Register the English file in the
navblock ofmkdocs.yml. Pages outsidenavstill get built, they just do not show up in the sidebar. - Add the sidebar label to
nav_translationsunderlocale: ruif the title is new. - Write math as
$...$or$$...$$, diagrams as```mermaidfences. - Link other pages by relative path to the
.mdfile, in both languages.--strictcatches targets that do not exist.
Miss a translation and the build fills the gap with the English page, so the Russian sidebar stays complete while you catch up.
The notes are math-heavy, so the site needs equations, symbol tables and at least one diagram. MkDocs Material handles all three from plain Markdown, with no JavaScript toolchain:
- Math:
pymdownx.arithmatexin generic mode emits\( \)and\[ \], and KaTeX renders them in the browser. KaTeX and its fonts are vendored underdocs/assets/, so preview works offline. - Diagrams:
pymdownx.superfencesturns```mermaidfences into<pre class="mermaid">for the vendored Mermaid build. - Languages:
mkdocs-static-i18nin suffix mode pairspage.mdwithpage.ru.md, builds both trees, and generates Material's language selector using the site's base path.
Both are pinned upstream releases copied in as-is: KaTeX 0.16.22 and Mermaid 11.4.1.
- Formulas use TeX, inline
$...$, display$$...$$. - Numbers keep English decimal points (
3.86806307,1.2661%) so they can be copied into code without edits. - Symbols are defined once, in
docs/overview/notation.md. Other pages link there instead of redefining them. - Every metric is labelled with the procedure that produced it. Offline accuracy, runtime acceptance and decode speed stay three separate numbers and are never converted into each other.
The Stage-2 walkthrough describes one run. The experiment history covers several Whittle draft-training runs through 16 November 2026. Target weights stayed frozen. Configurations and results describe these implementations, not every DFlash2 trainer.
Referenced trainer files and the Coach experiment archive are not included in this repository. Training and archive tests were not rerun for this documentation edit. See sources and archive details.
The repository contains public documentation and the numeric measurement tables linked from each study.