Views
No views yet
code-trainer-offsec-dataset
as the Phase 4B follow-up to the Phase 4A aggressive sweep winner.Status: kept on the Hub for transparency, but not the canonical Phase 5 conversion target. The 1-epoch / full-data siblingqwen14b-code-trainer-v6-aggressiveoutperformed this adapter on the full validation split (eval_loss 0.4724 vs 0.5126) — see the comparison below.
cmndcntrlcyber/code-trainer-offsec-dataset
(revision main, text-only chat format).--train-limit 8000 slice of 26,126),
500 val rows (--val-limit 500 slice of 3,265).| Knob | Value |
|---|---|
| Base model | Qwen/Qwen2.5-Coder-14B-Instruct |
| Adapter | LoRA (PEFT), r = 64, alpha = 128, dropout = 0.05 |
| Learning rate | 3e-4 (cosine decay, warmup ratio 0.03) |
| Batch size × grad accum | 4 × 4 (effective batch = 16) |
| Epochs | 3 |
| Sequence length | 2,048 |
| Precision | bfloat16 + gradient checkpointing |
| Hardware | HF Skills a100-large |
| Frameworks | transformers, peft, trl (SFTTrainer) |
| Job runtime | 4 h 53 m (COMPLETED) |
| HF Job | 69f8188e9d85bec4d76f1c5e |
| Metric | Phase 4A aggressive | Phase 4B aggressive-full3 (this) |
|---|---|---|
| eval_loss (full val) | 0.4724 | 0.5126 |
| eval_loss (500-row slice during training) | — | 0.5102 |
| Total samples seen | 26,126 | 24,000 |
| Epochs | 1 | 3 |
docs/sweep/phase4b-summary.md
for the apples-to-apples writeup.qwen14b-code-trainer-v6-aggressive on the same val split —
use that adapter unless you need to reproduce this experiment.1import torch
2from peft import PeftModel
3from transformers import AutoModelForCausalLM, AutoTokenizer
4
5base_id = "Qwen/Qwen2.5-Coder-14B-Instruct"
6adapter_id = "cmndcntrlcyber/qwen14b-code-trainer-v6-aggressive-full3"
7
8tokenizer = AutoTokenizer.from_pretrained(base_id)
9model = AutoModelForCausalLM.from_pretrained(
10 base_id, dtype=torch.bfloat16, device_map="auto",
11)
12model = PeftModel.from_pretrained(model, adapter_id)
13model.eval()1python -m src.phase4_qwen_finetuning.scripts.launch_full_training \
2 --config src/config/v6_config.yaml --best-config aggressive \
3 --train-limit 8000 --val-limit 500 --waita100-large (4 h 53 m).