Aller au contenu
Skillpedia
Agents20k · #10479

ml-engineering

Ce qu’il fait

Ce skill propose des méthodes et des recettes pratiques pour entraîner et servir de grands modèles d'IA, du choix du matériel à la reprise après une panne. Il s'adresse aux ingénieurs en apprentissage automatique qui doivent terminer leurs grands entraînements dans les délais et le budget prévus.

Quand l’utiliser

  • ✓Quand vous devez choisir le matériel et le stockage pour entraîner un grand modèle.
  • ✓Quand un entraînement est lent, manque de mémoire ou produit des valeurs NaN.
  • ✓Quand vous avez besoin de plans de sauvegarde et de reprise pour les longs entraînements.

Lien du skill

https://github.com/stas00/ml-engineering/blob/master/skills/ml-engineering/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/stas00/ml-engineering/blob/master/skills/ml-engineering/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Notre entraînement de grand modèle produit sans cesse des pertes NaN. Aide-moi à trouver pourquoi et à reprendre l'entraînement.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Le skill est un guide condensé tiré d'une longue référence ouverte, qui couvre le benchmarking, la planification des tâches, le réglage de la mémoire et du débit, ainsi que la stabilité de l'entraînement. Il renvoie vers la section pertinente pour chaque problème, avec des scripts et des benchmarks lorsqu'ils existent.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Machine Learning Engineering

Distilled from Machine Learning Engineering Open Book by Stas Bekman - source: https://github.com/stas00/ml-engineering (CC BY-SA 4.0). Know-how from training BLOOM-176B, IDEFICS-80B and production RAG and RL training and inference systems. This skill is a condensed index; each section links back to the full chapter for depth, scripts, and benchmarks.

A field-tested, end-to-end guide to training and serving large models (LLMs, VLMs, multi-modal, RAG) on real hardware at scale - distilled from actually training BLOOM-176B and IDEFICS-80B and building production inference/RAG systems. It is a practitioner's brain dump: opinionated guidance backed by copy-paste scripts, benchmark tools, and comparison tables, written for the engineers and operators who have to make expensive clusters actually deliver a finished model.

It spans the entire stack that decides whether a run succeeds and how much it costs: selecting and benchmarking accelerators, storage, and network so the fast compute is never starved; orchestrating jobs with SLURM/Kubernetes; maximizing throughput (MFU) and fitting models in memory via parallelism (DP/TP/PP/ZeRO), activation recomputation, and offload; keeping training numerically stable through loss spikes and NaN/Inf; and surviving the inevitable hardware and job failures with frequent checkpointing, spare capacity, and automatic restarts. On the serving side it covers inference latency/throughput/cost trade-offs, KV-cache and memory sizing, and framework selection - plus diagnosing multi-node/multi-GPU hangs and testing the whole thing.

Use it as an operator's runbook: figure out which resource is actually the bottleneck (compute? memory? network? storage? dataloader?), then jump to the targeted recipe. For pure debugging technique (gdb/strace/py-spy/CUDA), pair this with The Art of Debugging.

Core principles

  • Measure, don't assume. Vendor/theoretical TFLOPS are marketing; benchmark your hardware and software stack before optimizing or buying. Track MFU/throughput, not vibes.
  • Find the actual bottleneck. A training step is gated by the slowest of: accelerator compute, memory bandwidth/capacity, inter/intra-node network, storage IO, or CPU dataloading. Optimizing anything else is wasted effort.
  • At scale, failure is the steady state. With hundreds/thousands of accelerators, hardware will fail mid-run. Design for frequent checkpoints, automatic restarts, spare nodes, and kill/save switches from day one.
  • Reproduce small and fast. Debug on a tiny model / few layers / one node before burning cluster time - see The Art of Debugging.
  • Watch the logbooks. Others have already hit your instability; training chronicles document the loss spikes and the fixes. See LLM/VLM chronicles.

Compute / accelerators

Full chapter: Compute · Accelerators.

Questions fréquentes

S'agit-il d'un manuel d'entraînement complet ?

Non. C'est un index condensé, et chaque section renvoie à un chapitre plus complet pour approfondir.

Couvre-t-il aussi le service des modèles ?

Oui. Il couvre l'entraînement et le service de grands modèles, y compris les systèmes de recherche et d'inférence.

D'où vient ce guide ?

D'un livre ouvert de Stas Bekman, fondé sur l'expérience de l'entraînement de grands modèles.

Détails

Description originale de l’auteur

Field-tested methodology and concrete recipes for training and operating large-scale LLM/VLM/multi-modal models end to end - choosing and benchmarking accelerators, storage and network; SLURM/Kubernetes orchestration; maximizing training throughput and fitting models in memory; diagnosing and surviving training instabilities, NaN/Inf, and hardware/job failures; checkpointing and fault tolerance; inference performance and memory; debugging multi-node/ multi-GPU hangs; and writing/running tests. Use when the user is training or fine-tuning large models, hits low TFLOPS/MFU, OOM, slow dataloading

repo: stas00/ml-engineering

Popularité

Étoiles GitHub
20k
Position au classement
#10479
Licence
CC-BY-SA-4.0
Mis à jour
01/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires