Instructions to use SJTU-DAI-Sys/Qwen3-14B-DLite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SJTU-DAI-Sys/Qwen3-14B-DLite with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SJTU-DAI-Sys/Qwen3-14B-DLite", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("SJTU-DAI-Sys/Qwen3-14B-DLite", trust_remote_code=True) model = AutoModel.from_pretrained("SJTU-DAI-Sys/Qwen3-14B-DLite", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SJTU-DAI-Sys/Qwen3-14B-DLite with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SJTU-DAI-Sys/Qwen3-14B-DLite" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SJTU-DAI-Sys/Qwen3-14B-DLite", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SJTU-DAI-Sys/Qwen3-14B-DLite
- SGLang
How to use SJTU-DAI-Sys/Qwen3-14B-DLite 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 "SJTU-DAI-Sys/Qwen3-14B-DLite" \ --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": "SJTU-DAI-Sys/Qwen3-14B-DLite", "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 "SJTU-DAI-Sys/Qwen3-14B-DLite" \ --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": "SJTU-DAI-Sys/Qwen3-14B-DLite", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SJTU-DAI-Sys/Qwen3-14B-DLite with Docker Model Runner:
docker model run hf.co/SJTU-DAI-Sys/Qwen3-14B-DLite
DLite: History-free Speculative Decoding for Agentic AI
This repository contains a DLite draft checkpoint presented in DLite: History-free Speculative Decoding for Agentic AI.
DLite is a history-free speculative decoding framework for agentic AI. It reuses contextual hidden states from the target model to predict draft tokens without maintaining a historical draft KV cache. A lightweight sequential head restores dependencies within each speculative block, while a two-stage training strategy aligns the draft model with the target model.
Code: https://github.com/SJTU-DAI-Sys/DLite
DLite draft checkpoints are paired with specific target models (e.g. Qwen3-4B, Qwen3-8B, Qwen3-14B, Qwen3.5-4B). Please refer to the GitHub repository and the Hugging Face collection for the matching target model.
Usage
from dlite import DLiteEngine
engine = DLiteEngine.from_pretrained(
target_model="/path/to/Qwen3-8B",
draft_model="/path/to/dlite-student",
attention_backend="auto", # auto, eager, sdpa, flash_attention_2
)
result = engine.generate("Explain speculative decoding in one paragraph.")
print(result.text)
print(result.stats)
See the GitHub repository for installation, CLI usage, and benchmarking instructions.
- Downloads last month
- 140