# Primus Tuning Agent: Closing the Configuration-Search Loop

**URL:** <https://devcommunity.amd.com/t/primus-tuning-agent-closing-the-configuration-search-loop/710>\
**Category:** Performance Tuning\
**Tags:** llm, aiml, optimization\
**Created:** [July 14, 2026, 11:50am UTC](https://devcommunity.amd.com/t/primus-tuning-agent-closing-the-configuration-search-loop/710 "2026-07-14T11:50:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nirth\_AMD](https://dub1.discourse-cdn.com/amd/user_avatar/devcommunity.amd.com/nirth_amd/32/623_2.png) [@nirth\_AMD](https://devcommunity.amd.com/u/nirth_AMD)\
**Post date:** [July 14, 2026, 11:50am UTC](https://devcommunity.amd.com/t/primus-tuning-agent-closing-the-configuration-search-loop/710/1 "2026-07-14T11:50:52Z")

</div>

![software-tools-optimization-primus-tuning-agent-Primus-tuning-agent-thumbnail](https://global.discourse-cdn.com/amd/original/1X/1caad8d7fe118fe63b46a6ebc0fb9058f4adbc07.webp)

Our earlier companion blog, [Primus Projection: Estimate Memory and Performance Before You Train](https://rocm.blogs.amd.com/software-tools-optimization/primus-projection/README.html), showed how to answer two questions about a _single_ training configuration before launching a run: **“Will it fit?”** and **“How fast will it be?”** But planning a large-scale training job raises a harder question that projection alone doesn’t answer: **out of the thousands of legal configurations, which one should I actually run?**

This blog covers the **Primus Tuning Agent** — a tool that treats the projection engine as a fast scoring oracle and uses it to _automatically search_ the joint configuration space (parallelism, micro-batch size, recomputation, pipeline schedule, MoE communication backend, and precision) for a high-throughput, memory-legal recipe. In a Mixtral 8×22B case study, the agent discovered a configuration that delivers **+27% measured throughput** over AMD’s published 4-node BF16 reference — in **under 30 minutes** of single-node exploration, with no hand-written Megatron configs and no full-cluster profiling pass.

## Read more: [Primus Tuning Agent: Closing the Configuration-Search Loop — ROCm Blogs](https://rocm.blogs.amd.com/software-tools-optimization/primus-tuning-agent/README.html)
