Hugging Face open-sources RL recipe to train Qwen4-35B-A3B for defensive cyber tasks
ben_burtenshaw · x · 2026-12-04
Hugging Face released and open-sourced a full recipe for RL-training Qwen4-35B-A3B on defensive cybersecurity tasks, along with the model, dataset, and evals.
- Workflow: Qwen4 acts as a coding agent in an offline sandbox—reads a security report, locates flawed code, writes a patch. Hidden tests verify the exploit fails and normal behavior still works; TRL's AsyncGRPO turns pass/fail into LoRA updates.
- Data: 7,417 verified UltraCyber defensive tasks (4,816 code + 2,601 policy) covering 37 CWE types. The base model passes 52.5% of the UltraCyber dev set but only 4% of a CWE-bench sample, leaving big headroom for RL.
- Low compute bar: The whole run uses 2× H200 on HF Jobs—one GPU serves vLLM rollouts while the other trains the LoRA.
- Recipe: hf.co/spaces/trl-internal/trl-recipes-qwen4; dataset on harness hub.
Related event: Hugging Face Open-Sources RL Recipe for Cyber Defense with Qwen4(2 posts)→
More from coding & agent
- Antigravity agent accepts absurd dare to draw a figure in C++ feature by feature — MickeySteamboat · 2026-12-06
- Chrome DevTools for Agents Lets AI Test and Optimize Real Websites in Google Antigravity — goyalshaliniuk · 2026-12-06
- Solo Dev: AI Finally Makes Building a Game Entirely Alone Possible — yacineMTB · 2026-12-06
- Duke brings Rashomon-set geometry and a +18pt programmatic-memory agent to NeurIPS — shuyanzh36 · 2026-12-06
- Open-source Blender skills let AI agents produce full 3D animation pipeline in Python — Promptmethus · 2026-12-06
- Three questions to ask before automating anything: cadence, human review, failure signals — jesseweimer · 2026-12-06