Langsung ke konten
Skillpedia
Agen20k · #10479

ml-engineering

Fungsinya

Menawarkan metode dan resep praktis untuk melatih dan menyajikan model AI besar, mulai dari memilih perangkat keras sampai pulih dari kegagalan. Skill ini untuk insinyur ML yang membutuhkan proses pelatihan besar selesai tepat waktu dan sesuai anggaran.

Kapan dipakai

  • ✓Saat Anda perlu memilih perangkat keras dan penyimpanan untuk melatih model besar.
  • ✓Saat proses pelatihan lambat, kehabisan memori, atau menghasilkan nilai NaN.
  • ✓Saat Anda membutuhkan rencana checkpoint dan pemulihan untuk pekerjaan pelatihan panjang.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/stas00/ml-engineering/blob/master/skills/ml-engineering/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Proses pelatihan model besar kami terus menghasilkan loss NaN. Bantu saya mencari tahu penyebabnya dan cara memulihkannya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini adalah panduan ringkas yang diambil dari referensi terbuka yang panjang, mencakup benchmarking, penjadwalan pekerjaan, penyetelan memori dan throughput, serta stabilitas pelatihan. Skill menunjuk ke bagian yang relevan untuk setiap masalah, dengan skrip dan benchmark jika tersedia.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Apakah ini buku panduan pelatihan yang lengkap?

Tidak. Ini indeks ringkas, dan setiap bagian menautkan kembali ke bab yang lebih lengkap untuk pendalaman.

Apakah skill ini juga mencakup penyajian model?

Ya. Skill mencakup pelatihan dan penyajian model besar, termasuk sistem pencarian dan inferensi.

Dari mana panduan ini berasal?

Dari buku terbuka karya Stas Bekman, berdasarkan pengalaman melatih model besar.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
20k
Peringkat
#10479
Lisensi
CC-BY-SA-4.0
Diperbarui
1/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa