본문으로 건너뛰기
Skillpedia
머신러닝15k · #11075

distributed-training

하는 일

스킬은 여러 GPU에서 학습하는 패턴을 제공합니다. GPU 한 대로는 부족해 더 빠른 학습이 필요한 실무자를 위한 스킬입니다.

사용하는 경우

  • ✓여러 GPU에 걸쳐 모델 학습을 확장하고 싶을 때.
  • ✓PyTorch에서 단일 GPU 학습에서 다중 GPU 학습으로 옮길 때.
  • ✓다중 GPU 설정에서 체크포인트를 저장하거나 학습률을 조정해야 하는 경우.

스킬 링크

https://github.com/aiming-lab/AutoResearchClaw/blob/main/researchclaw/skills/builtin/tooling/distributed-training/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/aiming-lab/AutoResearchClaw/blob/main/researchclaw/skills/builtin/tooling/distributed-training/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“PyTorch 학습 스크립트를 DistributedDataParallel을 써서 GPU 네 개로 옮겨 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 DistributedDataParallel을 추천하고, 프로세스 그룹을 초기화하며, 분산 샘플러로 데이터를 샤딩하고, 배치 정규화를 동기화하며, 체크포인트를 한 프로세스에서만 저장하고, 학습률을 조정합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Distributed Training Best Practice

  1. Use DistributedDataParallel (DDP) over DataParallel for multi-GPU
  2. Initialize process group: dist.init_process_group(backend='nccl')
  3. Use DistributedSampler for data sharding
  4. Synchronize batch norm: nn.SyncBatchNorm.convert_sync_batchnorm()
  5. Only save checkpoint on rank 0
  6. Scale learning rate linearly with world size
  7. Use gradient accumulation for effectively larger batch sizes
자주 묻는 질문

DataParallel을 쓰지 않는 이유는?

스킬은 다중 GPU 학습에 DataParallel 대신 DistributedDataParallel을 추천합니다.

체크포인트는 누가 저장하나요?

메인 프로세스인 rank 0만 저장해, 파일이 여러 번 쓰이지 않게 합니다.

학습률은 어떻게 바꿔야 하나요?

프로세스 수에 비례해 선형으로 조정합니다.

상세 정보

작성자의 원본 설명

Multi-GPU and distributed training patterns with PyTorch DDP. Use when scaling training across GPUs.

repo: aiming-lab/AutoResearchClaw

인기도

GitHub 스타
15k
순위
#11075
라이선스
MIT
업데이트
2026. 8. 19.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬