Base Identity and Loading
- Base model: Qwen/Qwen3-8B, recorded revision
b968826d9c46dd6066d109eabc6255188de91218, base config SHA-256 f7c4eadfbbf522470667b797a3c89be2524832d2d599797248dc304fff447c30.
- Adapter weight (
adapter_model.safetensors) SHA-256: 56fd00ea324bf191dc5f32287e071de028fbee7342cf192358f39beb043cda07 (content fingerprint with filename framing: sha256:90776f51536a477b36d35fcfa3c0ba0a4962058025dad3e48016b22a5184914d).
- Hub config change:
adapter_config.json replaces the local filesystem base path with "Qwen/Qwen3-8B" and recorded revision b968826d9c46dd6066d109eabc6255188de91218; adapter tensor bytes are unchanged.
from transformers import AutoModelForCausalLM, AutoTokenizerfrom peft import PeftModel base_id = "Qwen/Qwen3-8B"adapter_id = "littleborek/cse481-qwen3-8b-production-v3-lora" tokenizer = AutoTokenizer.from_pretrained(adapter_id)base_model = AutoModelForCausalLM.from_pretrained(base_id, torch_dtype="auto", device_map="auto")model = PeftModel.from_pretrained(base_model, adapter_id)
Training Setup
- Optimizer steps:
68/68 (~3 epochs over 90 examples: 45 train_answer + 45 train_router)
- Validation split:
42 valid_answer examples
- Hardware & placement: NVIDIA GeForce RTX 5060 Ti (16 GB VRAM), all model parameters and optimizer tensors on CUDA (peak allocated
11.72 GB, reserved 13.19 GB)
- Precision & LoRA: QLoRA NF4 double quantization, BF16 compute; LoRA
r=16, lora_alpha=32, lora_dropout=0.05, all linear projections (q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj)
- Schedule:
max_length=4736, batch_size=1, gradient_accumulation=4, learning_rate=2e-4, linear decay with 5 warmup steps, seed=481, completion-only loss (prompt masked)
- Runtime & loss:
2038.08s; validation_loss=0.0495, validation_perplexity=1.0507 (down from 0.4361 / 1.5467 at 23 steps)
Held-Out & Browser Acceptance Evaluation
Evaluated on production_corpus_v3 held-out test split (first 1 per family: sector, weekday, reversal, macro, financial; 5 routes + 5 answers = 10 cases, max_new_tokens=768, clean greedy decoding):
Table with columns: Metric, 23-step (512 cap), 68-step (768 cap)| Metric | 23-step (512 cap) | 68-step (768 cap) |
|---|
| Output-cap hits | 5/10 | 0/10 |
| Router JSON & schema valid | 5/5 | 5/5 |
| Router tool names exact | — | 5/5 |
| Router exact normalized route | 2/5 | 4/5 |
| Answer JSON & schema valid | 0/5 | 5/5 |
| Answer outcome status correct | — | 5/5 |
| Valid / exact citations | 0/5 / 0/5 | 5/5 / 5/5 |
| Grounded-number check passed | 0/5 | 5/5 |
| Advice pattern triggered | — | 0/5 |
End-to-end Chrome UI verification (http://127.0.0.1:8765, as_of=2026-09-10) passed across all 5 scenario families (test_requested_retail sector catch-up, THYAO weekdays, ASELS reversal cohorts, TUPRS financial disclosures, and USD/TRY & EREGL safety/refusal) with deterministic #audit-replay: passed.
Limitations
- Held-out
test-sector-000-router selected all required tool names (5/5) while differing on lookback=60 vs start_date/lookback=20 (4/5 exact normalized route).
- All outputs must be routed through deterministic local tools and verified by
EvidenceGroundingGuardrail and strict temporal cutoffs (as_of <= 2026-09-10).
- Third-party market data, provider OHLC histories, and training corpora are excluded from this repository.