Skip to content

Settings

A campaign's settings are dataclasses, recorded in the run's campaign.json. Environment variables configure the job scripts, the tests and debugging.

CampaignConfig

autonmi.campaign.CampaignConfig, the campaign's settings.

Field Default What it sets
run_dir required the run directory; it must not hold a run
populations 1 how many populations the agents are split into
population PopulationConfig() how each population runs (below)
runtime "local" "local" or "dragon"
mcp_servers 4 the application's MCP servers, passed to definition.services
toolservices 8 tool services, at most one per population
mcp_clients, mcp_per_client 8, 16 MCP clients per tool service (at least one per server), and calls in flight on each
service_timeout_s 120 how long the tool services may take to start and to stop
telemetry Telemetry() Flowgentic's OpenTelemetry export (below); None: none configured
timeout_s None the populations' time, all together; past it they are cancelled and the run fails
cancel_grace_s 60 how long cancelled populations get to end
store_managers, store_manager_gib 4, 2.0 under Dragon, RaDEX's managers per node, and each one's memory (at most 2 GiB)
store_timeout_s 10 under Dragon, the store's timeout (Dragon's DDict timeout): how long each of a manager's sends and receives may wait, and how long the store's start may take. Below the clients' own 30 s, which it does not change. None: no limit, Dragon's default (Run under Dragon)
simulation_gpus None the simulations' GPUs on each node: None, "all", a list, or a dict per node (Placement)

PopulationConfig

autonmi.population.PopulationConfig, how each population runs. The campaign sets share, host and gpus (from simulation_gpus) per population, and under Dragon backend and otel.

Field Default What it sets
workers 8 simulation workers: a thread pool locally, the native backend's pool workers under Dragon
executor None locally, "module:function" of workers that returns the simulations' executor, such as "autonmi.pools:spawn_pool"; None: a thread pool
reuse_event_loop False one event loop per worker thread; needs a RHAPSODY whose Concurrent backend takes it, else the population raises TypeError
gpus None this population's GPUs; give the campaign's simulation_gpus instead
gpu_slots 1 simulations at once on each GPU
max_live None agents live at once, suspended ones included; None: all
stagger_batch, stagger_interval_s 100, 0.5 agents started per batch, and seconds between batches
gc_threshold 100,000 the collector's first threshold
cap_tokens, cap_requests 235,000, 96 admission per model replica, across every population; cap_tokens=0 counts requests only
reply_reserve 64 tokens counted for each reply
stub_replicas 1 replicas of the application's stub
model None the model servers' autonmi.models.ModelSettings (Model servers); None: the stub
retries 2 runs again of a scripted agent's simulation whose worker died; scripted agents only
max_retries None lost simulations the population runs again, at most, over all its agents; past it a lost simulation fails its agent; None: no cap. Scripted agents only: a population of tool-calling agents warns and ignores it
rhapsody_telemetry True RHAPSODY's telemetry, checkpoint and MiniApp part for the population's engine
node_samplers None under Dragon, whether that telemetry samples the nodes; None: on one node yes, across nodes no
resource_poll_interval 1.0 seconds between RHAPSODY's samples of resources

Telemetry

autonmi.telemetry.Telemetry, Flowgentic's OpenTelemetry export.

Field Default What it sets
span_ratio 0.1 the share of agents whose spans are kept: 1.0 every span, 0 none
interval_s 10.0 seconds between metric exports
span_queue 65,536 the span processor's queue
exemplars False whether metrics keep exemplars

Telemetry.every_span() keeps every span, with metrics every second, for runs that compare spans with calls.

Environment variables

Variable Read by What it sets
AUTONMI_STACKS the example mini-app, populations under Dragon write every thread's stack every so many seconds (Run under Dragon)
AUTONMI_DRAGON_TEST, AUTONMI_DRAGON_GPU, AUTONMI_DRAGON_GPUS, AUTONMI_DRAGON_LAUNCH, AUTONMI_DRAGON_POPULATIONS, AUTONMI_DRAGON_NODE_GPUS, AUTONMI_DRAGON_AGENTS, AUTONMI_DRAGON_CUDA, AUTONMI_KILL_GRACE the Dragon tests; the conformance kit reads AUTONMI_DRAGON_TEST which Dragon tests run, and how (Run under Dragon)
AUTONMI_VENV, AUTONMI_OVERLAY, AUTONMI_RUNS, AUTONMI_MODEL, AUTONMI_CUDART the job scripts, from jobs/local.env the environment, more paths on PYTHONPATH, the run directories, the model's weights, the CUDA runtime for Dragon
AUTONMI_MODEL_NAME, AUTONMI_TOOL_PARSER, AUTONMI_REASONING, AUTONMI_REASONING_START, AUTONMI_REASONING_END, AUTONMI_TP, AUTONMI_VLLM_ARGS, AUTONMI_VLLM_RESTARTS the model job the model servers (Model servers)
AUTONMI_LIVE_STATE live/stack.sh the live dashboard's state directory
AUTONMI_REPO, AUTONMI_COMMIT the job scripts set by jobs/submit and jobs/env.sh: the checkout the jobs run from, and its commit, which each job prints

jobs/local.env holds the cluster's settings: copy jobs/local.env.example, which lists them (see Run under Dragon).