Downloads · 30 days
81
3% of all-time downloads
exnivo/Qwen3.8-20B-Minitron
Qwen3.8-20B-Minitron is a image-text-to-text model from exnivo. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
An experimental structurally-pruned derivative of Qwen/Qwen3.8-27B.
Downloads · 30 days
81
3% of all-time downloads
All-time downloads
3.2K
Public
Parameters
19.7B
39.5 GB on disk
Likes
9
Public
Click a slice to open those files.
.safetensors39.5 GB · 100%
From the Hugging Face model README
An experimental structurally-pruned derivative of Qwen/Qwen3.8-27B.
This is not a quantization of the 27B model.
The language model was physically reduced from 64 to 44 decoder layers using iterative marginal-KL group pruning, followed by knowledge-distillation recovery and targeted repair training.
| Qwen3.8-27B | This model | |
|---|---|---|
| Measured parameters | 27.357B | 19.746B |
| Language layers | 64 | 44 |
| Hybrid groups | 16 | 11 |
| Parameter reduction | — | 27.82% |
Approximately 7.61 billion parameters were physically removed.
Original language-layer pattern:
[linear_attention, linear_attention, linear_attention, full_attention] × 16
Surviving groups:
[0, 2, 4, 6, 7, 8, 11, 12, 13, 14, 15]
Removed groups:
[1, 3, 5, 9, 10]
The surviving layers retain their original Qwen weights and are reindexed after pruning.
The raw 19.746B child remained coherent but showed noticeable reasoning and factual instability.
Recovery was performed in multiple stages using:
The uploaded checkpoint contains the fully merged weights. No adapter or pruning script is required to load it.
A custom held-out evaluation used during release selection scored:
These are custom internal checks, not standardized benchmark scores, and should not be compared directly with official Qwen benchmark results.
The final legacy regression suite scored 11/12 (91.7%).
This is an experimental compressed model.
In particular:
import torch
from transformers import AutoModelForMultimodalLM, AutoTokenizer
model_id = "exnivo/Qwen3.8-20B-Minitron"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(
model_id,
dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{"role": "user", "content": "What is the capital of Australia?"}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
)
inputs = tokenizer(
text,
return_tensors="pt",
).to(model.device)
with torch.inference_mode():
output = model.generate(
**inputs,
max_new_tokens=128,
)
print(
tokenizer.decode(
output[0][inputs.input_ids.shape[1]:],
skip_special_tokens=True,
)
)
The pruning process did not rank all layers once and then remove them simultaneously.
Instead, after every group removal, candidate importance was measured again on the current pruned model using marginal KL divergence.
This mattered because layer importance changed substantially after earlier groups were removed.
The process was:
Based on Qwen/Qwen3.8-27B.
This is an independent experimental derivative and is not an official Qwen release.