LoRA adapter fine-tuned from Qwen/Qwen3-14B
to generate DeepWiki-style architectural wiki pages with verifiable path:line
source citations, Mermaid diagrams, and structured sections.
Given a line-numbered code context and a query, it writes a wiki page whose factual
claims carry strict path/file.ext:line or path:start-end citations that resolve
against the real repository. Input format is identical to
semanticwiki-coder-14b-v3
(see that card for the exact template).
| Parameter | Value |
|---|---|
| Base model | Qwen/Qwen3-14B |
| Method | LoRA SFT (r=64, alpha=128, dropout 0.05, all linear projections) |
| Data | GhostScientist/semanticwiki-data-v3 - 313 pages from 97 real GitHub repos, every citation deterministically verified |
| Loss | completion-only (prompt-completion format) |
| Epochs / LR / effective batch | 2 / 1e-4 cosine / 16 |
| Max sequence length | 24576 |
| Final loss / token accuracy | 0.4891 / 0.829 |
| Arm | Format | Citation validity | Fidelity (judge 1-5) | Citations/page |
|---|---|---|---|---|
| this model | 0.779 | 0.385 | 3.50 | 4.2 |
| Qwen3-14B (base) | 0.808 | 0.501 | 3.77 | 5.3 |
Negative result, reported as observed: fine-tuning regressed every axis for the Qwen3-14B family. The base model was already the stronger instruction follower, and 313 examples x 2 epochs of LoRA overfit it to the training distribution. For the Qwen2.5-Coder family the same recipe improved every axis - see semanticwiki-coder-14b-v3, which is the better SemanticWiki model overall. Full protocol and per-page results: GhostScientist/semanticwiki-eval-v3.
This adapter is published primarily as the SFT-negative-result arm of the ablation. If you need a working Qwen3-based wiki generator today, use the base model with the strict-citation system prompt instead.
TRL 1.14.1 - Transformers 5.18.0 - PyTorch 2.14.1 - PEFT 0.21.2 - Datasets 5.1.0
@software{vonwerra2020trl,
title = {{TRL: Transformers Reinforcement Learning}},
author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallou{\'e}dec, Quentin},
license = {Apache-2.0},
url = {https://github.com/huggingface/trl},
year = {2020}
}
adapter_model.safetensors 1.0 GBfinal/adapter_model.safetensors 1.0 GBfinal/training_args.bin 5.8 kBtraining_args.bin 5.8 kBQwen/Qwen3-14B