Instructions to use InstaDeepAI/ChatNT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use InstaDeepAI/ChatNT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="InstaDeepAI/ChatNT", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("InstaDeepAI/ChatNT", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use InstaDeepAI/ChatNT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "InstaDeepAI/ChatNT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InstaDeepAI/ChatNT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/InstaDeepAI/ChatNT
- SGLang
How to use InstaDeepAI/ChatNT 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 "InstaDeepAI/ChatNT" \ --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": "InstaDeepAI/ChatNT", "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 "InstaDeepAI/ChatNT" \ --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": "InstaDeepAI/ChatNT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use InstaDeepAI/ChatNT with Docker Model Runner:
docker model run hf.co/InstaDeepAI/ChatNT
Commit History
-
Update README.md
68ddf4b -
Upload params.joblib
1c054f3
-
Update README.md
20f146a -
Update chatNT.py
ba069f0 -
Update chatNT.py
02765e9 -
Update chatNT.py
c7e0039 -
Update chatNT.py
b2795d5 -
Update chatNT.py
b54a5dd
-
Upload model
64c0358 -
Update README.md
386475b -
Delete config.json
25d9dcb -
Delete model.safetensors.index.json
d41b0ec -
Delete chatNT.py
6535c3d -
Update chatNT.py
d31120f -
Update chatNT.py
d91714f -
Update chatNT.py
c4e3377 -
Update chatNT.py
13dcc57 -
Update chatNT.py
0c3bab2 -
Update chatNT.py
579bdca -
Update chatNT.py
c22355f -
Update chatNT.py
60edd4e -
Update chatNT.py
93a5c8c -
Update chatNT.py
3f5d1dc
-
Update chatNT.py
ab017bf -
Update chatNT.py
f4d5754 -
Update chatNT.py
5504a90 -
Update README.md
48b363d -
Update README.md
6e89c52
-
Update README.md
884a74d -
Update README.md
8e2b835 -
Update chatNT.py
3279d7a -
Update chatNT.py
05a712b -
Update chatNT.py
2164e14 -
Update chatNT.py
e98c2c7 -
Update chatNT.py
bdfd38c -
Update chatNT.py
c11bede -
Update chatNT.py
8f1087e -
Update chatNT.py
80a78d5 -
Update chatNT.py
8d737ee -
Update chatNT.py
6b068b7 -
Update chatNT.py
90ee200 -
Update chatNT.py
95e1897 -
Update chatNT.py
6acf14e -
Update chatNT.py
62d7c58 -
Upload model
7ce7cf9 -
Update README.md
7010ff2 -
Upload model
39f4cde -
Delete config.json
ef46589 -
Delete chatNT.py
264c5fd -
Delete model.safetensors.index.json
657ebbe