Qwen3.5-0.8B (e2e pilot) — Soft MoE expert «Python language & PEPs (RAG v2)»
EN
A soft MoE domain expert derived from a dense model without any training (weight-space steering): the domain direction d̂ is extracted via an activation scan (mean hidden-state difference between domain and contrast prompts) and baked into the weights with a rank-one steer patch on the output matrices (down_proj/o_proj/out_proj) of the selected layers:
- base model:
Qwen/Qwen3.5-0.8B - theme (domain): Python language & PEPs (RAG v2) — Domain prompts sampled from the platform RAG corpus: official Python docs EPUB + PEPs (30 chunks). V2 rebuild experiment.
- patch mode:
steer, alpha = 0.1 - layers: [15, 16, 17, 18, 20, 21, 22, 23]
- scan gate: AUC = 1.0 (PASS)
An embedding-space router (cosine margin) picks this build instead of the base model for requests matching the theme.
Method
Inspired by Weight-Space Programming (Takeyama et al., MIT CSAIL, 2026): weight edits without gradients. Ivanna Lab extension: the inverse operation — instead of ablating a behavior, a domain direction is steer-amplified and baked into the weights (works where inference hooks are unavailable).
Created with Ivanna Lab — self-hosted LLM model lab.
Notes
V2 rebuild: activation scan on 30 domain prompts sampled from the platform RAG corpus (official Python docs EPUB + PEPs), steer alpha=0.1, position=last. Benchmark: code2text_python (CodeXGLUE) BLEU-4 = 1.0534 on 150 samples — best of the tested grid (vanilla base 1.0519, alpha=0.2 build 1.0289). Tested in Ivanna Lab: https://github.com/wiskeone/ivanna-lab
Benchmark results
Tested in Ivanna Lab (self-hosted LLM model lab, GitHub)
with its built-in benchmarks module (lm-eval-harness). Task: code2text_python (CodeXGLUE),
smoothed BLEU-4, 150 samples, greedy decode:

| Build | BLEU-4 |
|---|---|
| This model (RAG-sampled prompts, alpha=0.1, position=last) | 1.0534 |
| alpha=0.1, weight_lab prompts, position=last | 1.0525 |
| vanilla base (Qwen3.5-0.8B) | 1.0519 |
| alpha=0.1, RAG prompts, position=mean | 1.0436 |
| alpha=0.2, weight_lab prompts, position=last | 1.0289 |
| alpha=0.2, weight_lab prompts, position=mean | 1.0167 |
HumanEval (164, full) is identical for base and expert (0.2256) — the steer patch is safe for general coding. Deltas on standard benches are small: the docs-direction targets style adherence, measured properly by domain-native benchmarks.
GGUF
qwen3.5-0.8b-python-softmoe-v2-q8_0.gguf — Q8_0 quantization converted with llama.cpp (convert_hf_to_gguf.py). Runs in llama.cpp / LM Studio / Ollama directly — the steer patch is baked into the weights.
RU
Мягкий MoE-эксперт, полученный из плотной модели без дообучения (weight-space steering): направление домена d̂ выделено активационным сканом (разность средних hidden states доменных vs контрастных промптов) и вшито steer-патчем в выходные матрицы (down_proj/o_proj/out_proj) выбранных слоёв:
- базовая модель:
Qwen/Qwen3.5-0.8B - тема (домен): Python language & PEPs (RAG v2) — Domain prompts sampled from the platform RAG corpus: official Python docs EPUB + PEPs (30 chunks). V2 rebuild experiment.
- режим:
steer, α = 0.1 - слои: [15, 16, 17, 18, 20, 21, 22, 23]
- гейт скана: AUC = 1.0 (PASS)
Роутер (эмбеддинги + margin) выбирает эту сборку вместо базовой для запросов темы.
Метод
Вдохновлено Weight-Space Programming (Takeyama et al., MIT CSAIL, 2026): правки весов без градиентов. Расширение лабы Ivanna: обратная операция — не абляция поведения, а steer-усиление доменного направления, вшитое в веса (работает там, где инференс-хуки недоступны).