Instructions to use autoprogrammer/dream_rcr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use autoprogrammer/dream_rcr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="autoprogrammer/dream_rcr", 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("autoprogrammer/dream_rcr", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use autoprogrammer/dream_rcr with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "autoprogrammer/dream_rcr" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "autoprogrammer/dream_rcr", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/autoprogrammer/dream_rcr
- SGLang
How to use autoprogrammer/dream_rcr 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 "autoprogrammer/dream_rcr" \ --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": "autoprogrammer/dream_rcr", "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 "autoprogrammer/dream_rcr" \ --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": "autoprogrammer/dream_rcr", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use autoprogrammer/dream_rcr with Docker Model Runner:
docker model run hf.co/autoprogrammer/dream_rcr
Commit History
-
Update generation_utils.py
Verified signature78f65a4 -
Update generation_utils.py
Verified signaturefd52594 -
Update generation_utils.py
Verified signature24e35c2 -
Update generation_utils.py
Verified signature9384b5d -
Update generation_utils.py
Verified signature3d20c97 -
Update generation_utils.py
Verified signature34c9b0b -
Update generation_utils.py
Verified signature0d07b88 -
Update generation_utils.py
Verified signature631ce9b -
Update generation_utils.py
Verified signature32f22f3 -
Update generation_utils.py
Verified signature762a23f -
Update generation_utils.py
Verified signature0ac14ef -
Update generation_utils.py
Verified signatured0ecd79 -
Update generation_utils.py
Verified signaturee350bc1 -
Update generation_utils.py
Verified signature8c62663 -
Update generation_utils.py
Verified signature8ddc04c -
Update generation_utils.py
Verified signature4e351cb -
Update generation_utils.py
Verified signature85f58f1 -
Update generation_utils.py
Verified signaturebb6d931
-
Duplicate from Dream-org/Dream-v0-Instruct-7B
Verified signatureCo-authored-by: Carson Ye <jiacheng-ye@users.noreply.huggingface.co>6be7e05