Instructions to use JamesRoy/DGPT-DC with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JamesRoy/DGPT-DC with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JamesRoy/DGPT-DC") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("JamesRoy/DGPT-DC") model = AutoModelForMultimodalLM.from_pretrained("JamesRoy/DGPT-DC") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use JamesRoy/DGPT-DC with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JamesRoy/DGPT-DC" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JamesRoy/DGPT-DC", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/JamesRoy/DGPT-DC
- SGLang
How to use JamesRoy/DGPT-DC 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 "JamesRoy/DGPT-DC" \ --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": "JamesRoy/DGPT-DC", "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 "JamesRoy/DGPT-DC" \ --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": "JamesRoy/DGPT-DC", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use JamesRoy/DGPT-DC with Docker Model Runner:
docker model run hf.co/JamesRoy/DGPT-DC
- Xet hash:
- f052a8b754ee82434377d3f980f8bc07ad83918f94e42b578536178ded1d2f63
- Size of remote file:
- 1.44 GB
- SHA256:
- 3873deb691a38fa941840b35f8419b630a0e0cc9d5cb3d8ab773258e77bcf981
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.