Instructions to use Skywork/Skywork-13B-Math with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Skywork/Skywork-13B-Math with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Skywork/Skywork-13B-Math", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Skywork/Skywork-13B-Math", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Skywork/Skywork-13B-Math with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Skywork/Skywork-13B-Math" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Skywork/Skywork-13B-Math", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Skywork/Skywork-13B-Math
- SGLang
How to use Skywork/Skywork-13B-Math 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 "Skywork/Skywork-13B-Math" \ --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": "Skywork/Skywork-13B-Math", "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 "Skywork/Skywork-13B-Math" \ --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": "Skywork/Skywork-13B-Math", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Skywork/Skywork-13B-Math with Docker Model Runner:
docker model run hf.co/Skywork/Skywork-13B-Math
liang.zhao commited on
Commit ·
410aec1
1
Parent(s): 1094366
update model and config
Browse files- .gitattributes +53 -0
- pytorch_model-00015-of-00053.bin +2 -2
.gitattributes
CHANGED
|
@@ -40,3 +40,56 @@ misc/chat_demo_1.gif filter=lfs diff=lfs merge=lfs -text
|
|
| 40 |
misc/chat_demo_2.gif filter=lfs diff=lfs merge=lfs -text
|
| 41 |
misc/chat_demo_3.gif filter=lfs diff=lfs merge=lfs -text
|
| 42 |
>>>>>>> ada1759008db8bfff5cdbdc515b984ee2baf4579
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
misc/chat_demo_2.gif filter=lfs diff=lfs merge=lfs -text
|
| 41 |
misc/chat_demo_3.gif filter=lfs diff=lfs merge=lfs -text
|
| 42 |
>>>>>>> ada1759008db8bfff5cdbdc515b984ee2baf4579
|
| 43 |
+
pytorch_model-00010-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
pytorch_model-00015-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
pytorch_model-00017-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
pytorch_model-00049-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
pytorch_model-00016-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
pytorch_model-00022-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
pytorch_model-00050-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
pytorch_model-00005-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
pytorch_model-00013-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
pytorch_model-00037-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
pytorch_model-00002-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
pytorch_model-00018-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
pytorch_model-00024-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
pytorch_model-00034-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
pytorch_model-00038-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
pytorch_model-00046-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
pytorch_model-00023-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
pytorch_model-00031-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
pytorch_model-00048-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
pytorch_model-00051-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
pytorch_model-00039-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
pytorch_model-00012-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
pytorch_model-00001-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
pytorch_model-00029-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
pytorch_model-00027-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
pytorch_model-00014-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
pytorch_model-00020-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
pytorch_model-00036-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
pytorch_model-00044-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
pytorch_model-00006-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
pytorch_model-00021-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
pytorch_model-00030-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
pytorch_model-00043-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
pytorch_model-00007-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
pytorch_model-00047-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
pytorch_model-00028-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
pytorch_model-00011-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
pytorch_model-00004-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
pytorch_model-00019-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
pytorch_model-00025-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
pytorch_model-00026-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
pytorch_model-00033-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
pytorch_model-00003-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
pytorch_model-00041-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
pytorch_model-00035-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 88 |
+
pytorch_model-00052-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
pytorch_model-00053-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
pytorch_model-00040-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 91 |
+
pytorch_model-00009-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 92 |
+
pytorch_model-00032-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 93 |
+
pytorch_model-00042-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 94 |
+
pytorch_model-00008-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
| 95 |
+
pytorch_model-00045-of-00053.bin filter=lfs diff=lfs merge=lfs -text
|
pytorch_model-00015-of-00053.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:77639fdc39e85982cdffb9d6bddbe7ecef43bbd3cecd9ec3c833ad3257365593
|
| 3 |
+
size 509630258
|