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 (#3)
Verified signature- Update chatNT.py (94f611d6d404ad9fe26c0dcd8ed5ad55f4bed639)862ba01 -
Update chatNT.py
Verified signature7b1c32a
-
Update text_generation.py
Verified signature9ca04b0 -
Update chatNT.py
Verified signature6ed7d0b
-
Update chatNT.py
Verified signature18c36cb -
Update chatNT.py
Verified signature112bf64 -
Update chatNT.py
Verified signature6d6a20f -
Update chatNT.py
Verified signature3bd05b8 -
Update text_generation.py
Verified signatureb9b892c -
Update text_generation.py
Verified signature5b49149
-
Update README.md
Verified signature16240df -
Update README.md
Verified signature38683f4 -
Update README.md
Verified signatureefc34b9 -
Update text_generation.py
Verified signature4c6ceaf -
Add license
Verified signature64e9b18 -
Add LICENSE
Verified signature4248ed3
-
Update config.json
Verified signature09222e6 -
Upload model
Verified signature03e9d8a -
Delete model.safetensors.index.json
Verified signature9df085d -
Delete chatNT.py
Verified signature5d37fe8 -
Delete model-00004-of-00004.safetensors
Verified signature57e9187 -
Delete model-00003-of-00004.safetensors
Verified signature76d811a -
Delete model-00002-of-00004.safetensors
Verified signature17021b1 -
Delete model-00001-of-00004.safetensors
Verified signaturede91e3c -
Update README.md
Verified signature2116ede
-
Update README.md
Verified signaturee682196
-
Update README.md
Verified signature20b65fe -
Delete Datasets_overview.tsv
Verified signature7064526 -
Upload Datasets_overview.tsv
Verified signature4e1f10f -
Upload Datasets_overview.csv
Verified signaturee6b978f -
Update README.md
Verified signature4bfdead
-
Update README.md
Verified signature9f87e41 -
Upload text_generation.py
Verified signature45667ce -
Update config.json
Verified signature36fb493 -
Upload model
93927ba -
Update README.md
57943d9 -
Update README.md
4f64cd9
-
Update README.md
fa121ee -
Update README.md
1bfd68c -
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