Instructions to use kuanhuggingface/speech-chatpgpt-base-nar-only-codec2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kuanhuggingface/speech-chatpgpt-base-nar-only-codec2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kuanhuggingface/speech-chatpgpt-base-nar-only-codec2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("kuanhuggingface/speech-chatpgpt-base-nar-only-codec2") model = AutoModelForSeq2SeqLM.from_pretrained("kuanhuggingface/speech-chatpgpt-base-nar-only-codec2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kuanhuggingface/speech-chatpgpt-base-nar-only-codec2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kuanhuggingface/speech-chatpgpt-base-nar-only-codec2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kuanhuggingface/speech-chatpgpt-base-nar-only-codec2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kuanhuggingface/speech-chatpgpt-base-nar-only-codec2
- SGLang
How to use kuanhuggingface/speech-chatpgpt-base-nar-only-codec2 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 "kuanhuggingface/speech-chatpgpt-base-nar-only-codec2" \ --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": "kuanhuggingface/speech-chatpgpt-base-nar-only-codec2", "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 "kuanhuggingface/speech-chatpgpt-base-nar-only-codec2" \ --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": "kuanhuggingface/speech-chatpgpt-base-nar-only-codec2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kuanhuggingface/speech-chatpgpt-base-nar-only-codec2 with Docker Model Runner:
docker model run hf.co/kuanhuggingface/speech-chatpgpt-base-nar-only-codec2
Commit History
-
Training in progress, step 730000
27d2dad -
Training in progress, step 720000
117b231 -
Training in progress, step 710000
f49f1dc
-
Training in progress, step 700000
9bf65d0 -
Training in progress, step 690000
e7429b6 -
Training in progress, step 680000
073a62d -
Training in progress, step 670000
8925f74 -
Training in progress, step 660000
4881ddf -
Training in progress, step 650000
72cc381 -
Training in progress, step 640000
476b70a
-
Training in progress, step 630000
c80f193 -
Training in progress, step 620000
f006aad -
Training in progress, step 610000
633c84a -
Training in progress, step 600000
c247004 -
Training in progress, step 590000
e5eee00 -
Training in progress, step 580000
3c6bb8b
-
Training in progress, step 570000
5bc28b6 -
Training in progress, step 560000
779e56a -
Training in progress, step 550000
8052891 -
Training in progress, step 540000
b91efb9 -
Training in progress, step 530000
7afd2a6 -
Training in progress, step 520000
4f2c038
-
Training in progress, step 510000
4d09ced -
Training in progress, step 500000
2ec08dd -
Training in progress, step 490000
c32dca9 -
Training in progress, step 480000
81cf5d1 -
Training in progress, step 470000
0435f16 -
Training in progress, step 460000
dffc9c0
-
Training in progress, step 450000
f710a28 -
Training in progress, step 440000
b25d298 -
Training in progress, step 430000
a50f9f5 -
Training in progress, step 420000
1bc555a -
Training in progress, step 410000
559a579 -
Training in progress, step 400000
170e9c5
-
Training in progress, step 390000
d3f7793 -
Training in progress, step 380000
a524b1e -
Training in progress, step 370000
e4eb880 -
Training in progress, step 360000
90c525d -
Training in progress, step 350000
37b362b -
Training in progress, step 340000
317454e -
Training in progress, step 330000
6887c72
-
Training in progress, step 320000
8fb6931 -
Training in progress, step 310000
8a9145e -
Training in progress, step 300000
43ed9d8 -
Training in progress, step 290000
5933e9a -
Training in progress, step 280000
4c0614e -
Training in progress, step 270000
4af2e7d
-
Training in progress, step 260000
c41803f -
Training in progress, step 250000
35781e4 -
Training in progress, step 240000
47cfd6d