효율적이고 확장 가능한 MoE 학습을 위한 Olmo-core 강화
Supercharging Olmo-core for Efficient and Scalable MoE Training
한국어 초록
전문가 혼합(MoE) 모델은 토큰당 연산량을 비례해서 늘리지 않으면서 파라미터를 추가한다. 그러나 학습 비용은 이동되는 바이트, 보유되는 메모리, 실행되는 커널에도 좌우되며, 이러한 비용 중 다수는 활성 연산량이 아니라 전체 파라미터 크기를 따른다. 밀집 모델을 위해 구축된 인프라에서는 이러한 불일치가 큰 비용을 초래한다. 초기 기준선에서는 토큰당 유효 작업량이 거의 고정되어 있음에도 저장된 전문가 파라미터 크기가 커질수록 처리량이 떨어졌다. 이 격차를 해소하기 위해 우리는 효율적이고 확장 가능한 MoE 학습을 위해 Olmo-core에서 재설계한 학습 스택을 제시한다. 이전 Olmo-core 버전의 완전 분할 데이터 병렬(FSDP)을 분산 데이터 병렬(DDP) 기반 아키텍처로 대체하고, 전문가 병렬(EP), 파이프라인 병렬(PP), 분산 옵티마이저, 활성화 재계산을 추가한다. 우리는 각 토큰을 해당 전문가의 버퍼에 직접 기록하여 디스패치 및 결합 순열 오버헤드를 피하는 NVSHMEM 기반 행 단위 EP를 제안한다. 라우팅 메타데이터를 GPU에 유지하고 디바이스가 스케줄링하는 그룹화된 GEMM을 사용하여 EP를 완전히 동기화 없이 만든다. 긴밀하게 통합된 MXFP8은 연산, 활성화 메모리, 전송 비용을 줄이며, 토폴로지에 구애받지 않는 체크포인트는 실행 간에 병렬 배치를 바꿀 수 있게 한다. NVL8 B300 노드에서 이 스택은 최대 512개 GPU에서 총 129억에서 1.2조 파라미터에 이르는 학습 구성을 지원하며, MXFP8과 계층별 재계산을 사용한 1.2조 파라미터에서 GPU당 858 유효 모델 TFLOP/s에 도달한다. 선택적 DeepEP v2 백엔드를 사용한 실험적 용량 테스트에서는 2.38조에 도달한다. 또한 각 설계 선택을 설명하고 다른 학습 시스템을 위한 발견을 공유한다. 예를 들어 MoE 라우터가 로드 밸런싱 손실을 해킹하도록 학습될 수 있는 Token Gerrymandering이라 부르는 실패 패턴을 확인하였으며, 통신과 연산을 중첩하면 겹쳐진 커널이 느려지는 정도가 숨겨지는 시간보다 클 수 있음을 발견하였다.
원문 초록
Mixture-of-Experts (MoE) models add parameters without proportionally increasing per-token compute. However, training cost also depends on bytes moved, memory held, and kernels launched, and many of those costs follow total parameter size rather than active compute. On infrastructure built for dense models, this mismatch is costly: in early baselines, throughput fell as stored expert parameter size grew, even though the useful work per token stayed nearly fixed. To close this gap, we present a redesigned training stack in Olmo-core, built for efficient, scalable MoE training. We replace the Fully Sharded Data Parallel (FSDP) of earlier Olmo-core versions with an architecture built on Distributed Data Parallel (DDP), and add Expert Parallelism (EP), Pipeline Parallelism (PP), a distributed optimizer, and activation recompute. We propose NVSHMEM-based rowwise EP, which writes each token directly into its expert's buffer, avoiding dispatch and combine permutation overhead. We make EP fully synchronization-free by keeping routing metadata on the GPU and using device-scheduled grouped GEMMs. Closely integrated MXFP8 cuts compute, activation-memory, and transport costs, and topology-agnostic checkpoints let the parallel layout change between runs. On NVL8 B300 nodes, the stack supports training configurations from 12.9 billion to 1.2 trillion total parameters on up to 512 GPUs, reaching 858 useful-model TFLOP/s/GPU at 1.2 trillion with MXFP8 and per-layer recompute; an experimental capacity test with the optional DeepEP v2 backend reaches 2.38 trillion. We also explain each design choice and share findings for other training systems; for example, we identify a failure pattern we call Token Gerrymandering, in which the MoE router can learn to hack the load-balancing loss, and find that overlapping communication with computation can slow the overlapped kernels by more than it hides.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2611.18956v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.