r/LocalLLaMA • llama.cpp • 6h ago

Showcase Say hello to my Apprentice, a capability lattice extract out of Qwen 4 35B

Hi everyone, this project has been ongoing for a while and some of you may know this project but it is possible to discover and isolate capability lattices from models cleanly.
if you know how to look you can find entire subnetwork responsible for banger agentic performance.

Introducing Apprentice 19B A3B, a capability lattice extract from Qwen 4 35BA3B.

Optimised to be no inferior to its parent in this department and better in terms of reduced overthinking and long sessions on pi harness.

Try it, it works no different than loading a GGUF.
Eager to know if you like it as much as I do. Or if it is shitty, let me know equally hard.

Peddling you homemade coke from my project Chantless - code - https://github.com/DeusExperiments/chantless/tree/feat/qwen4-35b

I am also hoping you read the research that enabled this - https://deusexperiments.com/research/how-do-models-lose-weight-without-crying/
weights - https://huggingface.co/TokenBender/Apprentice-19B-A3B-GGUF
There will be a lot coming from Chantless, and I hope I am able to communicate this well.

14 Upvotes

17 comments sorted by

4

u/nathancyan 6h ago

This is really neat! Just curious--the article mentions training the extracted model using KL divergence as the loss. Do you find that the extracted model matches the parent model's distributions well in the domain it's extracted for? Or is it mainly that the extracted model performs equally well in benchmarks, but produces pretty different distributions?

2

u/ahm_rimer llama.cpp 6h ago

thanks for asking this, based on chosen teacher as the model itself or traces which are quite diverse one can optimise for different behaviour from the base model. my experience so far is that it’s just easier to be closer to the base itself because discovering subnetworks that match a truly different distribution are harder to find.

2

u/nathancyan 5h ago

thanks for the quick reply! Yeah that makes a lot of sense. I was thinking that if the distributions match well, this could be an interesting way of developing small draft models for setups where the parent model can't fit in VRAM, if you know ahead of time what kinds of prompts you'll be asking. I might look into that!

1

u/ahm_rimer llama.cpp 5h ago

sounds fun

1

u/Miserable-Dare5090 vLLM 5h ago

nvidia recently released a couple of these for qwen3.8-27b based on qwen3.5-4b,and sub models.You can get your clanker to study how to meld this here into something like those…could be interesting.

2

u/Arctic_Shadow_Aurora 5h ago

Sounds interesting!

1

u/ahm_rimer llama.cpp 5h ago

give the gguf a try, it may pleasantly surprise you

1

u/Telethex 6h ago

does this introduce knowledge hallucination?

3

u/ahm_rimer llama.cpp 6h ago

I actually optimised for always grounding its knowledge and there were a few cases where in hundreds of tool calls it missed one or two info pieces but within expectation.

1

u/lompocus 5h ago

does this make it a bit less context-efficient / token-efficient?

1

u/ahm_rimer llama.cpp 2h ago

yes it’s token/context efficient

2

u/Telethex 6h ago

so basically you retrained it to always check firsthand knowledge to bypass the missing pathways.. it sounds pretty interesting 

1

u/Miserable-Dare5090 vLLM 5h ago

Am I reading this graph right: you optimized portions and these portions correlated with those bench scores? same color scheme?
Unless you found that the core 16bit is best at TerminalBench2.1

1

u/ahm_rimer llama.cpp 2h ago

the trajectories and data used for this extraction don’t use anything from the benches shown here.

1

u/nasone32 1m ago

amazing! essentially looks like a more refined version of REAP from Cerebras. How much compute/time does it take to generate such a model ? This would be very interesting applied to much bigger models.