Text Generation
Transformers
Safetensors
mistral
meta-math/MetaMath-Mistral-7B
mistralai/Mistral-7B-v0.1
EmbeddedLLM/Mistral-7B-Merge-14-v0.2
text-generation-inference
Instructions to use Ritik009999/mathexpert7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ritik009999/mathexpert7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ritik009999/mathexpert7b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ritik009999/mathexpert7b") model = AutoModelForCausalLM.from_pretrained("Ritik009999/mathexpert7b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ritik009999/mathexpert7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ritik009999/mathexpert7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ritik009999/mathexpert7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ritik009999/mathexpert7b
- SGLang
How to use Ritik009999/mathexpert7b 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 "Ritik009999/mathexpert7b" \ --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": "Ritik009999/mathexpert7b", "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 "Ritik009999/mathexpert7b" \ --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": "Ritik009999/mathexpert7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Ritik009999/mathexpert7b with Docker Model Runner:
docker model run hf.co/Ritik009999/mathexpert7b
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,9 +1,6 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
tags:
|
| 4 |
-
- merge
|
| 5 |
-
- mergekit
|
| 6 |
-
- lazymergekit
|
| 7 |
- meta-math/MetaMath-Mistral-7B
|
| 8 |
- mistralai/Mistral-7B-v0.1
|
| 9 |
- EmbeddedLLM/Mistral-7B-Merge-14-v0.2
|
|
@@ -11,33 +8,9 @@ tags:
|
|
| 11 |
|
| 12 |
# mathexpert7b
|
| 13 |
|
| 14 |
-
mathexpert7b is a merge of the following models
|
| 15 |
* [meta-math/MetaMath-Mistral-7B](https://huggingface.co/meta-math/MetaMath-Mistral-7B)
|
| 16 |
* [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1)
|
| 17 |
* [EmbeddedLLM/Mistral-7B-Merge-14-v0.2](https://huggingface.co/EmbeddedLLM/Mistral-7B-Merge-14-v0.2)
|
| 18 |
|
| 19 |
-
## 🧩 Configuration
|
| 20 |
-
|
| 21 |
-
```yaml
|
| 22 |
-
models:
|
| 23 |
-
- model: mistralai/Mistral-7B-v0.1
|
| 24 |
-
# No parameters necessary for base model
|
| 25 |
-
- model: meta-math/MetaMath-Mistral-7B
|
| 26 |
-
parameters:
|
| 27 |
-
density: 0.53
|
| 28 |
-
weight: 0.4
|
| 29 |
-
- model: mistralai/Mistral-7B-v0.1
|
| 30 |
-
parameters:
|
| 31 |
-
density: 0.53
|
| 32 |
-
weight: 0.3
|
| 33 |
-
- model: EmbeddedLLM/Mistral-7B-Merge-14-v0.2
|
| 34 |
-
parameters:
|
| 35 |
-
density: 0.53
|
| 36 |
-
weight: 0.3
|
| 37 |
-
merge_method: dare_ties
|
| 38 |
-
base_model: mistralai/Mistral-7B-v0.1
|
| 39 |
-
parameters:
|
| 40 |
-
int8_mask: true
|
| 41 |
-
dtype: bfloat16
|
| 42 |
-
|
| 43 |
```
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
tags:
|
|
|
|
|
|
|
|
|
|
| 4 |
- meta-math/MetaMath-Mistral-7B
|
| 5 |
- mistralai/Mistral-7B-v0.1
|
| 6 |
- EmbeddedLLM/Mistral-7B-Merge-14-v0.2
|
|
|
|
| 8 |
|
| 9 |
# mathexpert7b
|
| 10 |
|
| 11 |
+
mathexpert7b is a merge of the following models further aligned by Direct preference optimization.
|
| 12 |
* [meta-math/MetaMath-Mistral-7B](https://huggingface.co/meta-math/MetaMath-Mistral-7B)
|
| 13 |
* [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1)
|
| 14 |
* [EmbeddedLLM/Mistral-7B-Merge-14-v0.2](https://huggingface.co/EmbeddedLLM/Mistral-7B-Merge-14-v0.2)
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
```
|