Downloads · 30 days
8
1% of all-time downloads
ffront/qwen1_5_moe_pruned
qwen1_5_moe_pruned is a machine learning model from ffront. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository is a thin wrapper that loads base weights from Qwen/Qwen1.5-MoE-A2.7B and masks selected experts per layer during inference routing.
Downloads · 30 days
8
1% of all-time downloads
All-time downloads
775
Public
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py15.9 KB · 85%
From the Hugging Face model README
This repository is a thin wrapper that loads base weights from Qwen/Qwen1.5-MoE-A2.7B and masks selected experts per layer during inference routing.
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained(
"ffront/qwen1_5_moe_pruned",
trust_remote_code=True,
pruned_experts_by_layer={
"*": [0],
5: [1, 2, 3],
},
)