Text Generation
Transformers
Safetensors
English
mistral
Mathematical Reasoning
text-generation-inference
Instructions to use upaya07/Arithmo2-Mistral-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use upaya07/Arithmo2-Mistral-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="upaya07/Arithmo2-Mistral-7B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("upaya07/Arithmo2-Mistral-7B") model = AutoModelForCausalLM.from_pretrained("upaya07/Arithmo2-Mistral-7B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use upaya07/Arithmo2-Mistral-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "upaya07/Arithmo2-Mistral-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "upaya07/Arithmo2-Mistral-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/upaya07/Arithmo2-Mistral-7B
- SGLang
How to use upaya07/Arithmo2-Mistral-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 "upaya07/Arithmo2-Mistral-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": "upaya07/Arithmo2-Mistral-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 "upaya07/Arithmo2-Mistral-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": "upaya07/Arithmo2-Mistral-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use upaya07/Arithmo2-Mistral-7B with Docker Model Runner:
docker model run hf.co/upaya07/Arithmo2-Mistral-7B
Update README.md
Browse files
README.md
CHANGED
|
@@ -144,11 +144,11 @@ Results for all models except `Arithmo2-Mistral-7B` are taken from [MetaMath](ht
|
|
| 144 |
| WizardMath-13B | 63.9 | 14.0 |
|
| 145 |
| MetaMath-7B | 66.5 | 19.8 |
|
| 146 |
| MetaMath-13B | 72.3 | 22.4 |
|
| 147 |
-
| Arithmo-Mistral-7B
|
| 148 |
-
|
|
| 149 |
| MetaMath-Mistral-7B | 77.7 | 28.2 | SFT: Full fine-tuned |
|
| 150 |
-
|
|
| 151 |
-
| 🔥 **Arithmo2-Mistral-7B
|
| 152 |
|
| 153 |
If you are interested in reproducing the results, visit https://github.com/akjindal53244/Arithmo#reproducing-results section.
|
| 154 |
|
|
|
|
| 144 |
| WizardMath-13B | 63.9 | 14.0 |
|
| 145 |
| MetaMath-7B | 66.5 | 19.8 |
|
| 146 |
| MetaMath-13B | 72.3 | 22.4 |
|
| 147 |
+
| Arithmo-Mistral-7B (PoT) | 71.2 | -- | SFT: 4-bit QLoRA |
|
| 148 |
+
| Arithmo2-Mistral-7B (PoT) | 74.2 | -- | SFT: 4-bit QLoRA |
|
| 149 |
| MetaMath-Mistral-7B | 77.7 | 28.2 | SFT: Full fine-tuned |
|
| 150 |
+
| Arithmo-Mistral-7B| 74.7 | 25.3 | SFT: 4-bit QLoRA |
|
| 151 |
+
| 🔥 **Arithmo2-Mistral-7B** | **76.4** | **27.2** | **SFT: 4-bit QLoRA** |
|
| 152 |
|
| 153 |
If you are interested in reproducing the results, visit https://github.com/akjindal53244/Arithmo#reproducing-results section.
|
| 154 |
|