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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Mathoctopus/Parallel_7B") model = AutoModelForCausalLM.from_pretrained("Mathoctopus/Parallel_7B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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 files14 unmodified lines151617181920111 unmodified lines13213313413514 unmodified lines- bn---### IntroductionWe 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.111 unmodified lines| MathOctopus<sup>C</sup>-33B | 53.7 | 51.5 |## Intended UsesThese 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.14 unmodified lines1516171819202122232425262728111 unmodified lines14014114214314414514614714814915015115215315415515615714 unmodified lines- bn---# ๐ Breaking Language Barriers in Multilingual Mathematical Reasoning: Insights and ObservationsProject Page: [https://mathoctopus.github.io/](https://mathoctopus.github.io/)Paper: [https://arxiv.org/abs/2310.20246.pdf](https://arxiv.org/abs/2310.20246.pdf)Code: [https://github.com/microsoft/MathOctopus](https://github.com/microsoft/MathOctopus)### IntroductionWe 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.111 unmodified lines| MathOctopus<sup>C</sup>-33B | 53.7 | 51.5 |## Intended UsesThese 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.## CitationPlease cite our paper if you use our data, model or code. Please also kindly cite the original dataset papers.```@misc{chen2023breaking,title={Breaking Language Barriers in Multilingual Mathematical Reasoning: Insights and Observations},author={Nuo Chen and Zinan Zheng and Ning Wu and Linjun Shou and Ming Gong and Yangqiu Song and Dongmei Zhang and Jia Li},year={2023},eprint={2310.20246},archivePrefix={arXiv},primaryClass={cs.CL}}```
README.md+23-1