Text Generation
Transformers
Safetensors
Dream
feature-extraction
diffusion
fast-inference
d3llm
conversational
custom_code
Instructions to use d3LLM/d3LLM_Dream with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use d3LLM/d3LLM_Dream with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="d3LLM/d3LLM_Dream", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("d3LLM/d3LLM_Dream", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use d3LLM/d3LLM_Dream with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "d3LLM/d3LLM_Dream" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "d3LLM/d3LLM_Dream", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/d3LLM/d3LLM_Dream
- SGLang
How to use d3LLM/d3LLM_Dream 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 "d3LLM/d3LLM_Dream" \ --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": "d3LLM/d3LLM_Dream", "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 "d3LLM/d3LLM_Dream" \ --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": "d3LLM/d3LLM_Dream", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use d3LLM/d3LLM_Dream with Docker Model Runner:
docker model run hf.co/d3LLM/d3LLM_Dream
Commit History
-
Update model card with metadata, paper link and usage
Verified signatureHi! I'm Niels from the Hugging Face community science team. This PR improves the model card for d3LLM-Dream by: - Adding the `library_name: transformers` tag (verified by the presence of `auto_map` in `config.json`). - Adding the `license: apache-2.0` tag. - Adding the `base_model` identifier. - Linking the model to its research paper: [d3LLM: Ultra-Fast Diffusion LLM using Pseudo-Trajectory Distillation](https://huggingface.co/papers/2601.07568). - Providing a standard `transformers` usage example. - Adding the official citation from the paper. These changes help improve the discoverability and usability of your model on the Hugging Face Hub.cd3334e
-
Update README.md
Verified signaturecaa0744 -
Update README.md
Verified signaturedc81523 -
Update README.md
Verified signaturedd6c86a -
Update README.md
Verified signature1fd6f8c
-
Update README.md
Verified signature11eeeeb -
Update README.md
Verified signature6b285cd
-
Update README.md
Verified signaturec651d67 -
Update README.md
Verified signature41c9a13 -
Update README.md
Verified signature90cfadd -
Create README.md
Verified signature# d3LLM-Dream: Ultra-Fast Diffusion Language Model ## Model Description **d3LLM-Dream** is an ultra-fast diffusion language model that achieves **5× speedup** over autoregressive models on H100 GPUs while maintaining competitive performance. Built on the Dream architecture, it uses pseudo-trajectory distillation and multi-block decoding to enable efficient parallel text generation. ## Key Features - 🚀 **4.5× faster** than autoregressive models (Qwen-2.5-7B) on H100 GPU - 🎯 **2.5× faster** on A100 GPU - 📊 High AUP (Accuracy Under Parallelism) scores across benchmarks - 🔧 Optimized for coding and math reasoning tasks ## Usage For detailed usage instructions, evaluation scripts, and training code, please refer to the official GitHub repository: 👉 **[https://github.com/hao-ai-lab/text-diffusion](https://github.com/hao-ai-lab/text-diffusion)**d3d380d
-
Upload merges.txt with huggingface_hub
ChienVerified signatureb28b3f8 -
Upload vocab.json with huggingface_hub
ChienVerified signaturee48bc20 -
Upload special_tokens_map.json with huggingface_hub
ChienVerified signature822d99c -
Upload added_tokens.json with huggingface_hub
ChienVerified signaturebbcfbf4 -
Upload tokenizer_config.json with huggingface_hub
ChienVerified signatureef1338e -
Upload model.safetensors.index.json with huggingface_hub
ChienVerified signature60ffcf1 -
Upload model-00004-of-00004.safetensors with huggingface_hub
ChienVerified signature00d7d60 -
Upload model-00003-of-00004.safetensors with huggingface_hub
ChienVerified signatureddf2124 -
Upload model-00002-of-00004.safetensors with huggingface_hub
ChienVerified signaturecae62ac -
Upload model-00001-of-00004.safetensors with huggingface_hub
ChienVerified signature87f9400 -
Upload generation_config.json with huggingface_hub
ChienVerified signaturea4e1553 -
Upload config.json with huggingface_hub
ChienVerified signatureccf134f -
initial commit
ChienVerified signaturec98fa69