Views
No views yet
| Algorithm | TRL GRPO |
| Base | Qwen/Qwen2.5-1.5B-Instruct |
| LoRA target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| LoRA rank / α | 32 / 32 |
| Group size | 2 completions per prompt |
| Optimization steps | 600 (curriculum: 200 EASY → 200 MEDIUM → 200 HARD) |
| Learning rate | 2e-5 (4× the TRL default; previous flat-LR run plateaued) |
| Sampling temperature | 0.8 |
| Max prompt length | 1024 tokens |
| Max completion length | 96 tokens |
| Hardware | NVIDIA L4 (24 GB) via HF Jobs |
| Reward streams | team (0.6) + oversight (0.4) |
| Final KL to base | 0.14 (controlled but real movement) |
resolution, mttr, oversight, cascade — see the
ChaosOps source.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)1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4base = AutoModelForCausalLM.from_pretrained(
5 "Qwen/Qwen2.5-1.5B-Instruct", device_map="auto"
6)
7tok = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
8model = PeftModel.from_pretrained(base, "helloAK96/chaosops-grpo-lora")CHAOSOPS_ADAPTER_PATH=helloAK96/chaosops-grpo-lora —
the Space will lazily snapshot-download the adapter on first request
and route the trained policy through it.| Tier | Random | Heuristic | Trained (this LoRA) | Oracle |
|---|---|---|---|---|
| EASY | −315.4 / 55% | +94.4 / 100% | −220.8 / 10% | +134.0/100% |
| MEDIUM | −641.3 / 40% | +108.7 /100% | −295.9 / 40% | +150.7/100% |
| HARD | −1356.6 / 10% | −425.3 / 50% | −834.2 / 0% | +170.0/100% |
learning_curve.png shows HARD-tier
mean reward (−4.43) ending up better than EASY-tier mean (−6.11) — the
curriculum let the model absorb easier-tier dynamics before being
pushed into HARD.notebooks/colab_train.ipynbchaosops/rewards/reward_fn.py@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}
}