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 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 -
Rename tokenizer_config.json to english_tokenizer/tokenizer_config.json
6e86071 -
Rename tokenizer.model to english_tokenizer/tokenizer.model
cac0bdc -
Rename tokenizer.json to english_tokenizer/tokenizer.json
0f0c644 -
Rename added_tokens.json to english_tokenizer/added_tokens.json
058ea56 -
Upload tokenizer
9654d01
-
initial commit
140befc