Instructions to use chen-hao-chao/mdm-prime with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chen-hao-chao/mdm-prime with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="chen-hao-chao/mdm-prime")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("chen-hao-chao/mdm-prime", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use chen-hao-chao/mdm-prime with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "chen-hao-chao/mdm-prime" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "chen-hao-chao/mdm-prime", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/chen-hao-chao/mdm-prime
- SGLang
How to use chen-hao-chao/mdm-prime 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 "chen-hao-chao/mdm-prime" \ --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": "chen-hao-chao/mdm-prime", "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 "chen-hao-chao/mdm-prime" \ --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": "chen-hao-chao/mdm-prime", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use chen-hao-chao/mdm-prime with Docker Model Runner:
docker model run hf.co/chen-hao-chao/mdm-prime
Add files using upload-large-folder tool
Browse files- text/owt/results_ar_opt_owt/checkpoint.ckpt +3 -0
- text/owt/results_mdm_opt_owt/checkpoint.ckpt +3 -0
- text/owt/results_prime_l6_opt_owt/checkpoint.ckpt +3 -0
- text/owt/results_prime_v2_opt_c05_owt/checkpoint.ckpt +3 -0
- text/owt/results_prime_v2_opt_owt/checkpoint.ckpt +3 -0
- text/owt/results_prime_v2_owt/checkpoint.ckpt +3 -0
text/owt/results_ar_opt_owt/checkpoint.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:460bb3ae6aa217e2c865de09949395a1169304f9edaeaafb7c39d3fd44db1a27
|
| 3 |
+
size 16545998552
|
text/owt/results_mdm_opt_owt/checkpoint.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3519e06606fdb462ec1a9e8439f2823ffb14c7b8ea154557283ed0bec62321a4
|
| 3 |
+
size 7650304581
|
text/owt/results_prime_l6_opt_owt/checkpoint.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac05e71ed874a420f90fb232e32c55a5c4113bc7dd19efc3d2d1975b365115c7
|
| 3 |
+
size 5319943563
|
text/owt/results_prime_v2_opt_c05_owt/checkpoint.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c5f44fb6ef0f6460b7e35352161567bb658e0ec8780fc5d7f95dc5d770c1b8a0
|
| 3 |
+
size 5324451449
|
text/owt/results_prime_v2_opt_owt/checkpoint.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f282221a98e5266bc779d04d4cd5880176067f5c22d1e30238a463ec2738a95
|
| 3 |
+
size 5323719481
|
text/owt/results_prime_v2_owt/checkpoint.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca23fd3130224f3dd07daa3d335994f519a819d93a640caa8fe7a6e31afff565
|
| 3 |
+
size 2107825424
|