Dodaios
Dodaios · Kit
Open source agent OS that lets you steer coding agents, your browser and other desktop apps by voice or chat, with every system change waiting for your approva…
Swaps 18 of the 24 attention layers in Qwen2.5-0.5B for a mixture-of-experts attention block, then distills it on WikiText-2. A research checkpoint for studying attention surgery, not a finished chat model.
qwen-2.5-0.5b-bam-umoe-wikitext2 is a kit in the Research category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download tahamajs/qwen-2.5-0.5b-bam-umoe-wikitext2
This is an experimental version of Qwen2.5-0.5B in which 18 of the 24 attention layers were replaced by a mixture-of-experts attention operator from the NeuralOps library, called bam_umoe. The model then went through two stages of knowledge distillation on WikiText-2 to recover its language ability. It exists to study what happens when you rebuild attention in a small model, so treat it as a research artifact.
Machine learning researchers and students who study efficient attention designs and want a concrete, small model that has been rebuilt this way.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| AI research | Architecture researchers | Study hybrid layouts that mix a new attention operator with the original | Compare the 18 replaced layers with the 6 kept |
| Model efficiency | Efficiency engineers | Test replacing attention in a compact model | Measure perplexity before and after distillation |
| Education | Graduate students | Learn how distillation repairs a modified network | Follow the two-stage recipe step by step |
You can skip it if you need a model for real chat or writing, since its perplexity is far above the original model's.
It is meant for Python research code that uses the NeuralOps library, on a machine with enough memory for a 0.5B model.
| Use case | Who | What they get back |
|---|---|---|
| Attention surgery study | Researchers | A working model with 18 swapped layers |
| Perplexity checks | Students | Scores on the WikiText-2 validation split |
| Distillation practice | Engineers | A reference recipe with stage budgets and steps |
You need Python with pip, the NeuralOps library from the maker, and about 988 MB of disk for the F16 weights.
pip install -U huggingface_hub hf download tahamajs/qwen-2.5-0.5b-bam-umoe-wikitext2
Load the checkpoint through the NeuralOps library, which supplies the replacement operator and the adapter that fits it into Qwen's layers. Then evaluate it on the WikiText-2 validation split at sequence length 512 and compare it with the original model.
| Tool | What it does |
|---|---|
| NeuralOps library | Supplies the bam_umoe attention operator |
| QwenAttentionAdapter | Fits the new block into Qwen's attention slot |
| WikiText-2 | Provides the distillation data and the evaluation split |
| Teacher model | The original Qwen2.5-0.5B used as the reference |
Run the checkpoint and the original Qwen2.5-0.5B on the same validation text. The card reports a perplexity of 15.38 for the original and 80.85 for this model, so you can see how much the swap costs.
Attention is the part of a language model that lets each word look at the others. Researchers try swapping it for cheaper designs. This checkpoint is one such experiment, made small enough to repeat. A first small try is to load it and compare its perplexity with the original.
For experts, three of every four layers carry the replacement operator, and layers 3, 7, 11, 15, 19 and 23 keep Qwen's grouped-query attention as anchors. Each replaced layer starts from the teacher's projection weights. Distillation aligns hidden states, first with the backbone frozen for 121 steps, then end to end for 284 steps. The trade is efficiency against quality, and perplexity stays about five times the teacher's.
The card measured everything on the WikiText-2 validation split at sequence length 512, on one RTX 3090 with 24 GB.
Swaps 18 of the 24 attention layers in Qwen2.5-0.5B for a mixture-of-experts attention block, then distills it on WikiText-2. A research checkpoint for studying attention surgery, not a finished chat model.
Made by tahamajs on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: This is an experimental version of Qwen2.5-0.5B in which 18 of the 24 attention layers were replaced by a mixture-of-experts attention operator from the NeuralOps library, called bam_umoe. The model then went through two stages of knowledge distillation on WikiText-2 to recover its language ability. It exists to study what happens when you rebuild attention in a small model, so treat it as a research artifact.
Who it suits: Machine learning researchers and students who study efficient attention designs and want a concrete, small model that has been rebuilt this way.
Industry | Who uses it | How they use it | Example
AI research | Architecture researchers | Study hybrid layouts that mix a new attention operator with the original | Compare the 18 replaced layers with the 6 kept
Model efficiency | Efficiency engineers | Test replacing attention in a compact model | Measure perplexity before and after distillation
Education | Graduate students | Learn how distillation repairs a modified network | Follow the two-stage recipe step by step
You can skip it if you need a model for real chat or writing, since its perplexity is far above the original model's.
Where to use it: It is meant for Python research code that uses the NeuralOps library, on a machine with enough memory for a 0.5B model.
Use case | Who | What they get back
Attention surgery study | Researchers | A working model with 18 swapped layers
Perplexity checks | Students | Scores on the WikiText-2 validation split
Distillation practice | Engineers | A reference recipe with stage budgets and steps
How to set it up: You need Python with pip, the NeuralOps library from the maker, and about 988 MB of disk for the F16 weights.
pip install -U huggingface_hub
hf download tahamajs/qwen-2.5-0.5b-bam-umoe-wikitext2
How to use it: Load the checkpoint through the NeuralOps library, which supplies the replacement operator and the adapter that fits it into Qwen's layers. Then evaluate it on the WikiText-2 validation split at sequence length 512 and compare it with the original model.
Tool | What it does
NeuralOps library | Supplies the bam_umoe attention operator
QwenAttentionAdapter | Fits the new block into Qwen's attention slot
WikiText-2 | Provides the distillation data and the evaluation split
Teacher model | The original Qwen2.5-0.5B used as the reference
Example: Run the checkpoint and the original Qwen2.5-0.5B on the same validation text. The card reports a perplexity of 15.38 for the original and 80.85 for this model, so you can see how much the swap costs.
For newcomers and experts: Attention is the part of a language model that lets each word look at the others. Researchers try swapping it for cheaper designs. This checkpoint is one such experiment, made small enough to repeat. A first small try is to load it and compare its perplexity with the original.
For experts, three of every four layers carry the replacement operator, and layers 3, 7, 11, 15, 19 and 23 keep Qwen's grouped-query attention as anchors. Each replaced layer starts from the teacher's projection weights. Distillation aligns hidden states, first with the backbone frozen for 121 steps, then end to end for 284 steps. The trade is efficiency against quality, and perplexity stays about five times the teacher's.
Start from Qwen2.5-0.5B as the teacher
Replace 18 attention layers with bam_umoe
Stage 1 aligns attention with the rest frozen
Stage 2 distills the whole network
Measure perplexity on WikiText-2
Good to know: The card measured everything on the WikiText-2 validation split at sequence length 512, on one RTX 3090 with 24 GB.
Title: WikiText-2 perplexity, lower is better
Original Qwen2.5-0.5B: 15.38 PPL
After distillation: 80.85 PPL
Right after the swap: 338,496.47 PPL
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download tahamajs/qwen-2.5-0.5b-bam-umoe-wikitext2
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| qwen-2.5-0.5b-bam-umoe-wikitext2 This page | 278 | 3 | 494M | mit | |
| qwen-2.5-0.5b-block-transformer-hiba-wikitext2Shares attention-surgery · attention-zoo · neuralops | 274 | 3 | 535M | mit | |
| K2-Horizon-0.9BShares knowledge-distillation · text-generation · safetensors | 11,244 | 105 | 1.1B | apache-2.0 | |
| DeepSeek-V4-ProShares text-generation · safetensors | 322,162 | 5,702 | 1.6T | mit | |
| VLX-Seek-1.5-10BShares text-generation · safetensors | 137,772 | 39 | 10B | apache-2.0 | |
| OpenAI GPT 1Shares text-generation · safetensors | 45,439 | 325 | 120M | mit |
Dodaios · Kit
Open source agent OS that lets you steer coding agents, your browser and other desktop apps by voice or chat, with every system change waiting for your approva…
Zhanli-Li · Kit
A Qwen3.6-35B-A3B model tuned with multi-turn agentic reinforcement learning on the DataWorld tasks, for tool-calling agents. For teams serving a large mixture…
ukisai · Kit
Runs Swift 1.5 Ornith 9B, a reasoning model tuned to think with fewer tokens, as GGUF quantizations for llama.cpp. For people who run a 9B reasoning model on t…
dBenf · Kit
Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…
zimmerk4 · Kit
Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…
yuji-nozawa · Kit
Pretrained vision transformer checkpoints in three sizes from a research paper on training attention heads to focus on image regions. For researchers who extra…