Thomas Piacentini
← Atelier

10 · Construire les LLM

Construire les LLM

Texte original · anglais

Build, train, and understand large language models.

Start this phase on GitHub

Prerequisites: Phase 5 NLP Foundations. Phase 7 Transformers is strongly recommended before the model-building lessons.

First lesson: Tokenizers

Run this command from the repository root:

bash
python3 phases/10-llms-from-scratch/01-tokenizers/code/main.py

Keep the command, exit code, encode/decode round-trip results, learned merge count, and compression ratios. tiktoken is an optional comparison.

Next action: Add a word the tiny corpus has not seen, inspect its pieces, then continue to Building a Tokenizer from Scratch.

Browse the full Phase 10 lesson list or the cross-phase roadmap.

Continuer étape par étape.

Code et livrables 1
Ce que vous en retenez

Enregistré dans votre carnet sur cet appareil.

Sources et limites

Les repères de lecture sont déclaratifs. Les résultats de tests sont enregistrés séparément ; ils valent pour les cas exécutés.

AI Engineering from Scratch · 3f9715c · MIT

Télécharger ce fichier ↓