helloAK96/chaosops-grpo-lora-p3a
ChaosOps AI — GRPO LoRA Adapter
LoRA adapter for Qwen 2.5-1.5B-Instruct, fine-tuned with GRPO (Group Relative Policy Optimization, via TRL) on the ChaosOps AI multi-agent incident-response environment.
What ChaosOps trains
Four LLM agents — SRE · Developer · Manager · Oversight — handle production-incident scenarios (DB deadlock, memory leak, bad config push, autoscaler cost-cut by a rogue AI, misrouted traffic by a rogue load-balancer, cascade, DNS outage, disk full, rogue deploy bot) under partial observability. The Oversight agent is rewarded for catching when another AI in the fleet caused the incident before the team applies a fix.
Training recipe
The reward is composed from four named OpenEnv-style rubrics: resolution, mttr, oversight, cascade — see the ChaosOps source.
Files
adapter_model.safetensors+adapter_config.json— the LoRA itselftraining_metrics.json— per-log reward + loss + KL streamlearning_curve.png— reward curve (axis-labelled, 150 dpi)
How to use
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-1.5B-Instruct", device_map="auto"
)
tok = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
model = PeftModel.from_pretrained(base, "helloAK96/chaosops-grpo-lora-p3a")Or activate it directly inside the live ChaosOps Space by setting the Space secret CHAOSOPS_ADAPTER_PATH=helloAK96/chaosops-grpo-lora-p3a — the Space will lazily snapshot-download the adapter on first request and route the trained policy through it.
Results
Evaluation across 5 seeds × 9 failure types × 3 tiers (540 episodes per policy):
Mean cumulative episode reward / resolution rate. Trained:
- closes the heuristic gap to ≤8 points on HARD, ≤45 on EASY;
- is the only sub-Oracle policy that flags rogue fleet agents on MEDIUM (100% catch rate vs heuristic's 0%);
- MTTR = 3.0 across all tiers — matches the Oracle on the few episodes the heuristic doesn't already 1-shot;
- +94.6 / +624.4 / +923.2 point gain over random across EASY / MEDIUM / HARD.
The training-time reward curve in learning_curve.png shows positive mean reward in all three tiers, with HARD-tier mean (+14.0) ending better than EASY-tier mean (+6.9) — the curriculum let the model absorb easier-tier dynamics, then stack competencies on harder ones.
Trade-off: 13–35% false-positive rogue-flag rate on tiers without a real rogue. The 2× rogue-rubric weight made the model eager to flag.
Links
- 🚀 Live demo (HF Space): https://huggingface.co/spaces/helloAK96/chaosops
- 📄 Source repo: https://github.com/vatsalllll/chaos_ops
- 📒 Training notebook:
notebooks/colab_train.ipynb - 🛠️ Reward rubric system: `chaosops/rewards/reward_fn.py`
Citation
@misc{chaosops_ai_2026,
title = {ChaosOps AI: a multi-agent incident-response gym with rogue-agent detection},
author = {ChaosOps AI Team},
year = {2026},
url = {https://huggingface.co/spaces/helloAK96/chaosops}
}