Instructions to use RUCAIBox/mtl-open-dialog with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RUCAIBox/mtl-open-dialog with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RUCAIBox/mtl-open-dialog") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("RUCAIBox/mtl-open-dialog", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use RUCAIBox/mtl-open-dialog with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RUCAIBox/mtl-open-dialog" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RUCAIBox/mtl-open-dialog", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RUCAIBox/mtl-open-dialog
- SGLang
How to use RUCAIBox/mtl-open-dialog 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 "RUCAIBox/mtl-open-dialog" \ --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": "RUCAIBox/mtl-open-dialog", "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 "RUCAIBox/mtl-open-dialog" \ --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": "RUCAIBox/mtl-open-dialog", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use RUCAIBox/mtl-open-dialog with Docker Model Runner:
docker model run hf.co/RUCAIBox/mtl-open-dialog
Commit ·
bf39b60
1
Parent(s): f551f2b
Update vocab
Browse files- added_tokens.json +4 -0
- tokenizer.json +0 -18
- vocab.json +0 -0
added_tokens.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"[SEP]": 50265,
|
| 3 |
+
"[X_SEP]": 50266
|
| 4 |
+
}
|
tokenizer.json
CHANGED
|
@@ -47,24 +47,6 @@
|
|
| 47 |
"rstrip": false,
|
| 48 |
"normalized": false,
|
| 49 |
"special": true
|
| 50 |
-
},
|
| 51 |
-
{
|
| 52 |
-
"id": 50265,
|
| 53 |
-
"content": "[SEP]",
|
| 54 |
-
"single_word": false,
|
| 55 |
-
"lstrip": true,
|
| 56 |
-
"rstrip": false,
|
| 57 |
-
"normalized": false,
|
| 58 |
-
"special": false
|
| 59 |
-
},
|
| 60 |
-
{
|
| 61 |
-
"id": 50266,
|
| 62 |
-
"content": "[X_SEP]",
|
| 63 |
-
"single_word": false,
|
| 64 |
-
"lstrip": true,
|
| 65 |
-
"rstrip": false,
|
| 66 |
-
"normalized": false,
|
| 67 |
-
"special": false
|
| 68 |
}
|
| 69 |
],
|
| 70 |
"normalizer": null,
|
|
|
|
| 47 |
"rstrip": false,
|
| 48 |
"normalized": false,
|
| 49 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
}
|
| 51 |
],
|
| 52 |
"normalizer": null,
|
vocab.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|