optimize-slurm-topology
Skill by NVlabs
Optimizes AlpaSim Slurm topology throughput using local Prometheus and Grafana telemetry and run artifacts. Built for engineers tuning GPU placement, worker counts and cache sizes for full-duration rollouts.
Install optimize-slurm-topology
Built from the published package, never by AI.
git clone --depth 1 https://github.com/NVlabs/alpasim /tmp/alpasim && mkdir -p ~/.claude/skills && cp -r /tmp/alpasim/.agents/skills/optimize-slurm-topology ~/.claude/skills/optimize-slurm-topologyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install optimize-slurm-topology in Claude Code
git clone --depth 1 https://github.com/NVlabs/alpasim /tmp/alpasim && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/alpasim/.agents/skills/optimize-slurm-topology ~/.gemini/antigravity-cli/skills/optimize-slurm-topologyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install optimize-slurm-topology in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill guides an AI assistant through iteratively improving AlpaSim rollout throughput on Slurm. It targets full 20s rollout throughput rather than startup-only behavior. The user supplies a full run command that sets the starting topology and target configuration, such as driver, sceneset, n_rollouts and cluster.
The workflow starts one persistent local Prometheus and Grafana instance and keeps a repo-local experiment record. It runs a baseline, then up to three candidate topologies in parallel. Candidates that OOM or crash are rejected. The stabilized full-run seconds_per_rollout is the primary target, normally reached 30 to 45 minutes after rollout production begins. The skill is intended for engineers tuning service GPU placement, replicas_per_container, runtime.nr_workers and related cache sizes.
Written from the project's SKILL.md and checked against it.
What it can do
- Baseline and candidate runsRuns a baseline topology and up to three candidate topologies in parallel.
- Telemetry setupStarts one persistent local Prometheus and Grafana stack for the whole experiment.
- Bottleneck analysisUses rpc_queue_depth_at_start_latest max and min to find bottlenecks and uneven worker load.
- Resource trackingTracks per-GPU utilization, memory consumption and memory headroom for each candidate.
- Experiment recordKeeps a Markdown progress table and a JSON memory block with runs, metrics and decisions.
- Failure handlingRejects candidates that OOM or crash and avoids repeating the same mistake.
- Final reportSummarizes the baseline, all tried topologies, the best topology and remaining headroom.
What you need
- A full AlpaSim run command specifying the starting topology and target configuration
- Access to a Slurm cluster
- The AlpaSim repository with src/tools/scripts/start-prometheus-grafana.sh
- Local Prometheus and Grafana for telemetry
Try asking
- Optimize the Slurm topology for my AlpaSim run using this full run command
- Start a baseline and up to three candidate topologies for my AlpaSim batch
- Summarize my topology experiment record and recommend the best topology
Good to know
- Runs at most three candidate experiments in parallel.
- Comparisons need the full-run seconds_per_rollout to stabilize, normally 30 to 45 minutes.
- Needs a full run command from the user before it can start.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/optimize-slurm-topology/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
agents/openai.yaml742 B -
references/experiment-record.md5 KB -
references/metrics.md20 KB -
references/topology-knobs.md9 KB
Alternatives to optimize-slurm-topology
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
optimize-slurm-topology: common questions
What does this skill need to start?
The user must provide a full run command that sets the base topology and target configuration. If none is given, the skill asks for one.
Which metric is the main optimization target?
The full-run seconds_per_rollout is the primary target once it has stabilized. The 5m value is used only as an early diagnostic.
Where are experiment results stored?
They go in a repo-local experiment record, by default at docs/experiments/topology-opt-<driver>-<cluster>-<YYYYMMDD>.md.
How do I install optimize-slurm-topology?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is optimize-slurm-topology free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is optimize-slurm-topology safe to use?
It scores 83 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to optimize-slurm-topology?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
