Views
No views yet
Qwen/Qwen2.5-3B-Instruct.
Same training objective as the 1.5B adapter: improve structured triage quality across diagnosis, policy, blast radius, and PR-quality heads using oracle trajectories from the OpenEnv incident-triage environment.Note on the repo name: This model ID usesgrpo-trainfor historical alignment with the hackathon workflow; the published weights are the SFT stage unless you separately run GRPO refinement (see project README).
Qwen/Qwen2.5-3B-Instruct1from transformers import AutoTokenizer, AutoModelForCausalLM
2from peft import PeftModel
3import torch
4
5base_id = "Qwen/Qwen2.5-3B-Instruct"
6adapter_id = "AbhishekMallick/incident-triage-grpo-train-Qwen3B"
7
8tokenizer = AutoTokenizer.from_pretrained(base_id, trust_remote_code=True)
9base_model = AutoModelForCausalLM.from_pretrained(
10 base_id,
11 torch_dtype=torch.bfloat16,
12 device_map="auto",
13 trust_remote_code=True,
14)
15model = PeftModel.from_pretrained(base_model, adapter_id)
16
17prompt = "Incident: API latency spike after region failover. Provide diagnosis, policy, blast radius, and PR plan."
18inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
19with torch.no_grad():
20 out = model.generate(**inputs, max_new_tokens=256, temperature=0.2)
21print(tokenizer.decode(out[0], skip_special_tokens=True))Qwen/Qwen2.5-3B-Instructscripts/train_sft.py with oracle JSON-action trajectories, TRL SFTTrainer, LoRA (defaults such as LORA_R=16, NUM_EPOCHS=3, eight seeds over the train scenario split — see the incident-triage-env repo)GRPOTrainer refinement on top of this adapter is supported by the same codebase as the 1.5B pipeline. This Hub upload is the SFT checkpoint unless you document a separate GRPO-tagged revision.hard_multi_signal_cascade, expert_stealth_regression, and hard_pr_quality_breach, compared against baseline-hf, reporting composite and per-head scores.1# From the incident-triage-env repo, with this adapter + base wired in eval config:
2python scripts/eval_before_after.py --compare baseline finetunedQwen/Qwen2.5-3B-Instructtext-generationpeftapache-2.0enincident-triage, sft, lora, peft, openenvcomposite_score, optionally per-head metrics (diagnosis, policy, blast, pr)