ml-engineering
하는 일
이 스킬은 하드웨어 선택부터 장애 복구까지, 대형 AI 모델을 학습하고 서비스하는 실용적인 방법과 레시피를 제공합니다. 대형 학습이 제시간과 예산 안에 끝나야 하는 ML 엔지니어를 위한 스킬입니다.
사용하는 경우
- ✓대형 모델 학습을 위해 하드웨어와 저장소를 고를 때.
- ✓학습이 느리거나, 메모리가 부족하거나, NaN 값이 나올 때.
- ✓긴 학습 작업을 위한 체크포인트와 복구 계획이 필요한 경우.
스킬 링크
https://github.com/stas00/ml-engineering/blob/master/skills/ml-engineering/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 대형 모델 학습에서 계속 NaN 손실이 나옵니다. 원인을 찾고 복구 방법을 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 오래된 공개 참고 자료에서 가져온 압축된 지침으로, 벤치마킹, 작업 스케줄링, 메모리와 처리량 튜닝, 학습 안정성을 다룹니다. 각 문제에 맞는 섹션을 가리키며, 스크립트와 벤치마크가 있으면 함께 안내합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.
- The number that matters is achievable, not theoretical. Real matmul FLOPS are well below spec. Measure Maximum Achievable Matmul FLOPS with
mamf-finder.py; compute MFU (model FLOPS utilization) to compare setups. See the most important thing to understand and what accelerator characteristics we care for. For a full trial-node loop (compute + network + storage → markdown report) see How to evaluate the cluster and the evaluate-cluster skill. - Memory capacity + bandwidth often bind before FLOPS. Check the [accelerator memory size and speed table](https://github.com/stas00/ml-engineering/blob/master/compute/accelera
자주 묻는 질문
완전한 학습 매뉴얼인가요?
아니요. 압축된 색인이며, 각 섹션은 더 깊은 내용을 위해 더 자세한 장으로 연결됩니다.
모델 서비스도 다루나요?
예. 검색과 추론 시스템을 포함해 대형 모델의 학습과 서비스를 다룹니다.
지침은 어디에서 왔나요?
Stas Bekman이 대형 모델을 학습한 경험을 바탕으로 쓴 공개 책에서 왔습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 20k
- 순위
- #10479
- 라이선스
- CC-BY-SA-4.0
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.