Instructions to use eswardivi/dpt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use eswardivi/dpt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="eswardivi/dpt")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("eswardivi/dpt") model = AutoModelForCausalLM.from_pretrained("eswardivi/dpt", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use eswardivi/dpt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "eswardivi/dpt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "eswardivi/dpt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/eswardivi/dpt
- SGLang
How to use eswardivi/dpt 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 "eswardivi/dpt" \ --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": "eswardivi/dpt", "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 "eswardivi/dpt" \ --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": "eswardivi/dpt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use eswardivi/dpt with Docker Model Runner:
docker model run hf.co/eswardivi/dpt
Commit History
-
Training in progress, step 54000
379a7c7 -
Training in progress, step 53500
d68c021 -
Training in progress, step 53000
510049f -
Training in progress, step 52500
1c84e35 -
Training in progress, step 52000
ced2f75 -
Training in progress, step 51500
d86c027 -
Training in progress, step 51000
28d8f19 -
Training in progress, step 50500
a6e57ae -
Training in progress, step 50000
a984072 -
Training in progress, step 49500
ddd66ce -
Training in progress, step 49000
ab8135f -
Training in progress, step 48500
4203104 -
Training in progress, step 48000
90d4917 -
Training in progress, step 47500
a33702d -
Training in progress, step 47000
daacc0c -
Training in progress, step 46500
2eecbf9 -
Training in progress, step 46000
1a532a9 -
Training in progress, step 45500
bc4dde9 -
Training in progress, step 45000
78f730b -
Training in progress, step 44500
42d244e -
Training in progress, step 44000
a3f4203 -
Training in progress, step 43500
fd1965b -
Training in progress, step 43000
10aa67d -
Training in progress, step 42500
b98d9db -
Training in progress, step 42000
3ed0ca3 -
Training in progress, step 41500
9054387 -
Training in progress, step 41000
5d31c15 -
Training in progress, step 40500
2673895 -
Training in progress, step 40000
a406c1e -
Training in progress, step 39500
d4f263b -
Training in progress, step 39000
4401a9a -
Training in progress, step 38500
5dbab64 -
Training in progress, step 38000
b2b266e -
Training in progress, step 37500
c29f4e5 -
Training in progress, step 37000
8c55b28 -
Training in progress, step 36500
cfa560f -
Training in progress, step 36000
364808e -
Training in progress, step 35500
827686e -
Training in progress, step 35000
b5e5c6d -
Training in progress, step 34500
338fc7d -
Training in progress, step 34000
3131d82 -
Training in progress, step 33500
50c297c -
Training in progress, step 33000
f39b144 -
Training in progress, step 32500
9cb0561 -
Training in progress, step 32000
d7bb710 -
Training in progress, step 31500
7eb5b33 -
Training in progress, step 31000
14dd81d -
Training in progress, step 30500
c59d129 -
Training in progress, step 30000
d59e381 -
Training in progress, step 29500
780e141