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 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 -
Update tokenizer_config.json
5c021e5 -
Delete english_tokenizer/tokenizer_config.json
1a5dedc -
Delete english_tokenizer/tokenizer.model
0f53cf8 -
Delete english_tokenizer/tokenizer.json
8a1bcb1 -
Delete english_tokenizer/special_tokens_map.json
05baeb7 -
Delete english_tokenizer/added_tokens.json
56988b8 -
Upload tokenizer
23593cc -
Rename vocab.txt to bio_tokenizer/vocab.txt
8373d3a -
Rename tokenizer_config.json to bio_tokenizer/tokenizer_config.json
442f26d -
Rename special_tokens_map.json to bio_tokenizer/special_tokens_map.json
f3b2d0c -
Delete bio_tokenizer/tokenizer_config.json
d9a43a4 -
Delete bio_tokenizer/special_tokens_map.json
0c01692 -
Upload tokenizer
36d22c0 -
Rename tokenizer_config.json to bio_tokenizer/tokenizer_config.json
047d9f0 -
Rename special_tokens_map.json to bio_tokenizer/special_tokens_map.json
d21033e -
Upload tokenizer
f6cc8ed -
Delete vocab.txt
ca4094b -
Delete tokenizer_config.json
ffa285d -
Delete tokenizer.json
afd8188 -
Delete special_tokens_map.json
517659c -
Upload tokenizer
d432752 -
Upload folder using huggingface_hub
aab04dd -
Rename special_tokens_map.json to english_tokenizer/special_tokens_map.json
c779b0b