Instructions to use SUSTech/SUS-Chat-34B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SUSTech/SUS-Chat-34B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SUSTech/SUS-Chat-34B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SUSTech/SUS-Chat-34B") model = AutoModelForCausalLM.from_pretrained("SUSTech/SUS-Chat-34B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SUSTech/SUS-Chat-34B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SUSTech/SUS-Chat-34B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SUSTech/SUS-Chat-34B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SUSTech/SUS-Chat-34B
- SGLang
How to use SUSTech/SUS-Chat-34B 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 "SUSTech/SUS-Chat-34B" \ --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": "SUSTech/SUS-Chat-34B", "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 "SUSTech/SUS-Chat-34B" \ --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": "SUSTech/SUS-Chat-34B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SUSTech/SUS-Chat-34B with Docker Model Runner:
docker model run hf.co/SUSTech/SUS-Chat-34B
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,17 +1,34 @@
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
-
license_name: yi
|
| 4 |
-
license_link:
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
Powered by SUSTech x IDEA-CCNL, based on `01-ai/Yi-34B`.
|
|
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
+
license_name: yi-license
|
| 4 |
+
license_link: LICENSE
|
| 5 |
+
widget:
|
| 6 |
+
- example_title: Yi-34B-Chat
|
| 7 |
+
text: hi
|
| 8 |
+
output:
|
| 9 |
+
text: ' Hello! How can I assist you today?'
|
| 10 |
+
- example_title: Yi-34B
|
| 11 |
+
text: >-
|
| 12 |
+
There's a place where time stands still. A place of breath taking wonder,
|
| 13 |
+
but also
|
| 14 |
+
output:
|
| 15 |
+
text: >2-
|
| 16 |
+
an eerie sense that something is just not right…
|
| 17 |
+
Between the two worlds lies The Forgotten Kingdom - home to creatures
|
| 18 |
+
long since thought extinct and ancient magic so strong it defies belief!
|
| 19 |
+
Only here can you find what has been lost for centuries: An Elixir Of
|
| 20 |
+
Life which will restore youth and vitality if only those who seek its
|
| 21 |
+
power are brave enough to face up against all manner of dangers lurking
|
| 22 |
+
in this mysterious land! But beware; some say there may even exist
|
| 23 |
+
powerful entities beyond our comprehension whose intentions towards
|
| 24 |
+
humanity remain unclear at best ---- they might want nothing more than
|
| 25 |
+
destruction itself rather then anything else from their quest after
|
| 26 |
+
immortality (and maybe someone should tell them about modern medicine)?
|
| 27 |
+
In any event though – one thing remains true regardless : whether or not
|
| 28 |
+
success comes easy depends entirely upon how much effort we put into
|
| 29 |
+
conquering whatever challenges lie ahead along with having faith deep
|
| 30 |
+
down inside ourselves too ;) So let’s get started now shall We?
|
| 31 |
+
pipeline_tag: text-generation
|
| 32 |
---
|
| 33 |
|
| 34 |
Powered by SUSTech x IDEA-CCNL, based on `01-ai/Yi-34B`.
|