Skip to content
biscetPublic

About

English and Russian guides to LLM training, music retrieval and GPU inference. ThunderLLM studies cover long context, KV reuse, draft placement and Volta kernels.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

LM Docs — LM Knowledge Base

Русская версия

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.

Studies

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.

What is inside

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

Preview locally

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 serve

Open 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

Adding a page

  1. Create docs/<section>/<page>.md, one question per page.
  2. Create docs/<section>/<page>.ru.md next to it. The i18n plugin pairs the two by filename, so no extra config is needed.
  3. Register the English file in the nav block of mkdocs.yml. Pages outside nav still get built, they just do not show up in the sidebar.
  4. Add the sidebar label to nav_translations under locale: ru if the title is new.
  5. Write math as $...$ or $$...$$, diagrams as ```mermaid fences.
  6. Link other pages by relative path to the .md file, in both languages. --strict catches 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.

Why MkDocs Material

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.arithmatex in generic mode emits \( \) and \[ \], and KaTeX renders them in the browser. KaTeX and its fonts are vendored under docs/assets/, so preview works offline.
  • Diagrams: pymdownx.superfences turns ```mermaid fences into <pre class="mermaid"> for the vendored Mermaid build.
  • Languages: mkdocs-static-i18n in suffix mode pairs page.md with page.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.

Conventions

  • 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.

Scope and provenance

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.

About

English and Russian guides to LLM training, music retrieval and GPU inference. ThunderLLM studies cover long context, KV reuse, draft placement and Volta kernels.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages