Views
No views yet
unsloth/Qwen2.5-Coder-7B-Instruct, trained for structured code-review findings.https://github.com/Badtheorylabs/btl-2-coderunsloth/Qwen2.5-Coder-7B-Instruct4,000 API-generated review traces + 1,000 template traces4,500 train examples + 500 eval examples240961Return only a JSON array. No markdown and no wrapper object.
2Each finding must include: severity, file, line, title, evidence, recommendation, confidence.
3severity must be exactly one of: critical, high, medium, low.
4Never put a category in severity.
5confidence must be a number from 0 to 1, never a string label.
6Every finding must include concrete evidence and a non-empty recommendation.1[
2 {
3 "severity": "critical",
4 "file": "src/users.ts",
5 "line": 42,
6 "title": "SQL injection through string-built query",
7 "evidence": "The user id is concatenated directly into the SQL string.",
8 "recommendation": "Use a parameterized query.",
9 "confidence": 0.96
10 }
11]1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4base = "unsloth/Qwen2.5-Coder-7B-Instruct"
5adapter = "badtheorylabs/btl-2-coder"
6
7tokenizer = AutoTokenizer.from_pretrained(adapter)
8model = AutoModelForCausalLM.from_pretrained(base, device_map="auto")
9model = PeftModel.from_pretrained(model, adapter)| Eval | JSON parse | Schema valid | Numeric confidence | Category hit | File hit | Precision | Recall | Weighted severity recall |
|---|---|---|---|---|---|---|---|---|
| Heldout 100 strict | 1.000 | 0.952 | 1.000 | 0.783 | 0.840 | n/a | n/a | n/a |
| Heldout 30 strict v2 | 1.000 | 0.975 | 1.000 | 0.867 | 0.867 | n/a | n/a | n/a |
| Seeded 15 strict | 1.000 | 1.000 | 1.000 | 0.933 | 1.000 | 0.933 | 0.933 | 0.956 |
n/a because the heldout set is broader and does not use one normalized ground-truth finding per example.adapter_model.safetensorsadapter_config.jsontokenizer.jsontokenizer_config.jsonchat_template.jinjatraining_args.binSHA256SUMS