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
d3d5db9
-
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