Instructions to use Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite") 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("Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite") model = AutoModelForMultimodalLM.from_pretrained("Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite", device_map="auto") 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 Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite", "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/Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite
- SGLang
How to use Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite 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 "Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite" \ --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": "Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite", "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 "Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite" \ --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": "Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite", "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 Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite with Docker Model Runner:
docker model run hf.co/Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite
Qwen3.8-27B-MixedInt2-ultra-lite
A mixed-precision AutoRound quantized version of Qwen/Qwen3.8-27B, optimized to significantly reduce memory requirements while preserving the quality of the original model.
Base Model
Base model: Qwen/Qwen3.8-27B
This model is a quantized version of the original Qwen3.8-27B checkpoint. It is not a fine-tune, merge, or distillation.
Quantization
Quantization was performed using Intel AutoRound with a custom mixed-precision quantization configuration.
The quantization recipe was designed to balance:
- Model quality
- Memory efficiency
- Inference performance
- vLLM compatibility
Some model components are intentionally retained at higher precision where appropriate.
| Property | Value |
|---|---|
| Quantization framework | Intel AutoRound |
| Quantization type | Custom Mixed-Precision INT2 |
| Group size | 32, 64, 128 |
| Base model | Qwen/Qwen3.8-27B |
| Language layers | 64 |
| Vision tower | Preserved at original precision |
The detailed mixed-precision allocation strategy is not included in this model card.
Evaluation
Evaluation was performed using AutoRound's evaluation interface with LM Evaluation Harness.
The following results compare the original Qwen3.8-27B model against Qwen3.8-27B-MixedInt2-ultra-lite.
| Benchmark | Metric | Qwen3.8-27B | Qwen3.8-27B-MixedInt2-ultra-lite | Difference | Recovery Rate |
|---|---|---|---|---|---|
| MMLU | acc | 83.49% | 78.30% | -5.19 pp | 93.78% |
| GSM8K | exact_match (flexible) | 72.86% | 43.29% | -29.57 pp | 59.42% |
| ARC-Challenge | acc_norm | — | — | — | — |
| BoolQ | acc | — | — | — | — |
| HellaSwag | acc_norm | — | — | — | — |
| PIQA | acc_norm | — | — | — | — |
| WinoGrande | acc | — | — | — | — |
| Average | — | — | — | — | — |
MMLU Category Breakdown
| MMLU Category | Qwen3.8-27B | Qwen3.8-27B-MixedInt2-ultra-lite | Difference | Recovery Rate |
|---|---|---|---|---|
| Humanities | 77.39% | 73.33% | -4.06 pp | 94.75% |
| Other | 86.03% | 81.20% | -4.83 pp | 94.39% |
| Social Sciences | 90.74% | 85.99% | -4.75 pp | 94.77% |
| STEM | 83.03% | 75.36% | -7.67 pp | 90.76% |
GSM8K
| Metric | Qwen3.8-27B | Qwen3.8-27B-MixedInt2-ultra-lite | Difference | Recovery Rate |
|---|---|---|---|---|
| Flexible Exact Match | 72.86% | 43.29% | -29.57 pp | 59.42% |
| Strict Exact Match | 70.36% | 35.33% | -35.03 pp | 50.22% |
Recovery Rate represents benchmark performance relative to the original Qwen3.8-27B checkpoint. A recovery rate above 100% indicates that the quantized model scored higher than the original model in that particular evaluation. Benchmark preservation does not imply identical behavior for every prompt, multimodal workload, long-context workload, or generation setting.
Usage
This checkpoint is intended for inference engines with AutoRound quantization support, including compatible versions of vLLM.
Notes
- This is a quantized derivative of Qwen3.8-27B.
- The model uses a custom mixed-precision INT2 quantization recipe.
- The vision components are preserved at their original precision.
- This ultra-lite variant is designed to further reduce memory requirements compared with higher-bit quantized variants.
- Quantization may introduce small behavioral differences compared with the original checkpoint.
Acknowledgements
- Base model: Qwen Team
- Quantization framework: Intel AutoRound
Please refer to the original Qwen3.8-27B model card for licensing, intended usage, limitations, and other information applicable to the base model.
- Downloads last month
- -
Model tree for Pilcothink/Qwen3.8-27B-MixedInt2-ultra-lite
Base model
Qwen/Qwen3.8-27B