Mindket

qwen-2.5-0.5b-bam-umoe-wikitext2

Newversion 1 · updated

Overview

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.

At a glance

You need
  • Python with pip
  • The NeuralOps library, which holds the replacement operator
  • About 988 MB of disk space for the weights
Runs in
  • Python with the NeuralOps library, which provides the bam_umoe operator
  • Research notebooks and scripts that measure perplexity
  • A GPU helps, since the card measured on an RTX 3090 with 24 GB
Start with
pip install -U huggingface_hub
hf download tahamajs/qwen-2.5-0.5b-bam-umoe-wikitext2

About

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.

IndustryWho uses itHow they use itExample
AI researchArchitecture researchersStudy hybrid layouts that mix a new attention operator with the originalCompare the 18 replaced layers with the 6 kept
Model efficiencyEfficiency engineersTest replacing attention in a compact modelMeasure perplexity before and after distillation
EducationGraduate studentsLearn how distillation repairs a modified networkFollow 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.

  • Python with the NeuralOps library, which provides the bam_umoe operator
  • Research notebooks and scripts that measure perplexity
  • A GPU helps, since the card measured on an RTX 3090 with 24 GB
Use caseWhoWhat they get back
Attention surgery studyResearchersA working model with 18 swapped layers
Perplexity checksStudentsScores on the WikiText-2 validation split
Distillation practiceEngineersA 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.

  • Python with pip
  • The NeuralOps library, which holds the replacement operator
  • About 988 MB of disk space for the weights
  1. Install the Hugging Face download tool.
  2. Download the checkpoint to your computer.
  3. Install NeuralOps and follow the model card to load the 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.

ToolWhat it does
NeuralOps librarySupplies the bam_umoe attention operator
QwenAttentionAdapterFits the new block into Qwen's attention slot
WikiText-2Provides the distillation data and the evaluation split
Teacher modelThe 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.

  1. Start from Qwen2.5-0.5B as the teacher
  2. Replace 18 attention layers with bam_umoe
  3. Stage 1 aligns attention with the rest frozen
  4. Stage 2 distills the whole network
  5. 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.

  • Recovery: Distillation brought perplexity down from 338,496.47 right after the swap to 80.85.
  • Gap: The original model scores 15.38, so this checkpoint is much weaker than the model it came from.
  • Packaging: The weights come as full FP16 files plus an adapter.
WikiText-2 perplexity, lower is better
Original Qwen2.5-0.5B15.38 PPL
After distillation80.85 PPL
Right after the swap338,496.47 PPL
  • License: MIT.
  • Cost to run: none named, the source lists no API key, account or paid service.
  • Data it reaches: the text you evaluate on, plus the checkpoint you download and the NeuralOps code.
  • Not for: use as a drop-in replacement for Qwen2.5-0.5B, since its perplexity is several times higher.

README and files

README

qwen-2.5-0.5b-bam-umoe-wikitext2

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.

About

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.

  • Python with the NeuralOps library, which provides the bam_umoe operator
  • Research notebooks and scripts that measure perplexity
  • A GPU helps, since the card measured on an RTX 3090 with 24 GB
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.

  • Python with pip
  • The NeuralOps library, which holds the replacement operator
  • About 988 MB of disk space for the weights
  1. Install the Hugging Face download tool.
  2. Download the checkpoint to your computer.
  3. Install NeuralOps and follow the model card to load the 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.

  • Recovery: Distillation brought perplexity down from 338,496.47 right after the swap to 80.85.
  • Gap: The original model scores 15.38, so this checkpoint is much weaker than the model it came from.
  • Packaging: The weights come as full FP16 files plus an adapter.
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
  • License: MIT.
  • Cost to run: none named, the source lists no API key, account or paid service.
  • Data it reaches: the text you evaluate on, plus the checkpoint you download and the NeuralOps code.
  • Not for: use as a drop-in replacement for Qwen2.5-0.5B, since its perplexity is several times higher.

On Hugging Face, 13 November 2026

  • Task: text generation
  • Library: neuralops
  • Parameters: 494M
  • Weights: about 988 MB in F16; about 247 MB at 4-bit (estimate)
  • Formats: Safetensors
  • Downloads in the last 30 days: 278
  • Likes: 3
  • License: mit
  • Languages: en
  • Based on: Qwen/Qwen2.5-0.5B
  • Tags: neuralops, safetensors, qwen2, qwen2.5, attention-zoo, attention-surgery, subquadratic-attention, knowledge-distillation, wikitext-2, sparse, bam_umoe, text-generation

Links

Get the model

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.

Files
README.md  6 KB

1 file, 6 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
qwen-2.5-0.5b-bam-umoe-wikitext2 This page2783494Mmit
qwen-2.5-0.5b-block-transformer-hiba-wikitext2Shares attention-surgery · attention-zoo · neuralops2743535Mmit
K2-Horizon-0.9BShares knowledge-distillation · text-generation · safetensors11,2441051.1Bapache-2.0
DeepSeek-V4-ProShares text-generation · safetensors322,1625,7021.6Tmit
VLX-Seek-1.5-10BShares text-generation · safetensors137,7723910Bapache-2.0
OpenAI GPT 1Shares text-generation · safetensors45,439325120Mmit
Numbers as Mindket last read them, on 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

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…

New369

DataWorld-35B-A3B

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…

New

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…

New

Similar in Research

See all in Research

EarthJev

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…

New

getting-over-it-rl-jax

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…

New

ReFoCo

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…

New