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
-
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 -
Delete multi_omics_model.py
d8365d8 -
Delete chatNT_config.py
7974b5e -
Upload model
76813c2
-
Upload model
55bbd6f -
Update README.md
d58e932 -
Update README.md
8aa2191 -
Rename tokenizer_config.json to english_tokenizer/tokenizer_config.json
eed507c -
Rename tokenizer.model to english_tokenizer/tokenizer.model
227aaf5 -
Rename tokenizer.json to english_tokenizer/tokenizer.json
021924b -
Rename special_tokens_map.json to english_tokenizer/special_tokens_map.json
446ebf4 -
Rename added_tokens.json to english_tokenizer/added_tokens.json
10e2e05