Downloads · 30 days
76
13% of all-time downloads
OpenMOSE/Qwen3.5-REAP-212B-A17B
Qwen3.5-REAP-212B-A17B is a machine learning model from OpenMOSE. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Vision–Language MoE model created by applying Router-weighted Expert Activation Pruning (REAP) to Qwen3.5-397B-A17B.
Downloads · 30 days
76
13% of all-time downloads
All-time downloads
573
Public
Parameters
212B
424 GB on disk
Likes
14
Public
Click a slice to open those files.
.safetensors424 GB · 100%
From the Hugging Face model README
Vision–Language MoE model created by applying Router-weighted Expert Activation Pruning (REAP) to Qwen3.5-397B-A17B.
Now, 35% Version also available :) more strong, more stable
https://huggingface.co/OpenMOSE/Qwen3.5-REAP-262B-A17B-GGUF
This is an unofficial community variant of Qwen3.5, not affiliated with or endorsed by Alibaba or Cerebras Systems.
REAP (Router-weighted Expert Activation Pruning) is a pruning method for MoE models that uses:
to identify under-used or redundant experts and prune them while preserving model quality as much as possible.
For this model:
In short: same REAP algorithm, adapted to Qwen3.5, leaving VL functionality available.
The REAP pruning statistics were computed using:
Calibration dataset: https://huggingface.co/datasets/OpenMOSE/reap-calib-mix
This dataset is mostly synthetic, generated by Qwen3-235B-Instruct on mixed prompts designed to cover:
The calibration set is not used for additional fine-tuning; it is used only to measure router/expert activations to decide which experts to prune.
By pruning ~48% of experts while keeping VL:
Qwen3.5-397B-A17B is currently the closest OSS model to frontier performance. The goal of this project is to make that model accessible for local deployment by reducing its memory footprint as much as possible without sacrificing the core capabilities that make it special.
Primary intended uses
Suitable tasks (examples)
Out-of-scope / high-risk uses
This model should not be used without additional safeguards for:
This model inherits all the limitations of Qwen3.5-397B-A17B plus those introduced by pruning:
Users should perform their own evaluation before relying on the model in any sensitive context.
Note: Requires a recent
transformersversion with Qwen3.5-MoE support (transformers4.57.0.dev0or newer). Replace class names as appropriate for your environment.
import torch
from transformers import AutoProcessor
from transformers.models.qwen3_5_moe import Qwen3_5MoeForConditionalGeneration
model_id = "/home/Qwen3.5-REAP-218B-A17B"
# default: Load the model on the available device(s)
model = Qwen3_5MoeForConditionalGeneration.from_pretrained(
model_id, dtype="auto", device_map="auto"#, use_cache = False
)
processor = AutoProcessor.from_pretrained(model_id)
messages = [
{
"role": "user",
"content": [
{
"type": "image",
"image": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/pipeline-cat-chonk.jpeg",
},
{"type": "text", "text": "Describe the image."},
],
}
]
# Preparation for inference
inputs = processor.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_dict=True,
return_tensors="pt"
)
print(inputs)
# Inference: Generation of the output
generated_ids = model.generate(**inputs, max_new_tokens=256,do_sample=True,temperature=0.7, # ← 1.0より小さいほど保守的
top_p=0.9) # or top_k=50 など)
generated_ids_trimmed = [
out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
]
output_text = processor.batch_decode(
generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
)
print(output_text[0])
Recommended quantization: Q4_K_M or similar 4-bit quantization is recommended to fit within a single 96 GB GPU. A small amount of CPU offload may still be needed depending on your configuration.
Key parameters after pruning:
num_experts: 267 (down from 512)num_experts_per_tok: 10num_hidden_layers: 60hidden_size: 4096max_position_embeddings: 262,144hidden_size 1152, supports image and video tokensCommunity contributions with detailed benchmarks are very welcome.
OpenMOSE/reap-calib-mix (mostly generated by Qwen3-235B-Instruct)Future versions may include post-pruning fine-tuning or distillation to recover performance lost from the more aggressive pruning ratio.
Let's make frontier-class OSS models accessible together.
You are encouraged to:
This architecture research and implementation was made possible with computing power and technical support from Recursal AI. We sincerely thank them for enabling this work.
2025 OpenMOSE