Text Generation
Transformers
Safetensors
Dream
feature-extraction
diffusion
fast-inference
d3llm
conversational
custom_code
Instructions to use d3LLM/d3LLM_Dream_Coder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use d3LLM/d3LLM_Dream_Coder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="d3LLM/d3LLM_Dream_Coder", 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_Coder", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use d3LLM/d3LLM_Dream_Coder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "d3LLM/d3LLM_Dream_Coder" # 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_Coder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/d3LLM/d3LLM_Dream_Coder
- SGLang
How to use d3LLM/d3LLM_Dream_Coder 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_Coder" \ --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_Coder", "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_Coder" \ --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_Coder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use d3LLM/d3LLM_Dream_Coder with Docker Model Runner:
docker model run hf.co/d3LLM/d3LLM_Dream_Coder
Commit History
-
Update README.md
Verified signature84f9039
-
Add metadata, paper link and citation (#1)
Verified signature- Add metadata, paper link and citation (26f91fab0831cb1f635e1d61d947c582c7b8f947) Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>8796070
-
Update README.md
Verified signaturedad7e73 -
Update README.md
Verified signature89bf6ed -
Update README.md
Verified signature1c58527 -
Update README.md
Verified signature5098454
-
Create README.md
Verified signatureae3482e
-
Upload merges.txt with huggingface_hub
ChienVerified signature01f2963 -
Upload vocab.json with huggingface_hub
ChienVerified signaturef1dc76f -
Upload added_tokens.json with huggingface_hub
ChienVerified signature94f80cd -
Upload special_tokens_map.json with huggingface_hub
ChienVerified signature8f7fa78 -
Upload tokenizer_config.json with huggingface_hub
ChienVerified signature18fd882 -
Upload model.safetensors.index.json with huggingface_hub
ChienVerified signatureef4783c -
Upload model-00004-of-00004.safetensors with huggingface_hub
ChienVerified signatureb88ce9e -
Upload model-00003-of-00004.safetensors with huggingface_hub
ChienVerified signaturee5d6523 -
Upload model-00002-of-00004.safetensors with huggingface_hub
ChienVerified signature2e29f0c -
Upload model-00001-of-00004.safetensors with huggingface_hub
ChienVerified signature04f06ce -
Upload generation_config.json with huggingface_hub
ChienVerified signature037f6db -
Upload config.json with huggingface_hub
ChienVerified signature3b1abae -
initial commit
ChienVerified signature16324ed