Instructions to use WizardLMTeam/WizardMath-70B-V1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WizardLMTeam/WizardMath-70B-V1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WizardLMTeam/WizardMath-70B-V1.0")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("WizardLMTeam/WizardMath-70B-V1.0") model = AutoModelForCausalLM.from_pretrained("WizardLMTeam/WizardMath-70B-V1.0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use WizardLMTeam/WizardMath-70B-V1.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WizardLMTeam/WizardMath-70B-V1.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WizardLMTeam/WizardMath-70B-V1.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/WizardLMTeam/WizardMath-70B-V1.0
- SGLang
How to use WizardLMTeam/WizardMath-70B-V1.0 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 "WizardLMTeam/WizardMath-70B-V1.0" \ --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": "WizardLMTeam/WizardMath-70B-V1.0", "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 "WizardLMTeam/WizardMath-70B-V1.0" \ --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": "WizardLMTeam/WizardMath-70B-V1.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use WizardLMTeam/WizardMath-70B-V1.0 with Docker Model Runner:
docker model run hf.co/WizardLMTeam/WizardMath-70B-V1.0
Commit History
-
Update README.md
4dd9f3f
-
Update README.md
d210fc2
-
Update README.md (#13)
- Update README.md (deb76d3208038d03d2524b297bdafea3007fffee) Co-authored-by: haipengluo <haipeng1@users.noreply.huggingface.co>e089c3f -
Update README.md (#12)
- Update README.md (93cdade9e5b445c42eb0d0dc669f322568f4fdb4) Co-authored-by: haipengluo <haipeng1@users.noreply.huggingface.co>3431179 -
upload tokenizer model (#11)
- upload tokenizer model (3daf29892406beeaf2b0af70f38b41a5ebe7049b) Co-authored-by: haipengluo <haipeng1@users.noreply.huggingface.co>c24fd5c
-
Update README.md (#10)
- Update README.md (e142ff57c8b3f31275c3e5343bae8945785dd7d9) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>4728a48
-
Update README.md (#9)
- Update README.md (f75519daa690e254383844aacf9c5fbf3da9b346) Co-authored-by: haipengluo <haipeng1@users.noreply.huggingface.co>183003c -
Update README.md (#8)
- Update README.md (2c9b0a4a1f0ac66968c2c9e3e8b1cf39de39bdd8) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>0eed5b1 -
Update README.md
086ee95
-
Update README.md (#7)
- Update README.md (d3d5db9021c0d9ae6e3892a60cc09ab7047157e8) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>ec0d247
-
Update README.md (#5)
- Update README.md (c95268dbd2201173fd649fabbf98917c58633dbf) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>f5d1c3b -
Update README.md (#6)
- Update README.md (9edf1b0fff48b59f047056b63c3f66e44886745a) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>cfbdb8c
-
Update README.md
0449e37
-
Update README.md
264d39f -
Update README.md
7e93e9c
-
update_url (#2)
- update_url (39cf2bcdc3796c022510624788c3d99c49efad57) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>8823afe
-
Update README.md
a85fcdf -
Update README.md
d3ad8d7 -
update_url (#1)
- update_url (2af3bec64e45f2053801567e24b7a20d040e2941) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>6ab9adc
-
Update README.md
cf6c2ab -
Update README.md
482ff2d -
Update README.md
12cd469 -
Update README.md
5aaed74 -
Update README.md
9fe34a5 -
Update README.md
3b411d7 -
Update README.md
97e5913
-
Update README.md
e85b43e -
Update README.md
9e1374d -
70B
4ef3a3b -
initial commit
c92e703