Saltar al contenido
Skillpedia
Agentes20 mil · #10479

ml-engineering

Qué hace

Ofrece métodos y recetas prácticas para entrenar y servir modelos de IA grandes, desde elegir el hardware hasta recuperarse de fallos. Es para ingenieros de ML que necesitan que los entrenamientos grandes terminen a tiempo y dentro del presupuesto.

Cuándo usarla

  • ✓Cuando necesitas elegir el hardware y el almacenamiento para entrenar un modelo grande.
  • ✓Cuando un entrenamiento va lento, se queda sin memoria o produce valores NaN.
  • ✓Cuando necesitas planes de puntos de control y de recuperación para trabajos de entrenamiento largos.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/stas00/ml-engineering/blob/master/skills/ml-engineering/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Nuestro entrenamiento de un modelo grande sigue produciendo pérdidas NaN. Ayúdame a averiguar por qué y cómo recuperarlo.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La skill es una guía condensada extraída de una larga referencia abierta, que cubre el benchmarking, la programación de trabajos, el ajuste de memoria y rendimiento, y la estabilidad del entrenamiento. Para cada problema señala la sección relevante, con scripts y benchmarks cuando existen.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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.

Preguntas frecuentes

¿Es un manual completo de entrenamiento?

No. Es un índice condensado, y cada sección enlaza con un capítulo más amplio para profundizar.

¿Cubre también la puesta en servicio de modelos?

Sí. Cubre el entrenamiento y el servicio de modelos grandes, incluidos los sistemas de recuperación e inferencia.

¿De dónde sale la orientación?

De un libro abierto de Stas Bekman, basado en la experiencia de entrenar modelos grandes.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
20 mil
Posición en el ranking
#10479
Licencia
CC-BY-SA-4.0
Actualizada
1/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas