Instructions to use kuanhuggingface/speech-chatpgpt-base-nar-only-codec-scratch 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-codec-scratch 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-codec-scratch")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("kuanhuggingface/speech-chatpgpt-base-nar-only-codec-scratch") model = AutoModelForSeq2SeqLM.from_pretrained("kuanhuggingface/speech-chatpgpt-base-nar-only-codec-scratch", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kuanhuggingface/speech-chatpgpt-base-nar-only-codec-scratch 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-codec-scratch" # 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-codec-scratch", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kuanhuggingface/speech-chatpgpt-base-nar-only-codec-scratch
- SGLang
How to use kuanhuggingface/speech-chatpgpt-base-nar-only-codec-scratch 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-codec-scratch" \ --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-codec-scratch", "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-codec-scratch" \ --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-codec-scratch", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kuanhuggingface/speech-chatpgpt-base-nar-only-codec-scratch with Docker Model Runner:
docker model run hf.co/kuanhuggingface/speech-chatpgpt-base-nar-only-codec-scratch
Commit History
-
Training in progress, step 730000
cd93ae8 -
Training in progress, step 720000
145003a -
Training in progress, step 710000
43df57f -
Training in progress, step 700000
6a45b17
-
Training in progress, step 690000
ce717f3 -
Training in progress, step 680000
0597fce -
Training in progress, step 670000
37ac3ae -
Training in progress, step 660000
220f797 -
Training in progress, step 650000
a51724e -
Training in progress, step 640000
d516b22 -
Training in progress, step 630000
206a73e -
Training in progress, step 620000
5d258dc
-
Training in progress, step 610000
f44367b -
Training in progress, step 600000
dc9a5f2 -
Training in progress, step 590000
afd40c1 -
Training in progress, step 580000
e7ea26d -
Training in progress, step 570000
8754d23 -
Training in progress, step 560000
c01e373 -
Training in progress, step 550000
0253c11
-
Training in progress, step 540000
0370768 -
Training in progress, step 530000
a949b67 -
Training in progress, step 520000
a8020ab -
Training in progress, step 510000
27d8012 -
Training in progress, step 500000
72dad69 -
Training in progress, step 490000
3fb39a1 -
Training in progress, step 480000
4f59a61 -
Training in progress, step 470000
32588b9
-
Training in progress, step 460000
af43beb -
Training in progress, step 450000
a47f13b -
Training in progress, step 440000
b8099c4 -
Training in progress, step 430000
517b362 -
Training in progress, step 420000
49ed58d -
Training in progress, step 410000
33d0e89 -
Training in progress, step 400000
7c96d4c -
Training in progress, step 390000
e645d59
-
Training in progress, step 380000
7d9ea74 -
Training in progress, step 370000
0ddbdb2 -
Training in progress, step 360000
a12ee9e -
Training in progress, step 350000
439765c -
Training in progress, step 340000
db4b483 -
Training in progress, step 330000
18d76ea -
Training in progress, step 320000
fbe103d
-
Training in progress, step 310000
fd85710 -
Training in progress, step 300000
5774afe -
Training in progress, step 290000
00090c8 -
Training in progress, step 280000
aa4b1e8 -
Training in progress, step 270000
36bb402 -
Training in progress, step 260000
83e4135
-
Training in progress, step 250000
9ef0e0f -
Training in progress, step 240000
4f9701f