Instructions to use Tele-AI/TeleChat-52B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tele-AI/TeleChat-52B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Tele-AI/TeleChat-52B", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Tele-AI/TeleChat-52B", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Tele-AI/TeleChat-52B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Tele-AI/TeleChat-52B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Tele-AI/TeleChat-52B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Tele-AI/TeleChat-52B
- SGLang
How to use Tele-AI/TeleChat-52B 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 "Tele-AI/TeleChat-52B" \ --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": "Tele-AI/TeleChat-52B", "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 "Tele-AI/TeleChat-52B" \ --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": "Tele-AI/TeleChat-52B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Tele-AI/TeleChat-52B with Docker Model Runner:
docker model run hf.co/Tele-AI/TeleChat-52B
upload
Browse files- pytorch_model-00003-of-00011.bin +3 -0
- pytorch_model-00004-of-00011.bin +3 -0
- pytorch_model-00005-of-00011.bin +3 -0
- pytorch_model-00006-of-00011.bin +3 -0
- pytorch_model-00007-of-00011.bin +3 -0
- pytorch_model-00008-of-00011.bin +3 -0
- pytorch_model-00009-of-00011.bin +3 -0
- pytorch_model-00010-of-00011.bin +3 -0
- pytorch_model-00011-of-00011.bin +3 -0
pytorch_model-00003-of-00011.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1016efbe1ef44c6a7ebf33240171dd330376365e1fd056a0b43af6ec87f16742
|
| 3 |
+
size 9657595499
|
pytorch_model-00004-of-00011.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2cbd36204636fc6b09be4a12bd419198631626699e3c8affad907ed2f804f68
|
| 3 |
+
size 9657595499
|
pytorch_model-00005-of-00011.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:16ee165b591af1c8d8c8fd50d793b5e0007bab2907cc75fb06080dd07e11084e
|
| 3 |
+
size 9657595499
|
pytorch_model-00006-of-00011.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2693abdc5475f80520ef80eee15cb496e4fde88e26988a573188e7504fe63de3
|
| 3 |
+
size 9657595499
|
pytorch_model-00007-of-00011.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6893403662e97399a845f4504961c5f2c1e76020a735e086ed4d76f72331c2a4
|
| 3 |
+
size 9657595499
|
pytorch_model-00008-of-00011.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e448f718b2d6f450001969546078f6e5822e98e991744f7fc105d68e045a7c55
|
| 3 |
+
size 9657595499
|
pytorch_model-00009-of-00011.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6a0a05fc3e19adae3de7e45716fcf65a4be58f703c0ad955ad11d3a8f28f7f6
|
| 3 |
+
size 9657595499
|
pytorch_model-00010-of-00011.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22d3d40e19e3f600c8db81c41cef0f67eac914ce59d07ef6d35c65b2105cc85d
|
| 3 |
+
size 9657595499
|
pytorch_model-00011-of-00011.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61974751523cfcdfafbd27281bfaa7818f7ab4f6b18962f9a5d634059803c82a
|
| 3 |
+
size 8836507903
|