Skip to main content
Ctrl+K
CloudAI - Home CloudAI - Home

CloudAI

CloudAI - Home CloudAI - Home

CloudAI

Table of Contents

  • Overview
  • Get started
    • Install CloudAI
    • Run your first experiment
    • Understand experiment configuration
  • Run experiments
    • Set up your execution environment
    • Run on Slurm
    • Run on Kubernetes
    • Compose a scenario
    • Prepare and clean up with hooks
    • Prepare model weights
    • Prepare workload prerequisites
    • Inspect commands before execution
    • Read results and generate reports
  • Optimize configurations
    • Run a configuration search
    • Choose an objective and search space
    • Plan compute usage
    • Compare trade-offs and reuse configurations
  • Automate experiments
    • Run experiments with Python
    • Handle results and failures
    • Publish results and integrate with CI
  • Workloads
    • Training
      • MegatronBridge
      • Nemo Run
      • DDLB
    • Inference
      • vLLM
      • SGLang
      • AI Dynamo
      • SRT-Slurm
    • Networking and communication
      • NCCL
      • UCC
      • OSU
      • DeepEP Benchmark
      • NIXL Bench
      • NIXL EP
      • NIXL KVBench
      • NIXL CTPerf
    • Storage
      • fio
    • Simulation and prediction
      • AIConfigurator
      • DynamoMocker
      • Chakra Replay
    • General-purpose execution
      • Bash Command
      • Slurm Container
      • Sleep
    • Legacy integrations
      • NeMo Launcher (deprecated)
      • JaxToolbox workloads (DEPRECATED)
  • Extend CloudAI
    • Architecture and extension points
    • Add a workload
    • Add a reporter
    • Add an optimization agent
    • Add an execution system or runner
    • Develop and contribute
  • Reference
    • CLI reference
    • Workload and system support
    • Systems
      • NCCL on RunAI
    • System configuration example
    • Shared system settings
    • Test definitions
    • Scenario configuration
    • Agent and search settings
    • Reports
      • Training Report Schema
    • Python API
  • Troubleshooting
  • Optimize configurations
  • Run a configuration search

Run a configuration search#

Compare two NCCL algorithm settings and inspect the configuration with the best observed reward.

Prepare a baseline#

Run the networking example first. This search uses the same two-node Slurm setup and public image. Keep the system, message sizes, and other workload settings fixed.

Run two candidates#

uv run cloudai run --system-config slurm.toml \
    --test-scenario conf/experimental/quickstart/nccl-search.toml
name = "quickstart-nccl-search"

[[Tests]]
id = "all-reduce"
name = "all-reduce"
description = "Two-node NCCL all-reduce benchmark"
test_template_name = "NcclTest"
num_nodes = 2
time_limit = "00:05:00"
agent = "grid_search"
agent_metrics = ["default"]
agent_reward_function = "inverse"

  [Tests.cmd_args]
  docker_image_url = "nvcr.io#nvidia/pytorch:25.12-py3"
  subtest_name = "all_reduce_perf_mpi"
  ngpus = 1
  minbytes = "8M"
  maxbytes = "128M"
  iters = 20
  warmup_iters = 5
  stepfactor = 2

  [Tests.extra_env_vars]
  NCCL_ALGO = ["Ring", "Tree"]

NCCL_ALGO defines two choices. Built-in grid_search evaluates both; it does not adapt its choices from measurements. The default metric is mean in-place latency in microseconds across the reported message sizes; inverse converts a lower-is-better metric into a higher-is-better reward. Check Choose an objective and search space before adapting the objective.

Inspect the selected result#

Read tests[].dse in experiment.json for search details and the selected step; tests[].metrics contains the successful step with the highest valid reward. Inspect the DSE report and selected test configuration alongside the workload logs. See Read results and generate reports for a real two-candidate example and its measurement context.

Expand the search#

Add dimensions only after estimating their combined cost with Plan compute usage. Keep the baseline and search in separate scenarios. To choose trials using prior feedback, integrate a custom agent.

previous

Optimize configurations

next

Choose an objective and search space

On this page
  • Prepare a baseline
  • Run two candidates
  • Inspect the selected result
  • Expand the search
NVIDIA NVIDIA
Privacy Policy | Your Privacy Choices | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2026, NVIDIA CORPORATION & AFFILIATES.