arXiv:2611.17294v1 cs.LG

Metal Sandbox: Apple Silicon 기반 GPU 코딩 에이전트를 위한 격리 실행과 명령 스케줄링

Metal Sandbox: Isolated Execution and Command Scheduling for GPU Coding Agents on Apple Silicon

Haozhe Wang, Lina Chen, Fanqi Wan, Qi Han, Yinmin Zhang, Zheng Ge, Daxin Jiang, Junchi Yan

제출 2026-11-12

저자 비고

arXiv Comments

16 pages, 7 figures, 5 tables. Code available at https://github.com/WangHaoZhe/metal-sandbox and https://github.com/WangHaoZhe/harbor

한국어 초록

온디바이스 추론에는 로컬 가속기를 효과적으로 활용하는 커널이 필요하다. Apple Metal 커널을 생성하는 모델의 효율적인 학습과 평가는 네이티브 macOS 도구와 동시 에이전트 세션의 이점을 얻는다. 이러한 세션은 모델 요청, 개발 명령, GPU 실행을 번갈아 수행하므로 롤아웃의 상당 부분 동안 GPU 용량이 유휴 상태로 남는다. 우리는 인스턴스별 제한된 파일 접근, 네이티브 명령 실행, 상호 연결된 Mac들에 걸친 명령 수준 스케줄링을 결합한 인프라인 Metal Sandbox를 제시한다. 각 에이전트는 자신의 워크스페이스와 개인 개발 환경을 유지한다. 병렬 명령은 동시에 실행될 수 있고, 직렬 명령은 노드당 하나의 실행 슬롯을 공유하며, 자격이 있는 대기 명령은 사용 가능한 Mac으로 이동하여 결과를 원래 에이전트에 반환할 수 있다. Harbor와의 통합을 통해 공통 워크플로로 작업 실행, 자동 검증, 롤아웃 수집을 지원한다. Mac mini M4 노드 네 대에서 수행한 통제된 실험에서 집중된 수요 하에 명령 처리량이 $1.68\times$--$2.05\times$ 향상되었다. 열여섯 개의 정적 에이전트 트레이스로부터, 세션이 지속적으로 보충되고 평균 지속 시간이 변하지 않는다고 가정할 때 노드당 세션 네 개 대비 한 개의 경우 지속 처리량이 $2.14\times$ 향상될 것으로 추정된다. 측정된 이 트레이스를 동적 스케줄링으로 재생하면, 단계별 지속 시간이 변하지 않는다고 가정할 때 평균 도구 대기 시간이 18.8%, 배치 경과 시간이 22.3% 감소한다. Metal Sandbox와 Harbor 통합은 GitHub에 오픈소스로 공개되어 있다.

원문 초록

On-device inference requires kernels that make effective use of local accelerators. Efficient training and evaluation of models that generate Apple Metal kernels benefit from native macOS tools and concurrent agent sessions. These sessions alternate between model requests, development commands, and GPU execution, leaving GPU capacity idle for much of a rollout. We present Metal Sandbox, infrastructure that combines restricted per-instance file access, native command execution, and command-level scheduling across interconnected Macs. Each agent retains its workspace and private development environment. Parallel commands can run concurrently, while serial commands share one execution slot per node; eligible waiting commands can migrate to available Macs and return results to the original agent. Integration with Harbor supports task execution, automatic verification, and rollout collection through a common workflow. Controlled experiments on four Mac mini M4 nodes achieve $1.68\times$--$2.05\times$ gains in command throughput under concentrated demand. Sixteen static agent traces give an estimated $2.14\times$ sustained-throughput gain for four sessions per node versus one, assuming continuously replenished sessions and unchanged mean durations. Replaying these measured traces under dynamic scheduling reduces mean tool waiting by 18.8% and batch elapsed time by 22.3%, assuming unchanged phase durations. Metal Sandbox and its Harbor integration are open-source on GitHub.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2611.17294v1

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.