Instructions to use Mathoctopus/Parallel_7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mathoctopus/Parallel_7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Mathoctopus/Parallel_7B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Mathoctopus/Parallel_7B") model = AutoModelForCausalLM.from_pretrained("Mathoctopus/Parallel_7B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Mathoctopus/Parallel_7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Mathoctopus/Parallel_7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Mathoctopus/Parallel_7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Mathoctopus/Parallel_7B
- SGLang
How to use Mathoctopus/Parallel_7B 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 "Mathoctopus/Parallel_7B" \ --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": "Mathoctopus/Parallel_7B", "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 "Mathoctopus/Parallel_7B" \ --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": "Mathoctopus/Parallel_7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Mathoctopus/Parallel_7B with Docker Model Runner:
docker model run hf.co/Mathoctopus/Parallel_7B
Commit ยท
fd84a03
1
Parent(s): fc7cda7
Update README.md
Browse files
README.md
CHANGED
|
@@ -15,6 +15,14 @@ language:
|
|
| 15 |
- bn
|
| 16 |
---
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
### Introduction
|
| 19 |
|
| 20 |
We introduce ๐ MathOctopus, a series of open-source large language models (LLMs) specifically tailored for multilingual math problem-solving. The MathOctopus models are trained on ๐ค MGSM8KInstruct Dataset, encompassing ten distinct languages.
|
|
@@ -132,4 +140,18 @@ Our dataset and models are all available at Huggingface.
|
|
| 132 |
| MathOctopus<sup>C</sup>-33B | 53.7 | 51.5 |
|
| 133 |
|
| 134 |
## Intended Uses
|
| 135 |
-
These models are trained for research purposes. They are designed to solve multilingual math problems. They can be used in educational software, tutoring systems, or any application where a solution to a math problem is needed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
- bn
|
| 16 |
---
|
| 17 |
|
| 18 |
+
# ๐ Breaking Language Barriers in Multilingual Mathematical Reasoning: Insights and Observations
|
| 19 |
+
|
| 20 |
+
Project Page: [https://mathoctopus.github.io/](https://mathoctopus.github.io/)
|
| 21 |
+
|
| 22 |
+
Paper: [https://arxiv.org/abs/2310.20246.pdf](https://arxiv.org/abs/2310.20246.pdf)
|
| 23 |
+
|
| 24 |
+
Code: [https://github.com/microsoft/MathOctopus](https://github.com/microsoft/MathOctopus)
|
| 25 |
+
|
| 26 |
### Introduction
|
| 27 |
|
| 28 |
We introduce ๐ MathOctopus, a series of open-source large language models (LLMs) specifically tailored for multilingual math problem-solving. The MathOctopus models are trained on ๐ค MGSM8KInstruct Dataset, encompassing ten distinct languages.
|
|
|
|
| 140 |
| MathOctopus<sup>C</sup>-33B | 53.7 | 51.5 |
|
| 141 |
|
| 142 |
## Intended Uses
|
| 143 |
+
These models are trained for research purposes. They are designed to solve multilingual math problems. They can be used in educational software, tutoring systems, or any application where a solution to a math problem is needed.
|
| 144 |
+
|
| 145 |
+
## Citation
|
| 146 |
+
Please cite our paper if you use our data, model or code. Please also kindly cite the original dataset papers.
|
| 147 |
+
|
| 148 |
+
```
|
| 149 |
+
@misc{chen2023breaking,
|
| 150 |
+
title={Breaking Language Barriers in Multilingual Mathematical Reasoning: Insights and Observations},
|
| 151 |
+
author={Nuo Chen and Zinan Zheng and Ning Wu and Linjun Shou and Ming Gong and Yangqiu Song and Dongmei Zhang and Jia Li},
|
| 152 |
+
year={2023},
|
| 153 |
+
eprint={2310.20246},
|
| 154 |
+
archivePrefix={arXiv},
|
| 155 |
+
primaryClass={cs.CL}
|
| 156 |
+
}
|
| 157 |
+
```
|