Text Generation
Transformers
Safetensors
English
llama
alignment-handbook
Generated from Trainer
aimo
math
conversational
text-generation-inference
Instructions to use AI-MO/NuminaMath-7B-CoT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AI-MO/NuminaMath-7B-CoT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AI-MO/NuminaMath-7B-CoT") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AI-MO/NuminaMath-7B-CoT") model = AutoModelForCausalLM.from_pretrained("AI-MO/NuminaMath-7B-CoT") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use AI-MO/NuminaMath-7B-CoT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AI-MO/NuminaMath-7B-CoT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AI-MO/NuminaMath-7B-CoT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AI-MO/NuminaMath-7B-CoT
- SGLang
How to use AI-MO/NuminaMath-7B-CoT 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 "AI-MO/NuminaMath-7B-CoT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AI-MO/NuminaMath-7B-CoT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "AI-MO/NuminaMath-7B-CoT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AI-MO/NuminaMath-7B-CoT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AI-MO/NuminaMath-7B-CoT with Docker Model Runner:
docker model run hf.co/AI-MO/NuminaMath-7B-CoT
Adding Evaluation Results
#2
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
-
base_model: deepseek-ai/deepseek-math-7b-base
|
| 4 |
tags:
|
| 5 |
- alignment-handbook
|
| 6 |
- generated_from_trainer
|
| 7 |
- aimo
|
| 8 |
- math
|
|
|
|
| 9 |
datasets:
|
| 10 |
- AI-MO/NuminaMath-CoT
|
| 11 |
model-index:
|
| 12 |
- name: AI-MO/NuminaMath-7B-CoT
|
| 13 |
results: []
|
| 14 |
-
language:
|
| 15 |
-
- en
|
| 16 |
---
|
| 17 |
|
| 18 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -141,4 +141,17 @@ The following hyperparameters were used during training:
|
|
| 141 |
- Transformers 4.42.3
|
| 142 |
- Pytorch 2.3.0+cu121
|
| 143 |
- Datasets 2.18.0
|
| 144 |
-
- Tokenizers 0.19.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
license: apache-2.0
|
|
|
|
| 5 |
tags:
|
| 6 |
- alignment-handbook
|
| 7 |
- generated_from_trainer
|
| 8 |
- aimo
|
| 9 |
- math
|
| 10 |
+
base_model: deepseek-ai/deepseek-math-7b-base
|
| 11 |
datasets:
|
| 12 |
- AI-MO/NuminaMath-CoT
|
| 13 |
model-index:
|
| 14 |
- name: AI-MO/NuminaMath-7B-CoT
|
| 15 |
results: []
|
|
|
|
|
|
|
| 16 |
---
|
| 17 |
|
| 18 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 141 |
- Transformers 4.42.3
|
| 142 |
- Pytorch 2.3.0+cu121
|
| 143 |
- Datasets 2.18.0
|
| 144 |
+
- Tokenizers 0.19.1
|
| 145 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard)
|
| 146 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_AI-MO__NuminaMath-7B-CoT)
|
| 147 |
+
|
| 148 |
+
| Metric |Value|
|
| 149 |
+
|-------------------|----:|
|
| 150 |
+
|Avg. |12.95|
|
| 151 |
+
|IFEval (0-Shot) |26.89|
|
| 152 |
+
|BBH (3-Shot) |19.15|
|
| 153 |
+
|MATH Lvl 5 (4-Shot)| 7.93|
|
| 154 |
+
|GPQA (0-shot) | 2.13|
|
| 155 |
+
|MuSR (0-shot) | 0.83|
|
| 156 |
+
|MMLU-PRO (5-shot) |20.76|
|
| 157 |
+
|