Image-Text-to-Text
Transformers
Safetensors
qwen3_5_moe
qwen
qwen3.6
mixture-of-experts
Mixture of Experts
pruning
reap
bitsandbytes
bnb8
conversational
Instructions to use RangerX/Qwen3.6-35B-PreREAP-BNB8-Pruned-ratio-0.3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RangerX/Qwen3.6-35B-PreREAP-BNB8-Pruned-ratio-0.3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="RangerX/Qwen3.6-35B-PreREAP-BNB8-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-BNB8-Pruned-ratio-0.3") model = AutoModelForMultimodalLM.from_pretrained("RangerX/Qwen3.6-35B-PreREAP-BNB8-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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use RangerX/Qwen3.6-35B-PreREAP-BNB8-Pruned-ratio-0.3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RangerX/Qwen3.6-35B-PreREAP-BNB8-Pruned-ratio-0.3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RangerX/Qwen3.6-35B-PreREAP-BNB8-Pruned-ratio-0.3", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/RangerX/Qwen3.6-35B-PreREAP-BNB8-Pruned-ratio-0.3
- SGLang
How to use RangerX/Qwen3.6-35B-PreREAP-BNB8-Pruned-ratio-0.3 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "RangerX/Qwen3.6-35B-PreREAP-BNB8-Pruned-ratio-0.3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RangerX/Qwen3.6-35B-PreREAP-BNB8-Pruned-ratio-0.3", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "RangerX/Qwen3.6-35B-PreREAP-BNB8-Pruned-ratio-0.3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RangerX/Qwen3.6-35B-PreREAP-BNB8-Pruned-ratio-0.3", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use RangerX/Qwen3.6-35B-PreREAP-BNB8-Pruned-ratio-0.3 with Docker Model Runner:
docker model run hf.co/RangerX/Qwen3.6-35B-PreREAP-BNB8-Pruned-ratio-0.3
| license: apache-2.0 | |
| base_model: Qwen/Qwen3.6-35B-A3B | |
| library_name: transformers | |
| tags: | |
| - qwen | |
| - qwen3.6 | |
| - mixture-of-experts | |
| - moe | |
| - pruning | |
| - reap | |
| - bitsandbytes | |
| - bnb8 | |
| # Qwen3.6-35B-A3B Pre-REAP BNB8 Pruned Ratio 0.3 | |
| This checkpoint is a routed-expert-pruned version of `Qwen/Qwen3.6-35B-A3B`. | |
| Expert saliency was collected with REAP while loading the scoring model with | |
| bitsandbytes 8-bit quantization for standard linear layers. The final saved | |
| checkpoint is the original BF16 model pruned according to those quantization-aware | |
| scores. | |
| ## Pruning setup | |
| - Base model: `Qwen/Qwen3.6-35B-A3B` | |
| - Method: REAP routed-expert pruning | |
| - Pre-REAP scoring model quantization: bitsandbytes 8-bit | |
| - Pruning ratio: 0.30 | |
| - Calibration samples: 1024 | |
| - Sequence length: 2048 | |
| - Seed: 42 | |
| - Router renormalization: enabled | |
| - Shared experts: preserved | |
| ## Notes | |
| This model uses the packed Qwen3.5/Qwen3.6 MoE integration in the REAP codebase. | |
| During bnb8 scoring, standard `nn.Linear` modules are quantized by bitsandbytes, | |
| while packed routed-expert tensors remain BF16 parameters. The checkpoint itself | |
| is saved after pruning in BF16 format and can be loaded with Transformers using | |
| `trust_remote_code=True`. | |
| Evaluation is still in progress for this specific bnb8-pruned checkpoint. Prior | |
| comparison runs use plain lm-eval prompts for GSM8K, without chat templating. | |