How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="RangerX/Qwen3.6-35B-PreREAP-BNB4-Pruned-ratio-0.3")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
pipe(text=messages)
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM

processor = AutoProcessor.from_pretrained("RangerX/Qwen3.6-35B-PreREAP-BNB4-Pruned-ratio-0.3")
model = AutoModelForMultimodalLM.from_pretrained("RangerX/Qwen3.6-35B-PreREAP-BNB4-Pruned-ratio-0.3")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
inputs = processor.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Qwen3.6-35B-A3B REAP Pruned Ratio 0.3 with Pre-REAP BNB4 Scoring

This model is derived from Qwen/Qwen3.6-35B-A3B using REAP routed-expert pruning with a pruning ratio of 0.3. Saliency scores were collected from a pre-REAP bitsandbytes 4-bit scoring model, then the original BF16 checkpoint was reloaded, pruned, and saved.

Pruning Setup

  • Base model: Qwen/Qwen3.6-35B-A3B
  • Method: REAP routed-expert pruning
  • Pre-REAP scoring model: bitsandbytes 4-bit NF4, BF16 compute, double quantization enabled
  • Final checkpoint dtype: saved from the original full-precision/BF16 model after pruning; this is not a quantized checkpoint
  • Pruning ratio: 0.3
  • Routed experts before pruning: 256 per MoE layer
  • Routed experts pruned: 76 per MoE layer
  • Routed experts retained: 180 per MoE layer
  • Shared experts: preserved
  • Calibration samples: 1024
  • Sequence length: 2048
  • Seed: 42
  • Router renormalization: true

Notes

This checkpoint uses the packed Qwen3.5/Qwen3.6 REAP integration. The bnb4 quantized model was used only for saliency score collection; pruning and saving were applied to the original model weights.

Downloads last month
6
Safetensors
Model size
26B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for RangerX/Qwen3.6-35B-PreREAP-BNB4-Pruned-ratio-0.3

Finetuned
(154)
this model