Instructions to use Songkai/kai-skill-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Songkai/kai-skill-lora with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -44,6 +44,40 @@ The held-out set was never used in training.
|
|
| 44 |
- slide: 26/26 (24/26 under the stricter production pre-write calibre)
|
| 45 |
- report: 20/26
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
## Known limitations
|
| 48 |
|
| 49 |
Accepted with the release decision (2026-11-01); no further fix round was run.
|
|
@@ -101,6 +135,32 @@ Apache-2.0, following the Qwen3 base model.
|
|
| 101 |
- slide:26/26(生产严格口径 24/26)
|
| 102 |
- report:20/26
|
| 103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
### 已知限制
|
| 105 |
|
| 106 |
以下问题随 2026-11-01 的发布决定一并接受,不再追加修复轮次。
|
|
|
|
| 44 |
- slide: 26/26 (24/26 under the stricter production pre-write calibre)
|
| 45 |
- report: 20/26
|
| 46 |
|
| 47 |
+
## Small model vs. large model (measured 2026-11-01)
|
| 48 |
+
|
| 49 |
+
Same 60-case held-out set, same validators, three configurations. The large
|
| 50 |
+
model is GLM-5.3 — the teacher that generated this model's training data
|
| 51 |
+
(BigModel coding endpoint, temperature 0.3, reasoning effort low).
|
| 52 |
+
|
| 53 |
+
| | This model (Qwen3-4B + LoRA) | GLM-5.3, bare prompts | GLM-5.3, full Skill run |
|
| 54 |
+
|---|---|---|---|
|
| 55 |
+
| Routing | 60/60 | 0/60 | 60/60 |
|
| 56 |
+
| IR first-pass | **46/52 (88.5%)** | 0/52 | 45/52 (86.5%) |
|
| 57 |
+
| IR after repair | — (one-shot) | — | 52/52 |
|
| 58 |
+
| Slide strict tier | 24/26 | — | 26/26 |
|
| 59 |
+
|
| 60 |
+
- **Bare prompts**: GLM-5.3 received exactly this model's evaluation inputs,
|
| 61 |
+
with no format specification. It answered the requests directly (final
|
| 62 |
+
HTML) and never entered the routing/IR contract: 0/60 and 0/52. The
|
| 63 |
+
contract is not emergent — it has to be supplied in the prompt or trained
|
| 64 |
+
into the model.
|
| 65 |
+
- **Full Skill run**: GLM-5.3 received the complete Skill contract in
|
| 66 |
+
context (routing rules, the IR format specification, the BRIEF template /
|
| 67 |
+
report example — its own training-data production prompts) and up to 2
|
| 68 |
+
rounds of validator-feedback repair. Its first-pass quality is on par
|
| 69 |
+
with the fine-tuned 4B (45 vs 46 of 52; per skill — slide 24/26 vs 26/26,
|
| 70 |
+
report 21/26 vs 20/26). It pulls ahead only through the repair loop: all
|
| 71 |
+
7 first-pass failures were fixed in a single repair round, reaching 52/52.
|
| 72 |
+
- **Cost**: the full GLM-5.3 run used a median of 15.7 s of API time and
|
| 73 |
+
~3.0k tokens per triggered case (157,153 tokens for the whole set). This
|
| 74 |
+
model generates ~1.5k output tokens per triggered case locally (≈29
|
| 75 |
+
routing + ≈1.5k IR; estimated by tokenizing its trained output
|
| 76 |
+
distribution with this model's tokenizer), roughly 30–60 s per case on
|
| 77 |
+
the evaluation RTX 4090 (4-bit, single-stream, estimated) — not faster
|
| 78 |
+
than the API, but with no per-call cost, no quota and no network
|
| 79 |
+
dependency.
|
| 80 |
+
|
| 81 |
## Known limitations
|
| 82 |
|
| 83 |
Accepted with the release decision (2026-11-01); no further fix round was run.
|
|
|
|
| 135 |
- slide:26/26(生产严格口径 24/26)
|
| 136 |
- report:20/26
|
| 137 |
|
| 138 |
+
### 与大模型的对比(2026-11-01 实测)
|
| 139 |
+
|
| 140 |
+
同一 60 例保密集、同一校验器,三种配置。大模型为 GLM-5.3(即生成本模型
|
| 141 |
+
训练数据的教师;BigModel coding 端点,temperature 0.3,reasoning effort low)。
|
| 142 |
+
|
| 143 |
+
| | 本模型(Qwen3-4B + LoRA) | GLM-5.3 裸提示 | GLM-5.3 完整跑 |
|
| 144 |
+
|---|---|---|---|
|
| 145 |
+
| 路由 | 60/60 | 0/60 | 60/60 |
|
| 146 |
+
| IR 一次通过 | **46/52(88.5%)** | 0/52 | 45/52(86.5%) |
|
| 147 |
+
| 返修后通过 | —(一次直出) | — | 52/52 |
|
| 148 |
+
| slide 严格口径 | 24/26 | — | 26/26 |
|
| 149 |
+
|
| 150 |
+
- **裸提示**:GLM-5.3 拿到与本模型评测完全相同的输入、不给任何格式说明。
|
| 151 |
+
它把请求当普通需求直接作答(产最终 HTML),根本没进入路由/IR 契约:
|
| 152 |
+
0/60、0/52。契约不会凭空出现——要么写进提示,要么训进模型。
|
| 153 |
+
- **完整跑**:GLM-5.3 在上下文中拿到全套 Skill 契约(路由规则、IR 格式
|
| 154 |
+
规范、BRIEF 模板/报告示例,即其产训练数据时的生产提示词),并可按校验器
|
| 155 |
+
报错返修最多 2 轮。其一次通过质量与微调后的 4B 基本打平(45 对 46;
|
| 156 |
+
分技能:slide 24/26 对 26/26,report 21/26 对 20/26)。它只靠返修环节
|
| 157 |
+
胜出:首轮失败的 7 例各返修 1 轮即全部修好,达到 52/52。
|
| 158 |
+
- **成本**:GLM-5.3 完整跑每触发例中位 15.7 秒 API 时间、约 3.0k tokens
|
| 159 |
+
(全集 157,153 tokens)。本模型每触发例本地生成约 1.5k 输出 tokens
|
| 160 |
+
(路由 ≈29 + IR ≈1.5k;以本模型 tokenizer 对其训练输出分布估算),
|
| 161 |
+
在评测机 RTX 4090(4-bit、单流)约 30–60 秒/例(估算)——单例速度
|
| 162 |
+
不占优,但没有 API 费用、额度和网络依赖。
|
| 163 |
+
|
| 164 |
### 已知限制
|
| 165 |
|
| 166 |
以下问题随 2026-11-01 的发布决定一并接受,不再追加修复轮次。
|