Text Generation
Transformers
Safetensors
qwen3
conversational
text-generation-inference
4-bit precision
auto-round
Instructions to use Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound") model = AutoModelForCausalLM.from_pretrained("Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound
- SGLang
How to use Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound 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 "Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound" \ --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": "Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound" \ --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": "Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound with Docker Model Runner:
docker model run hf.co/Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound
Improve model card: Add pipeline tag, library name, and update paper/citation
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,12 +1,15 @@
|
|
| 1 |
---
|
| 2 |
-
license: mit
|
| 3 |
-
datasets:
|
| 4 |
-
- NeelNanda/pile-10k
|
| 5 |
base_model:
|
| 6 |
- deepseek-ai/DeepSeek-R1-0528-Qwen3-8B
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
|
|
|
|
|
|
| 10 |
|
| 11 |
## Model Details
|
| 12 |
|
|
@@ -257,7 +260,7 @@ auto-round --eval --model "Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound-inc"
|
|
| 257 |
Here is the sample command to reproduce the model
|
| 258 |
|
| 259 |
```bash
|
| 260 |
-
auto-round
|
| 261 |
--model_name deepseek-ai/DeepSeek-R1-0528-Qwen3-8B \
|
| 262 |
--device 0 \
|
| 263 |
--format "auto_gptq,auto_awq,auto_round" \
|
|
@@ -287,6 +290,14 @@ The license on this model does not constitute legal advice. We are not responsib
|
|
| 287 |
|
| 288 |
## Cite
|
| 289 |
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
| 2 |
base_model:
|
| 3 |
- deepseek-ai/DeepSeek-R1-0528-Qwen3-8B
|
| 4 |
+
datasets:
|
| 5 |
+
- NeelNanda/pile-10k
|
| 6 |
+
license: mit
|
| 7 |
+
pipeline_tag: text-generation
|
| 8 |
+
library_name: transformers
|
| 9 |
---
|
| 10 |
|
| 11 |
+
This model is `Intel/DeepSeek-R1-0528-Qwen3-8B-int4-AutoRound`, a quantized LLM based on the work presented in [SignRoundV2: Closing the Performance Gap in Extremely Low-Bit Post-Training Quantization for LLMs](https://huggingface.co/papers/2512.04746).
|
| 12 |
+
The quantization was performed using the [AutoRound](https://github.com/intel/auto-round) algorithm.
|
| 13 |
|
| 14 |
## Model Details
|
| 15 |
|
|
|
|
| 260 |
Here is the sample command to reproduce the model
|
| 261 |
|
| 262 |
```bash
|
| 263 |
+
auto-round \
|
| 264 |
--model_name deepseek-ai/DeepSeek-R1-0528-Qwen3-8B \
|
| 265 |
--device 0 \
|
| 266 |
--format "auto_gptq,auto_awq,auto_round" \
|
|
|
|
| 290 |
|
| 291 |
## Cite
|
| 292 |
|
| 293 |
+
```bibtex
|
| 294 |
+
@article{cheng2025signroundv2,
|
| 295 |
+
title={SignRoundV2: Closing the Performance Gap in Extremely Low-Bit Post-Training Quantization for LLMs},
|
| 296 |
+
author={Cheng, Wenhua and Zhang, Weiwei and Guo, Heng and Shen, Haihao},
|
| 297 |
+
year={2025},
|
| 298 |
+
eprint={2512.04746},
|
| 299 |
+
archivePrefix={arXiv},
|
| 300 |
+
primaryClass={cs.CL},
|
| 301 |
+
url={https://arxiv.org/abs/2512.04746},
|
| 302 |
+
}
|
| 303 |
+
```
|