# Beyond the Trial-and-Error Loop: Hybrid Projection and Automated Tuning for Distributed Training

DevFeed: [Beyond the Trial-and-Error Loop: Hybrid Projection and Automated Tuning for Distributed Training](<https://devfeed.tech/articles/beyond-the-trial-and-error-loop-hybrid-projection-and-automated-tuning-for-distributed-training-131516.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.19423>)

Author: Anshu Raina, Peyman Razaghi, Yuankai Chen, Cheng Yao, Yao Fu, Vidushi Goyal, Devang Patel, Wen Xie, Zhenyu Gu, Emad Barsoum

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [distributed-training](<https://devfeed.tech/topics/distributed-training.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [automated](<https://devfeed.tech/tags/automated.md>), [axis](<https://devfeed.tech/tags/axis.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [crashes](<https://devfeed.tech/tags/crashes.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [data](<https://devfeed.tech/tags/data.md>), [deepseek-v3](<https://devfeed.tech/tags/deepseek-v3.md>), [device](<https://devfeed.tech/tags/device.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [distributed-training](<https://devfeed.tech/tags/distributed-training.md>), [engine](<https://devfeed.tech/tags/engine.md>), [exploration](<https://devfeed.tech/tags/exploration.md>), [fast](<https://devfeed.tech/tags/fast.md>), [filter](<https://devfeed.tech/tags/filter.md>), [hybrid](<https://devfeed.tech/tags/hybrid.md>), [kernels](<https://devfeed.tech/tags/kernels.md>), [llama](<https://devfeed.tech/tags/llama.md>), [llama-3-1](<https://devfeed.tech/tags/llama-3-1.md>), [projection](<https://devfeed.tech/tags/projection.md>), [training](<https://devfeed.tech/tags/training.md>)

## AI overview

Primus Projection estimates distributed-training throughput by combining GPU microbenchmarks with analytical scaling of collectives, FSDP overlap, and pipeline schedules; it also offers CPU-only simulation for planning without GPUs. The Primus Tuning Agent uses these projections to score candidates in seconds, combining single-axis sweeps with LLM-proposed cross-axis configurations and a memory-feasibility filter that rejects invalid candidates before GPU runs. Across the reported models and two GPU generations, projections stayed within about 10% of measured throughput, including 4.7% error at 1,024 GPUs and 1.9% at 256 GPUs. In a Mixtral 8x22B case study, tuning found a configuration with 27% higher throughput than the cited four-node BF16 reference in under 30 minutes of single-node exploration.

## Source excerpt

arXiv:2610.19423v2 Announce Type: replace-cross Abstract: Configuring distributed LLM training across hundreds of GPUs requires jointly optimizing tensor, pipeline, expert, context, and data parallelism alongside micro-batch size, recomputation, sharding, and overlap, a combinatorial space where memory legality can hinge on a single byte of activation accounting. Today, teams navigate it through expensive multi-node trial and error, burning GPU-hours on crashes and suboptimal recipes. We present Primus Projection, which closes this loop with two coupled components. First, a hybrid projection engine that measures what it can and simulates what it cannot: GPU microbenchmarks on as few as a single device capture compute kernels and any in-scope communication; a sub-node downscale-measure-upscale workflow analytically restores out-of-scope collectives, FSDP overlap, and the full pipeline schedule at the multi-node target. A pure simulation mode runs entirely on CPU, enabling pre-silicon planning without any GPU. Second, the Primus Tuning Agent treats the projection engine as a fast scoring oracle (seconds per candidate instead of tens of minutes) and uses it to drive an intelligent search over the configuration space. A deterministic seed planner sweeps single axes; an LLM investigation loop proposes cross-axis combinations the planner cannot reach, with an analytic memory pre-filter that rejects infeasible candidates before any GPU time is spent. Validated on Llama 3.1 (dense) and Mixtral 8x22B (MoE) across two GPU generations, all projections stay within ~10% of measured multi-node throughput, and fidelity holds at production scale: 4.7% error on DeepSeek V3 671B at 1,024 GPUs and 1.9% on Qwen3-235B-A22B at 256 GPUs. In a Mixtral 8x22B case study, the Primus Tuning Agent discovers a configuration delivering +27% throughput over the published 4-node BF16 reference at the same scale, in under 30 minutes of single-node exploration.