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")# 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") - 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,55 @@
|
|
| 1 |
---
|
| 2 |
license: llama2
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: llama2
|
| 3 |
---
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
## WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instruct
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
<p align="center">
|
| 11 |
+
🤗 <a href="https://huggingface.co/WizardLM" target="_blank">HF Repo</a> • 🐦 <a href="https://twitter.com/WizardLM_AI" target="_blank">Twitter</a> • 📃 <a href="https://arxiv.org/abs/2304.12244" target="_blank">[WizardLM]</a> • 📃 <a href="https://arxiv.org/abs/2306.08568" target="_blank">[WizardCoder]</a> <br>
|
| 12 |
+
</p>
|
| 13 |
+
<p align="center">
|
| 14 |
+
👋 Join our <a href="https://discord.gg/bpmeZD7V" target="_blank">Discord</a>
|
| 15 |
+
</p>
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
| Model | Checkpoint | Paper | GSM8k | MATH | License|
|
| 22 |
+
| ----- |------| ---- |------|-------| ----- |
|
| 23 |
+
| WizardMath-70B-V1.0 | 🤗 <a href="https://huggingface.co/WizardLM/WizardMath-70B-V1.0" target="_blank">HF Link</a> | 📃Coming Soon| **81.6** | **22.7** | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 License </a> |
|
| 24 |
+
| WizardMath-13B-V1.0 | 🤗 <a href="https://huggingface.co/WizardLM/WizardMath-13B-V1.0" target="_blank">HF Link</a> | 📃Coming Soon| **63.9** | **14.0** | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 License </a> |
|
| 25 |
+
| WizardMath-7B-V1.0 | 🤗 <a href="https://huggingface.co/WizardLM/WizardMath-7B-V1.0" target="_blank">HF Link</a> | 📃Coming Soon| **54.9** | **10.7** | <a href="https://ai.meta.com/resources/models-and-libraries/llama-downloads/" target="_blank">Llama 2 License </a>|
|
| 26 |
+
|
| 27 |
+
**Github Repo**: https://github.com/nlpxucan/WizardLM/tree/main/WizardMath
|
| 28 |
+
|
| 29 |
+
**Twitter**:
|
| 30 |
+
|
| 31 |
+
**Discord**: https://discord.gg/bpmeZD7V
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
❗<b>Note for model system prompts usage:</b>
|
| 36 |
+
|
| 37 |
+
## CoT Version:
|
| 38 |
+
|
| 39 |
+
```
|
| 40 |
+
Below is an instruction that describes a task. Write a response that appropriately completes the request.
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
### Instruction:
|
| 44 |
+
{instruction}
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
### Response: Let's think step by step.
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
❗<b>To commen concern about dataset:</b>
|
| 51 |
+
|
| 52 |
+
Recently, there have been clear changes in the open-source policy and regulations of our overall organization's code, data, and models.
|
| 53 |
+
Despite this, we have still worked hard to obtain opening the weights of the model first, but the data involves stricter auditing and is in review with our legal team .
|
| 54 |
+
Our researchers have no authority to publicly release them without authorization.
|
| 55 |
+
Thank you for your understanding.
|