feat: repo-arch LoRA adapter — 125 training examples, 8 layers, val_loss 0.122 - #49
feat: repo-arch LoRA adapter — 125 training examples, 8 layers, val_loss 0.122#49bearmug wants to merge 2 commits into
Conversation
### Summary Trained a LoRA adapter on the full repository history using repo-arch CLI. ### Key Results - 47 commits mined, 18 insight cards generated, 8 curated for training - 61 training examples across: QA, review-warning, risk-classification, negative - LoRA adapter: Qwen/Qwen2.5-Coder-1.5B-Instruct, 1.3M params, 200 iters - Eval: Keyword 93.8%, Embedding 75.0% hit rate - Val loss: 6.439 -> 0.192 (97% reduction) ### Artifacts - repo-arch.config.json - reproducible pipeline config - .repo-arch/review-state.json - curated accepted cards - .repo-arch/training-data/ - train/valid splits (61 examples) - .repo-arch/REPORT.md - full training report with model inference tests - .repo-arch/HOOKS-GUIDE.md - pi agent integration hooks guide ### How to reproduce 1. Install: pip install mlx-lm 2. Train: repo-arch train cycle 3. Infer: mlx_lm.generate --adapter-path .repo-arch/adapters/repo-arch-97d42df
…ayer LoRA, val loss 0.122 - Enriched training data: 125 examples (65 QA + 60 negatives) - 7 unique negative response templates (was: 1) - File-path-specific QA responses with commit subjects - Increased LoRA: 8 layers (2.6M params), 300 iterations - Val loss: 0.192 -> 0.122 (best yet, vs PR#48 0.125) - Model now produces context-rich responses with commit history and actionable advice
Integration Test Results✅ Passed — hit real TradingView API endpoints. https://github.com/fiale-plus/tradingview-mcp-server/actions/runs/25890944455 |
Autoresearch Deep Dive ResultsRan a full behavioral eval cycle on this adapter — here's what came out: Behavioral benchmark (custom, 17 test cases)Instead of the built-in keyword eval, I built a behavioral benchmark testing real file-specific queries across 6 dimensions. The keyword eval said 93.8% — the behavioral eval told a different story.
Key findings
Remaining gapOne real failure remains: Best checkpoint
Upstream statusAll fixes from this cycle have been upstreamed to repo-arch PR #25 (card ID display, cache auto-invalidation, card text enrichment, negative diversity, CLI help improvements, 5 new regression tests). |
What This Is
A LoRA adapter trained on this repo's git history via
repo-arch. Feed it a file path — it surfaces repeated fixes, co-change clusters, test gaps, and churn hotspots from your actual commit history.Training & Dataset
What's in the Box
Reproduction