Text Generation
Transformers
Safetensors
qwen3
feature-extraction
dflash
speculative-decoding
diffusion
efficiency
flash-decoding
qwen
diffusion-language-model
custom_code
text-generation-inference
Instructions to use z-lab/Qwen3-8B-DFlash-b16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use z-lab/Qwen3-8B-DFlash-b16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="z-lab/Qwen3-8B-DFlash-b16", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("z-lab/Qwen3-8B-DFlash-b16", trust_remote_code=True) model = AutoModel.from_pretrained("z-lab/Qwen3-8B-DFlash-b16", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use z-lab/Qwen3-8B-DFlash-b16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "z-lab/Qwen3-8B-DFlash-b16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "z-lab/Qwen3-8B-DFlash-b16", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/z-lab/Qwen3-8B-DFlash-b16
- SGLang
How to use z-lab/Qwen3-8B-DFlash-b16 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 "z-lab/Qwen3-8B-DFlash-b16" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "z-lab/Qwen3-8B-DFlash-b16", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "z-lab/Qwen3-8B-DFlash-b16" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "z-lab/Qwen3-8B-DFlash-b16", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use z-lab/Qwen3-8B-DFlash-b16 with Docker Model Runner:
docker model run hf.co/z-lab/Qwen3-8B-DFlash-b16
Commit History
-
Update README.md
Verified signature9b41424
-
Update README.md
Verified signature5adfac3
-
Update README.md
Verified signature9dfd33a -
Update README.md
Verified signaturec4f94c6
-
Update README.md
Verified signature0715418 -
Update README.md
Verified signature8d3ceb5
-
Update README.md
Verified signature1c13cc5 -
Update README.md
Verified signature2a83b29 -
Upload model
Verified signature57f454b
-
Update config.json
Verified signature9594478
-
Update README.md
Verified signature63940de
-
Upload model
Verified signaturec56ea49
-
Update README.md
Verified signature5aa5095
-
Update README.md
Verified signaturec280d4c -
Update README.md
Verified signature7b11e95 -
Update README.md
Verified signature4249bb4 -
Upload 3 files
Verified signature0fc212a -
Upload model
Verified signature4d6941a
-
Upload model
Verified signature8b127ea -
Delete assets
Verified signatureff33103 -
Create assets/
Verified signature1ddcb80 -
Update README.md
Verified signature9e22f50 -
Upload model
Verified signatureaccb15d -
Upload model
Verified signature38d1425 -
initial commit
Verified signature46c8477