Meganeura: Vulkan 및 Metal을 통한 이식성 높은 GPU 학습 및 추론
Meganeura: Portable GPU Training and Inference through Vulkan and Metal
한국어 초록
학습(training)과 배포된 추론(inference)은 종종 내보내기, 변환, 플랫폼별 런타임의 경계를 넘나듭니다. Meganeura는 하나의 소형 네이티브 컴파일러가 소비자용 GPU에서 이 두 단계를 모두 아우를 수 있는지 질문을 던집니다. Meganeura의 타입화된 정적 그래프, 자동 미분, 옵티마이저(optimizer), 체크포인트(checkpoint), 메모리 플래너 및 런타임은 특화된 프로그램을 Vulkan 및 Metal을 통해 하위 수준으로 변환합니다. 저자들은 NVIDIA 및 AMD 외장 GPU, AMD APU, Apple silicon, Intel iGPU에서 PyTorch와 일치시킨 5개의 워크로드를 비교합니다. 평가 프로토콜은 엄격한 f32와 검증된 고속 경로를 분리하며, 순전파와 역전파를 독립적으로 제어합니다. 50개의 디바이스-워크로드-모드 셀 중 48개가 두 관문을 모두 통과했으며, 나머지 2개는 새로 지원된 APU에서 해결되지 않은 역전파 참조 불일치 하나를 공유합니다. 엄격한 f32에서 Meganeura는 20개의 GPU 참조 최소 지연 시간 셀 중 12개에서 승리하며, 유효한 학습 격차 중앙값은 1.8배입니다. 외장 AMD GPU에서 5개 중 4개의 추론 워크로드는 컴파일된 ROCm PyTorch의 1.10배 이내이며, 3개의 학습 워크로드는 더 빠릅니다. 가속 계약 조건에서 가장 큰 학습 격차는 4.6배입니다. 지원되는 GPU 경로에서 torch.compile의 컴파일 시간이 6~96초인 것에 비해 컴파일 시간은 0.1~2.4초가 소요되며, 스트립된 바이너리 크기는 13 MiB입니다. 디스패치 프로파일 분석 결과 가장 큰 격차는 합성곱(convolution) 도함수와 어텐션(attention) 역전파에서 발생하는 것으로 국소화되었습니다. 실제 Android XR 사례 연구에서는 그래픽 큐를 공유하는 Adreno/OpenXR 애플리케이션으로 Meganeura로 학습된 디코더를 전송합니다. 결과는 범용 소비자 그래픽 API가 유용하고 때로는 벤더 경쟁력 있는 성능으로 소형 공유 학습-배포 스택을 지원할 수 있음을 보여줍니다. 측정된 격차는 확인된 API 한계보다는 커널(kernel) 커버리지, 스케줄링 및 연산 정책에서 기인함을 나타냅니다.
원문 초록
Training and deployed inference often cross export, conversion, and platform-specific runtime boundaries. Meganeura asks whether one compact native compiler can span both phases on consumer GPUs. Its typed static graph, automatic differentiation, optimizer, checkpoint, memory planner, and runtime lower specialized programs through Vulkan and Metal. We compare five matched workloads with PyTorch on NVIDIA and AMD discrete GPUs, an AMD APU, Apple silicon, and an Intel iGPU. The protocol separates strict f32 from validated fast paths and gates forward and backward independently. Forty-eight of 50 device-workload-mode cells pass both gates; the other two share one unresolved backward-reference disagreement on a newly supported APU. In strict f32, Meganeura wins 12 of 20 GPU-referenced minimal-latency cells and has a median valid training gap of 1.8x. On the discrete AMD GPU, four of five inference workloads are within 1.10x of compiled ROCm PyTorch and three training workloads are faster. Under accelerated contracts, the worst training gap is 4.6x. Compilation takes 0.1-2.4 seconds versus 6-96 seconds for torch.compile on supported GPU paths; the stripped binary is 13 MiB. Dispatch profiles localize the largest gaps to convolution derivatives and attention backward. A physical Android XR case study transfers a Meganeura-trained decoder into an Adreno/OpenXR application sharing the graphics queue. The results show that general consumer graphics APIs can support a compact shared train-to-deploy stack at useful, sometimes vendor-competitive performance. The measured gaps point to kernel coverage, scheduling, and arithmetic policy rather than an identified API limitation.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2608.01563v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.