Instructions to use drawais/Qwen3-8B-AWQ-INT4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps
- vLLM
How to use drawais/Qwen3-8B-AWQ-INT4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "drawais/Qwen3-8B-AWQ-INT4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "drawais/Qwen3-8B-AWQ-INT4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/drawais/Qwen3-8B-AWQ-INT4
- SGLang
How to use drawais/Qwen3-8B-AWQ-INT4 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 "drawais/Qwen3-8B-AWQ-INT4" \ --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": "drawais/Qwen3-8B-AWQ-INT4", "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 "drawais/Qwen3-8B-AWQ-INT4" \ --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": "drawais/Qwen3-8B-AWQ-INT4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use drawais/Qwen3-8B-AWQ-INT4 with Docker Model Runner:
docker model run hf.co/drawais/Qwen3-8B-AWQ-INT4
metadata
license: apache-2.0
base_model: Qwen/Qwen3-8B
tags:
- quantized
- 4-bit
- int4
- qwen3
language:
- en
pipeline_tag: text-generation
Qwen3-8B-AWQ-INT4
INT4 quantization of Qwen/Qwen3-8B. Built to run on a single 12 GB+ consumer GPU.
Footprint
| Source params | 8B |
| Quantized weights | ~5.7 GB on disk |
| Inference VRAM (incl. KV cache @ 32K context) | ~10 GB |
Fits any 12 GB+ consumer card: RTX 3060 / 4060 / 4070 / 5070, even some integrated mobile GPUs with shared memory. No homelab needed.
Bench
Scored on drawais/needle-1M-bench-mvp (50K-token haystack, real arxiv text):
| Metric | Score |
|---|---|
| Overall recall | 80.0% |
| Paper-anchored | 80.0% |
| Synthetic codes | 80.0% |
Quick start
vllm serve drawais/Qwen3-8B-AWQ-INT4 --quantization awq_marlin --max-model-len 32768
from transformers import AutoTokenizer, AutoModelForCausalLM
tok = AutoTokenizer.from_pretrained("drawais/Qwen3-8B-AWQ-INT4")
model = AutoModelForCausalLM.from_pretrained("drawais/Qwen3-8B-AWQ-INT4", device_map="auto")
Context length
Native: 40,960 tokens. For longer contexts, enable YaRN rope-scaling per the base model's config.
License
Apache 2.0 (inherits from base model).