Spaces:
Running
Running
File size: 9,896 Bytes
4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 7f988a5 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 7f988a5 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 7f988a5 f7185ba 4d76b14 f7185ba 4d76b14 409fe68 4d76b14 409fe68 4d76b14 409fe68 4d76b14 409fe68 4d76b14 409fe68 4d76b14 409fe68 4d76b14 409fe68 7f988a5 409fe68 4d76b14 409fe68 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 7f988a5 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 7f988a5 f7185ba 4d76b14 f7185ba 4d76b14 f7185ba 7f988a5 f7185ba 4d76b14 409fe68 4d76b14 409fe68 7f988a5 409fe68 f7185ba 4d76b14 f7185ba 5655786 4d76b14 5655786 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 | name: libratio-fleet
version: "3.0.0"
description: >
A multi-agent reinforcement learning environment simulating GPU fleet
management for large-scale AI training. Multiple agents cooperate and
compete to configure mixed-precision training across a shared GPU cluster,
while an oversight agent monitors all runs for instability — directly
modeling the infrastructure challenges Meta engineers face when training
LLaMA at scale.
Theme: Multi-Agent Interactions + Fleet AI (Scalable Oversight)
author: "Aaryan"
tags: ["multi-agent", "fleet-ai", "gpu-cluster", "mixed-precision", "oversight", "reinforcement-learning"]
tasks:
- id: fleet_precision
description: >
Multiple training agents assign floating-point precision formats to their
models' layers, sharing a common GPU memory pool. Each agent configures
one model per step, seeing what other agents have already allocated.
Agents must balance their model's performance with fleet-wide resource
fairness under a shared memory budget.
difficulty: medium
max_steps: 5
observation_space:
type: dict
properties:
task_id:
type: string
enum: ["fleet_precision"]
scenario_id:
type: string
cluster:
type: dict
properties:
total_gpus: {type: integer}
total_memory_gb: {type: number}
memory_used_gb: {type: number}
memory_remaining_gb: {type: number}
your_model:
type: dict
properties:
model_id: {type: string}
name: {type: string}
total_params: {type: integer}
layer_distribution: {type: dict}
priority: {type: integer}
priority_reason: {type: string}
other_agents:
type: dict
description: "What other agents have configured so far"
agents_remaining:
type: integer
available_precisions:
type: array
items: {type: string, enum: ["FP32", "BF16", "FP16", "FP8"]}
action_space:
type: dict
properties:
precision_strategy:
type: dict
description: "Mapping of layer_type to precision format"
example:
embedding: "FP32"
attention: "BF16"
ffn: "FP8"
layernorm: "BF16"
output: "FP32"
reasoning:
type: string
reward:
type: number
minimum: 0.01
maximum: 0.99
description: >
Per-agent score based on layer precision quality (using empirical
physics model), memory fairness vs fair share, and fleet-wide
stability. Fleet bonus/penalty applied on final step.
- id: fleet_oversight
description: >
An oversight agent monitors loss trajectories from ALL simultaneous
training runs in the GPU cluster. Must identify WHICH model is crashing,
WHEN the crash started, and WHY (root cause from precision config).
This is the Fleet AI task — training agents to oversee other AI agents.
difficulty: hard
max_steps: 5
observation_space:
type: dict
properties:
task_id:
type: string
enum: ["fleet_oversight"]
scenario_id:
type: string
num_models:
type: integer
model_trajectories:
type: dict
description: "Per-model loss windows and precision configs"
total_training_steps:
type: integer
steps_revealed_so_far:
type: integer
window_index:
type: integer
windows_remaining:
type: integer
action_space:
type: dict
properties:
action_type:
type: string
enum: ["continue_monitoring", "flag_instability"]
analysis:
type: string
flagged_model:
type: ["string", "null"]
description: "Which model_id is crashing"
flagged_step:
type: ["integer", "null"]
description: "Training step where instability started"
root_cause:
type: ["string", "null"]
description: "Suspected precision failure cause"
reward:
type: number
minimum: 0.01
maximum: 0.99
description: >
Correct model identification (+0.25), correct step timing (+0.20),
correct root cause (+0.25), base detection (+0.30). False alarm = 0.10.
Missed crash = 0.10.
- id: fleet_resource
description: >
Agent allocates GPUs from a shared cluster across multiple competing
training jobs, considering each model's parameter count, priority level,
and precision strategy. Must balance cost efficiency, GPU utilization,
and priority alignment over multiple iterations.
difficulty: hard
max_steps: 5
observation_space:
type: dict
properties:
task_id:
type: string
enum: ["fleet_resource"]
scenario_id:
type: string
cluster:
type: dict
properties:
total_gpus: {type: integer}
gpu_memory_gb: {type: number}
total_memory_gb: {type: number}
cost_per_gpu_hour_usd: {type: number}
models:
type: array
items:
type: dict
properties:
model_id: {type: string}
name: {type: string}
total_params: {type: integer}
priority: {type: integer}
priority_reason: {type: string}
iterations_remaining:
type: integer
best_score_so_far:
type: number
previous_result:
type: ["dict", "null"]
previous_feedback:
type: ["string", "null"]
action_space:
type: dict
properties:
allocations:
type: dict
description: "Per-model GPU allocation and precision strategy"
example:
model_a:
gpus: 4
precision_strategy: {"embedding": "FP32", "attention": "BF16", "ffn": "FP8", "layernorm": "BF16", "output": "FP32"}
model_b:
gpus: 4
precision_strategy: {"embedding": "FP32", "attention": "BF16", "ffn": "FP8", "layernorm": "BF16", "output": "FP32"}
reasoning:
type: string
reward:
type: number
minimum: 0.01
maximum: 0.99
description: >
Scored on cost efficiency (30%), GPU utilization (25%), priority
alignment (25%), base validity (10%), and stability bonus (10%).
Invalid allocations (GPU overflow, memory overflow) score 0.01.
- id: fleet_recovery
description: >
A model in the GPU cluster has crashed mid-training. Agent must diagnose
the root cause (phase 1), propose a new safe precision strategy (phase 2),
and verify the recovery plan (phase 3). Tests incident response and
causal reasoning under pressure.
difficulty: medium-hard
max_steps: 3
observation_space:
type: dict
properties:
task_id:
type: string
enum: ["fleet_recovery"]
scenario_id:
type: string
phase:
type: string
enum: ["diagnose", "reallocate", "verify"]
cluster:
type: dict
models:
type: array
items:
type: dict
crashed_model:
type: dict
properties:
model_id: {type: string}
crash_step: {type: integer}
loss_around_crash: {type: array}
precision_config: {type: dict}
iterations_remaining:
type: integer
previous_feedback:
type: ["string", "null"]
action_space:
type: dict
description: "Phase-dependent action — see fleet_recovery task description"
reward:
type: number
minimum: 0.01
maximum: 0.99
description: >
Phase 1 (diagnose): correct model ID (+0.30), root cause keywords (+0.50).
Phase 2 (reallocate): stable config (+0.40), changes from crashed config (+0.20).
Phase 3 (verify): reasoning quality (+0.20), monitoring plan (+0.10).
endpoints:
reset:
method: POST
path: /fleet/reset
description: "Start a new fleet episode. Body: {task_id: string}"
step:
method: POST
path: /fleet/step
description: "Submit an action. Body: {action: dict}"
state:
method: POST
path: /fleet/state
description: "Get current fleet state"
tasks:
method: GET
path: /fleet/tasks
description: "List all fleet tasks"
graders:
- id: fleet_precision_grader
type: deterministic
implementation: environment/fleet_env.py
description: "Physics-based scoring per agent + fleet-wide memory/stability evaluation"
deterministic: true
score_range: [0.01, 0.99]
- id: fleet_oversight_grader
type: deterministic
implementation: environment/fleet_env.py
description: "Multi-model crash detection scoring — model ID, timing, and root cause"
deterministic: true
score_range: [0.01, 0.99]
- id: fleet_resource_grader
type: deterministic
implementation: environment/fleet_env.py
description: "Cost efficiency + utilization + priority alignment scoring"
deterministic: true
score_range: [0.01, 0.99]
- id: fleet_recovery_grader
type: deterministic
implementation: environment/fleet_env.py
description: "3-phase recovery scoring — diagnosis, reallocation, verification"
deterministic: true
score_range: [0.01, 0.99]
baseline:
script: fleet_inference.py
description: "Multi-agent LLM inference using Groq API with per-agent conversation history"
expected_scores:
fleet_precision: 0.86
fleet_oversight: 0.83
fleet_resource: 0.35
fleet_recovery: 0.86
|