Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

z-lab
/
Qwen3.8-27B-DFlash2

Text Generation
Transformers
Safetensors
qwen3
dflash2
speculative-decoding
block-diffusion
draft-model
sglang
vllm
text-generation-inference
Model card Files Files and versions
xet
Community
13

Instructions to use z-lab/Qwen3.8-27B-DFlash2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use z-lab/Qwen3.8-27B-DFlash2 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="z-lab/Qwen3.8-27B-DFlash2")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("z-lab/Qwen3.8-27B-DFlash2")
    model = AutoModel.from_pretrained("z-lab/Qwen3.8-27B-DFlash2", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use z-lab/Qwen3.8-27B-DFlash2 with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "z-lab/Qwen3.8-27B-DFlash2"
    # 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.8-27B-DFlash2",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/z-lab/Qwen3.8-27B-DFlash2
  • SGLang

    How to use z-lab/Qwen3.8-27B-DFlash2 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.8-27B-DFlash2" \
        --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.8-27B-DFlash2",
    		"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.8-27B-DFlash2" \
            --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.8-27B-DFlash2",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use z-lab/Qwen3.8-27B-DFlash2 with Docker Model Runner:

    docker model run hf.co/z-lab/Qwen3.8-27B-DFlash2
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

can support fp8-dflash2?

#13 opened 2 months ago by
dddwei

When will this DFlash model be compatible or come to mainline vLLM Git?

#12 opened 3 months ago by
pathosethoslogos

Unsloth Dynamic 3 GGUF support?

3
#11 opened 3 months ago by
Mk2Oracle

ornith-1.5 support

πŸ‘ 1
1
#10 opened 3 months ago by
destinyhhx

Qwen3.8-27B + DFlash2 on RTX 3090: Q4 vs MTP2 vs DFlash2, ~60 tok/s @ 160K

πŸ”₯πŸ‘ 5
3
#9 opened 3 months ago by
ravingamm

for 3090 MTP and gguf is best for performance 250k context and accuracy.

1
#8 opened 3 months ago by
akierum

need which version vllm

1
#7 opened 3 months ago by
erkai

DFlash 2 vs. DDTree?

#6 opened 3 months ago by
PaleMoth

Help training drafters for other models?

1
#5 opened 3 months ago by
CNWPlayer

Made Sglang + Dflash2 + Docker

πŸ‘ 1
#4 opened 3 months ago by
AIReach

Yet to see any gains from DFlash

πŸ‘ 11
13
#3 opened 3 months ago by
Dnonmi

Docker Support

βž• 1
#2 opened 3 months ago by
Vinuvnair
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs