Instructions to use cs-552-2026-centralesupechec/math_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cs-552-2026-centralesupechec/math_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-centralesupechec/math_model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cs-552-2026-centralesupechec/math_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-centralesupechec/math_model") 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 Settings
- vLLM
How to use cs-552-2026-centralesupechec/math_model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cs-552-2026-centralesupechec/math_model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cs-552-2026-centralesupechec/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-centralesupechec/math_model
- SGLang
How to use cs-552-2026-centralesupechec/math_model 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 "cs-552-2026-centralesupechec/math_model" \ --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": "cs-552-2026-centralesupechec/math_model", "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 "cs-552-2026-centralesupechec/math_model" \ --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": "cs-552-2026-centralesupechec/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-centralesupechec/math_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-centralesupechec/math_model
Automated MNLP evaluation report (2026-06-11)
#2
by zechen-nlp - opened
- EVAL_REPORT.md +110 -54
EVAL_REPORT.md
CHANGED
|
@@ -2,16 +2,22 @@
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-centralesupechec/math_model`](https://huggingface.co/cs-552-2026-centralesupechec/math_model)
|
| 4 |
- **Owner(s):** group **centralesupechec**
|
| 5 |
-
- **Generated at:** 2026-
|
| 6 |
- **Pipeline:** [mnlp-project-ci](https://github.com/eric11eca/mnlp-project-ci)
|
| 7 |
|
| 8 |
_This PR is opened automatically by the course CI. It is **non-blocking** — you do not need to merge it. The next nightly run will refresh this file._
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
## Summary
|
| 11 |
|
| 12 |
| Benchmark | Accuracy | Status |
|
| 13 |
|---|---:|---|
|
| 14 |
-
| Math | 0.
|
| 15 |
| Knowledge | — | not run |
|
| 16 |
| Multilingual | — | not run |
|
| 17 |
| Safety | — | not run |
|
|
@@ -24,107 +30,157 @@ _Prompts are intentionally omitted to avoid revealing benchmark contents. For mu
|
|
| 24 |
|
| 25 |
**Correct** (1 shown)
|
| 26 |
|
| 27 |
-
- **reference**: `
|
| 28 |
-
- **overall** (
|
| 29 |
-
- **extracted** (✓): `
|
| 30 |
- **completion**:
|
| 31 |
|
| 32 |
```text
|
| 33 |
<think>
|
| 34 |
-
Okay, so I need to
|
| 35 |
|
| 36 |
-
|
|
|
|
|
|
|
| 37 |
|
| 38 |
-
|
| 39 |
|
| 40 |
-
.
|
| 41 |
|
| 42 |
-
|
| 43 |
-
$$
|
| 44 |
|
| 45 |
-
|
| 46 |
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
| 54 |
|
|
|
|
| 55 |
$$
|
| 56 |
-
|
| 57 |
$$
|
| 58 |
|
| 59 |
-
So
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
---
|
| 62 |
|
| 63 |
-
### Step 3:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
-
|
| 66 |
|
| 67 |
$$
|
| 68 |
-
|
| 69 |
$$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
-
|
| 72 |
|
| 73 |
-
|
|
|
|
| 74 |
|
| 75 |
-
|
| 76 |
|
| 77 |
$$
|
| 78 |
-
|
| 79 |
$$
|
| 80 |
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
-
|
| 84 |
-
- $\ln(10) \approx 2.3026$
|
| 85 |
-
- $9^x$ grows slower than $10^x$, and the coefficient of $9^x$ is smaller than that of $10^x$
|
| 86 |
|
| 87 |
-
|
|
|
|
|
|
|
| 88 |
|
| 89 |
---
|
| 90 |
|
| 91 |
-
### Step
|
| 92 |
|
| 93 |
-
|
| 94 |
|
| 95 |
-
|
|
|
|
|
|
|
| 96 |
|
| 97 |
---
|
| 98 |
|
| 99 |
-
###
|
|
|
|
|
|
|
| 100 |
|
| 101 |
$$
|
| 102 |
-
\
|
| 103 |
$$
|
| 104 |
-
```
|
| 105 |
-
|
| 106 |
-
**Incorrect** (1 shown)
|
| 107 |
-
|
| 108 |
-
- **reference**: `$(n-2)2^n +1$`
|
| 109 |
-
- **overall** (0/8 completions correct)
|
| 110 |
-
- **extracted** (✗): `<no answer>`
|
| 111 |
-
- **completion**:
|
| 112 |
-
|
| 113 |
-
```text
|
| 114 |
-
<think>
|
| 115 |
-
Okay, so I need to figure out the greatest positive integer that can't be expressed as a sum of elements from the set C_n, where C_n is defined as {2^n - 2^i | 0 ≤ i < n}. And n is a positive integer greater than or equal to 2. Hmm, let's start by understanding what exactly the set C_n looks like.
|
| 116 |
|
| 117 |
-
|
| 118 |
|
| 119 |
-
|
| 120 |
|
| 121 |
-
|
|
|
|
|
|
|
| 122 |
|
| 123 |
-
|
| 124 |
|
| 125 |
-
|
| 126 |
|
| 127 |
-
|
| 128 |
|
| 129 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
```
|
|
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-centralesupechec/math_model`](https://huggingface.co/cs-552-2026-centralesupechec/math_model)
|
| 4 |
- **Owner(s):** group **centralesupechec**
|
| 5 |
+
- **Generated at:** 2026-06-11T06:23:10+00:00 (UTC)
|
| 6 |
- **Pipeline:** [mnlp-project-ci](https://github.com/eric11eca/mnlp-project-ci)
|
| 7 |
|
| 8 |
_This PR is opened automatically by the course CI. It is **non-blocking** — you do not need to merge it. The next nightly run will refresh this file._
|
| 9 |
|
| 10 |
+
## Evaluated checkpoint
|
| 11 |
+
|
| 12 |
+
- **Commit:** [`0e6c355`](https://huggingface.co/cs-552-2026-centralesupechec/math_model/commit/0e6c355e928e4fa6ac64c544927563c5608f0dca)
|
| 13 |
+
- **Message:** SFT-1600
|
| 14 |
+
- **Committed:** 2026-06-09T10:55:18+00:00
|
| 15 |
+
|
| 16 |
## Summary
|
| 17 |
|
| 18 |
| Benchmark | Accuracy | Status |
|
| 19 |
|---|---:|---|
|
| 20 |
+
| Math | 0.4800 | ok |
|
| 21 |
| Knowledge | — | not run |
|
| 22 |
| Multilingual | — | not run |
|
| 23 |
| Safety | — | not run |
|
|
|
|
| 30 |
|
| 31 |
**Correct** (1 shown)
|
| 32 |
|
| 33 |
+
- **reference**: `1012`
|
| 34 |
+
- **overall** (4/8 completions correct)
|
| 35 |
+
- **extracted** (✓): `1012`
|
| 36 |
- **completion**:
|
| 37 |
|
| 38 |
```text
|
| 39 |
<think>
|
| 40 |
+
Okay, so I need to find the maximum possible value of this sum:
|
| 41 |
|
| 42 |
+
$$
|
| 43 |
+
\sum_{i=1}^{2023} \frac{a_i - a_{i-1}}{a_{i+1} - a_i}
|
| 44 |
+
$$
|
| 45 |
|
| 46 |
+
given that $a_1, \ldots, a_{2024}$ are positive real numbers with $a_{i+1} \ge 2a_i$ for each $i = 1, \ldots, 2023$, and $a_0 = 0$.
|
| 47 |
|
| 48 |
+
First, let me try to understand the problem. We have a sequence starting at 0, and each term is at least twice the previous one. So,
|
| 49 |
|
| 50 |
+
... [truncated 823 chars] ...
|
|
|
|
| 51 |
|
| 52 |
+
possible value satisfying the constraint.
|
| 53 |
|
| 54 |
+
So, to maximize each term $ \frac{d_i}{d_{i+1}} $, we set $ d_{i+1} = a_i $, which gives:
|
| 55 |
+
$$
|
| 56 |
+
\frac{d_i}{d_{i+1}} = \frac{d_i}{a_i}
|
| 57 |
+
$$
|
| 58 |
|
| 59 |
+
But since $ d_i = a_i - a_{i-1} $, and $ a_i = \sum_{j=1}^i d_j $, we can write:
|
| 60 |
+
$$
|
| 61 |
+
d_i = a_i - a_{i-1} = a_i - a_{i-1}
|
| 62 |
+
$$
|
| 63 |
+
So, we can write:
|
| 64 |
+
$$
|
| 65 |
+
\frac{d_i}{a_i} = \frac{a_i - a_{i-1}}{a_i}
|
| 66 |
+
$$
|
| 67 |
|
| 68 |
+
But we can also express this in terms of powers of 2:
|
| 69 |
+
- If we set $ a_{i+1} = 2a_i $, then $ d_{i+1} = a_i $
|
| 70 |
+
- Then, $ a_i = 2^{i-1} a_1 $, and $ a_{i-1} = 2^{i-2} a_1 $
|
| 71 |
+
- So, $ d_i = a_i - a_{i-1} = 2^{i-1}a_1 - 2^{i-2}a_1 = 2^{i-2}a_1 $
|
| 72 |
|
| 73 |
+
Therefore, each term becomes:
|
| 74 |
+
$$
|
| 75 |
+
\frac{d_i}{d_{i+1}} = \frac{2^{i-2}a_1}{a_i} = \frac{2^{i-2}a_1}{2^{i-1}a_1} = \frac{1}{2}
|
| 76 |
+
$$
|
| 77 |
|
| 78 |
+
But the first term is:
|
| 79 |
$$
|
| 80 |
+
\frac{d_1}{d_2} = \frac{a_1}{a_1} = 1
|
| 81 |
$$
|
| 82 |
|
| 83 |
+
So the sum becomes:
|
| 84 |
+
$$
|
| 85 |
+
\sum_{i=1}^{2023} \frac{d_i}{d_{i+1}} = 1 + \sum_{i=2}^{2023} \frac{1}{2} = 1 + \frac{2022}{2} = 1 + 1011 = 1012
|
| 86 |
+
$$
|
| 87 |
|
| 88 |
---
|
| 89 |
|
| 90 |
+
### Step 3: General Pattern
|
| 91 |
+
|
| 92 |
+
From the above, we observe that the maximum sum is:
|
| 93 |
+
$$
|
| 94 |
+
\text{Max sum} = 1 + \frac{n - 2}{2} = \frac{n}{2}
|
| 95 |
+
$$
|
| 96 |
+
where $ n = 2024 $, so:
|
| 97 |
+
$$
|
| 98 |
+
\text{Max sum} = \frac{2024}{2} = 1012
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
---
|
| 102 |
|
| 103 |
+
### Final Answer
|
| 104 |
|
| 105 |
$$
|
| 106 |
+
\boxed{1012}
|
| 107 |
$$
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
**Incorrect** (1 shown)
|
| 111 |
+
|
| 112 |
+
- **reference**: `237`
|
| 113 |
+
- **overall** (0/8 completions correct)
|
| 114 |
+
- **extracted** (✗): `60671`
|
| 115 |
+
- **completion**:
|
| 116 |
+
|
| 117 |
+
```text
|
| 118 |
+
<think>
|
| 119 |
+
Okay, so I need to solve this problem where I have to find the probability that a randomly chosen non-empty subset B of the positive divisors of 2025 has a least common multiple (LCM) equal to 2025. Then express that probability as a reduced fraction m/n and find m + n. Alright, let's start by understanding the problem step by step.
|
| 120 |
+
|
| 121 |
+
First, let me recall that the divisors of a number can b
|
| 122 |
|
| 123 |
+
... [truncated 823 chars] ...
|
| 124 |
|
| 125 |
+
contain any element with exponent 2 for 5: $ 2^{10} $ (5 choices for 3, 2 for 5 ≤ 1).
|
| 126 |
+
- Subsets that **do not** contain any element with exponent 4 for 3 **and** any element with exponent 2 for 5: $ 2^8 $ (4 choices for 3 ≤ 3, 2 for 5 ≤ 1).
|
| 127 |
|
| 128 |
+
Using the inclusion-exclusion principle:
|
| 129 |
|
| 130 |
$$
|
| 131 |
+
N = 2^{15} - 2^{12} - 2^{10} + 2^8
|
| 132 |
$$
|
| 133 |
|
| 134 |
+
Now compute the values:
|
| 135 |
+
|
| 136 |
+
- $ 2^{15} = 32768 $
|
| 137 |
+
- $ 2^{12} = 4096 $
|
| 138 |
+
- $ 2^{10} = 1024 $
|
| 139 |
+
- $ 2^8 = 256 $
|
| 140 |
|
| 141 |
+
So:
|
|
|
|
|
|
|
| 142 |
|
| 143 |
+
$$
|
| 144 |
+
N = 32768 - 4096 - 1024 + 256 = 27904
|
| 145 |
+
$$
|
| 146 |
|
| 147 |
---
|
| 148 |
|
| 149 |
+
### Step 3: Total Number of Non-Empty Subsets
|
| 150 |
|
| 151 |
+
The total number of non-empty subsets of $ A $ is:
|
| 152 |
|
| 153 |
+
$$
|
| 154 |
+
2^{15} - 1 = 32768 - 1 = 32767
|
| 155 |
+
$$
|
| 156 |
|
| 157 |
---
|
| 158 |
|
| 159 |
+
### Step 4: Compute the Probability
|
| 160 |
+
|
| 161 |
+
The probability that a randomly chosen non-empty subset $ B $ of $ A $ has LCM 2025 is:
|
| 162 |
|
| 163 |
$$
|
| 164 |
+
\frac{27904}{32767}
|
| 165 |
$$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
|
| 167 |
+
Now, we simplify the fraction. To do this, we compute the GCD of 27904 and 32767.
|
| 168 |
|
| 169 |
+
Using the Euclidean algorithm:
|
| 170 |
|
| 171 |
+
$$
|
| 172 |
+
\gcd(27904, 32767) = 1
|
| 173 |
+
$$
|
| 174 |
|
| 175 |
+
Thus, the fraction is already in its simplest form.
|
| 176 |
|
| 177 |
+
---
|
| 178 |
|
| 179 |
+
### Step 5: Final Answer
|
| 180 |
|
| 181 |
+
We are asked to find $ m + n $, where the fraction $ \frac{m}{n} = \frac{27904}{32767} $ is in lowest terms.
|
| 182 |
+
|
| 183 |
+
$$
|
| 184 |
+
m = 27904, \quad n = 32767 \Rightarrow m + n = 27904 + 32767 = \boxed{60671}
|
| 185 |
+
$$
|
| 186 |
```
|