Instructions to use cs-552-2026-vibe-trainers/math_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cs-552-2026-vibe-trainers/math_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-vibe-trainers/math_model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cs-552-2026-vibe-trainers/math_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-vibe-trainers/math_model", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cs-552-2026-vibe-trainers/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-vibe-trainers/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-vibe-trainers/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-vibe-trainers/math_model
- SGLang
How to use cs-552-2026-vibe-trainers/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-vibe-trainers/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-vibe-trainers/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-vibe-trainers/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-vibe-trainers/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-vibe-trainers/math_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-vibe-trainers/math_model
Update Automated MNLP evaluation report (2026-06-06)
Browse files- EVAL_REPORT.md +161 -72
EVAL_REPORT.md
CHANGED
|
@@ -2,16 +2,22 @@
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-vibe-trainers/math_model`](https://huggingface.co/cs-552-2026-vibe-trainers/math_model)
|
| 4 |
- **Owner(s):** group **vibe-trainers**
|
| 5 |
-
- **Generated at:** 2026-06-
|
| 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,54 +30,142 @@ _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 |
-
We are given
|
|
|
|
|
|
|
| 34 |
|
| 35 |
---
|
| 36 |
|
| 37 |
-
### Step 1: Understand the
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
-
|
|
|
|
|
|
|
| 42 |
|
| 43 |
-
|
| 44 |
|
| 45 |
-
|
| 46 |
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
-
|
| 50 |
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
-
|
| 54 |
|
| 55 |
-
|
| 56 |
|
| 57 |
---
|
| 58 |
|
| 59 |
-
### Step
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
-
|
| 62 |
|
| 63 |
$$
|
| 64 |
-
\
|
| 65 |
$$
|
| 66 |
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
---
|
| 70 |
|
| 71 |
-
###
|
| 72 |
|
| 73 |
$$
|
| 74 |
-
\boxed{
|
| 75 |
$$
|
| 76 |
```
|
| 77 |
|
|
@@ -79,11 +173,11 @@ _Prompts are intentionally omitted to avoid revealing benchmark contents. For mu
|
|
| 79 |
|
| 80 |
- **reference**: `$g(x)=c, g(x)=\lceil x \rceil, g(x)=\lfloor x \rfloor$`
|
| 81 |
- **overall** (0/8 completions correct)
|
| 82 |
-
- **extracted** (✗): `h(x) =
|
| 83 |
- **completion**:
|
| 84 |
|
| 85 |
```text
|
| 86 |
-
We are given a functional equation
|
| 87 |
|
| 88 |
$$
|
| 89 |
h(x) = h\left( \frac{h(bx - a) + a}{b} \right)
|
|
@@ -91,99 +185,94 @@ _Prompts are intentionally omitted to avoid revealing benchmark contents. For mu
|
|
| 91 |
|
| 92 |
for all $ x \in \mathbb{Q} $, $ a \in \mathbb{Z} $, and $ b \in \mathbb{N} $.
|
| 93 |
|
|
|
|
|
|
|
| 94 |
---
|
| 95 |
|
| 96 |
-
### Step 1:
|
| 97 |
|
| 98 |
-
Let’s
|
| 99 |
|
| 100 |
$$
|
| 101 |
-
h(x) =
|
| 102 |
$$
|
| 103 |
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
... [truncated 821 chars] ...
|
| 107 |
|
| 108 |
-
|
| 109 |
|
| 110 |
-
|
| 111 |
|
| 112 |
-
|
| 113 |
|
| 114 |
$$
|
| 115 |
-
h(x) =
|
| 116 |
$$
|
| 117 |
|
| 118 |
-
If $ h(x) = c $, then:
|
| 119 |
-
|
| 120 |
-
$$
|
| 121 |
-
c = h\left( \frac{c + a}{b} \right) = c
|
| 122 |
-
$$
|
| 123 |
-
|
| 124 |
-
So this is valid for any $ c \in \mathbb{Z} $.
|
| 125 |
-
|
| 126 |
---
|
| 127 |
|
| 128 |
-
### Step
|
| 129 |
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
Let’s check if this works.
|
| 133 |
-
|
| 134 |
-
Then:
|
| 135 |
|
| 136 |
$$
|
| 137 |
-
h(
|
| 138 |
$$
|
| 139 |
-
|
| 140 |
-
Then:
|
| 141 |
-
|
| 142 |
$$
|
| 143 |
-
|
|
|
|
|
|
|
|
|
|
| 144 |
$$
|
| 145 |
-
|
| 146 |
-
Then:
|
| 147 |
-
|
| 148 |
$$
|
| 149 |
-
h\left( \frac{
|
| 150 |
$$
|
| 151 |
|
| 152 |
-
|
| 153 |
|
| 154 |
$$
|
| 155 |
-
h(x) =
|
| 156 |
$$
|
| 157 |
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
Thus, this only works if $ c = 0 $, and then $ h(x) = x $.
|
| 161 |
|
| 162 |
---
|
| 163 |
|
| 164 |
-
### Step
|
|
|
|
|
|
|
| 165 |
|
| 166 |
-
|
| 167 |
|
| 168 |
$$
|
| 169 |
-
h(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
$$
|
| 171 |
|
| 172 |
-
|
| 173 |
|
| 174 |
$$
|
| 175 |
-
|
| 176 |
$$
|
| 177 |
|
| 178 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
|
| 180 |
---
|
| 181 |
|
| 182 |
-
###
|
| 183 |
|
| 184 |
$$
|
| 185 |
-
\boxed{h(x) =
|
| 186 |
$$
|
| 187 |
-
|
| 188 |
-
is the only solution.
|
| 189 |
```
|
|
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-vibe-trainers/math_model`](https://huggingface.co/cs-552-2026-vibe-trainers/math_model)
|
| 4 |
- **Owner(s):** group **vibe-trainers**
|
| 5 |
+
- **Generated at:** 2026-06-06T17:20:53+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:** [`37abb85`](https://huggingface.co/cs-552-2026-vibe-trainers/math_model/commit/37abb85a14cf832bc2b6ecb7ff5edd20213c56b3)
|
| 13 |
+
- **Message:** Update chat_template.jinja
|
| 14 |
+
- **Committed:** 2026-06-04T20:08:52+00:00
|
| 15 |
+
|
| 16 |
## Summary
|
| 17 |
|
| 18 |
| Benchmark | Accuracy | Status |
|
| 19 |
|---|---:|---|
|
| 20 |
+
| Math | 0.4100 | ok |
|
| 21 |
| Knowledge | — | not run |
|
| 22 |
| Multilingual | — | not run |
|
| 23 |
| Safety | — | not run |
|
|
|
|
| 30 |
|
| 31 |
**Correct** (1 shown)
|
| 32 |
|
| 33 |
+
- **reference**: `(3,2,5)`
|
| 34 |
+
- **overall** (3/8 completions correct)
|
| 35 |
+
- **extracted** (✓): `(3, 2, 5)`
|
| 36 |
- **completion**:
|
| 37 |
|
| 38 |
```text
|
| 39 |
+
We are given the problem:
|
| 40 |
+
|
| 41 |
+
> Determine all ordered triples $(p, m, n)$ where $p$ is a prime greater than 2 and $m, n$ are positive integers with $m \le n$, such that $m^{p-1} + n$ and $n^{p-1} + m$ are both powers of $p$.
|
| 42 |
|
| 43 |
---
|
| 44 |
|
| 45 |
+
### Step 1: Understand the conditions
|
| 46 |
|
| 47 |
+
We are told:
|
| 48 |
|
| 49 |
+
- $p$ is a **prime greater than 2**, so $p \ge 3$.
|
| 50 |
+
- $m, n$ are **positive integers** with $m \le n$.
|
| 51 |
+
- $m^{p-1} + n$ a
|
| 52 |
|
| 53 |
+
... [truncated 823 chars] ...
|
| 54 |
|
| 55 |
+
$m = 3, n = 4$:
|
| 56 |
|
| 57 |
+
$$
|
| 58 |
+
3^6 + 4 = 733, \quad 4^6 + 3 = 4099
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
Not powers of 7.
|
| 62 |
+
|
| 63 |
+
Try $m = 2, n = 6$:
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
2^6 + 6 = 70, \quad 6^6 + 2 = 46658
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
Not powers of 7.
|
| 70 |
|
| 71 |
+
Try $m = 1, n = 6$:
|
| 72 |
|
| 73 |
+
$$
|
| 74 |
+
1^6 + 6 = 7 = 7^1, \quad 6^6 + 1 = 46657
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
Only one is a power of 7.
|
| 78 |
+
|
| 79 |
+
Try $m = 2, n = 7$:
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
2^6 + 7 = 65, \quad 7^6 + 2 = 117649 + 2 = 117651
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
Not powers of 7.
|
| 86 |
+
|
| 87 |
+
Try $m = 3, n = 5$:
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
3^6 + 5 = 733, \quad 5^6 + 3 = 15628
|
| 91 |
+
$$
|
| 92 |
|
| 93 |
+
Not powers of 7.
|
| 94 |
|
| 95 |
+
So for $p = 7$, no valid triples.
|
| 96 |
|
| 97 |
---
|
| 98 |
|
| 99 |
+
### Step 3: Try $p = 3$ again
|
| 100 |
+
|
| 101 |
+
We already found:
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
(p, m, n) = (3, 2, 5)
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
Check if there are more:
|
| 108 |
|
| 109 |
+
Try $m = 2, n = 5$:
|
| 110 |
|
| 111 |
$$
|
| 112 |
+
2^2 + 5 = 9 = 3^2, \quad 5^2 + 2 = 27 = 3^3
|
| 113 |
$$
|
| 114 |
|
| 115 |
+
✅ Both are powers of 3.
|
| 116 |
+
|
| 117 |
+
Try $m = 1, n = 2$:
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
1^2 + 2 = 3 = 3^1, \quad 2^2 + 1 = 5
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
Only one is a power of 3.
|
| 124 |
+
|
| 125 |
+
Try $m = 1, n = 3$:
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
1^2 + 3 = 4, \quad 3^2 + 1 = 10
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
Not powers of 3.
|
| 132 |
+
|
| 133 |
+
Try $m = 2, n = 3$:
|
| 134 |
+
|
| 135 |
+
$$
|
| 136 |
+
2^2 + 3 = 7, \quad 3^2 + 2 = 11
|
| 137 |
+
$$
|
| 138 |
+
|
| 139 |
+
Not powers of 3.
|
| 140 |
+
|
| 141 |
+
Try $m = 2, n = 4$:
|
| 142 |
+
|
| 143 |
+
$$
|
| 144 |
+
2^2 + 4 = 8, \quad 4^2 + 2 = 18
|
| 145 |
+
$$
|
| 146 |
+
|
| 147 |
+
Not powers of 3.
|
| 148 |
+
|
| 149 |
+
Try $m = 2, n = 6$:
|
| 150 |
+
|
| 151 |
+
$$
|
| 152 |
+
2^2 + 6 = 10, \quad 6^2 + 2 = 38
|
| 153 |
+
$$
|
| 154 |
+
|
| 155 |
+
Not powers of 3.
|
| 156 |
+
|
| 157 |
+
So the only valid triple for $p = 3$ is:
|
| 158 |
+
|
| 159 |
+
$$
|
| 160 |
+
(p, m, n) = (3, 2, 5)
|
| 161 |
+
$$
|
| 162 |
|
| 163 |
---
|
| 164 |
|
| 165 |
+
### Final Answer:
|
| 166 |
|
| 167 |
$$
|
| 168 |
+
\boxed{(3, 2, 5)}
|
| 169 |
$$
|
| 170 |
```
|
| 171 |
|
|
|
|
| 173 |
|
| 174 |
- **reference**: `$g(x)=c, g(x)=\lceil x \rceil, g(x)=\lfloor x \rfloor$`
|
| 175 |
- **overall** (0/8 completions correct)
|
| 176 |
+
- **extracted** (✗): `h(x) = 0`
|
| 177 |
- **completion**:
|
| 178 |
|
| 179 |
```text
|
| 180 |
+
We are given a functional equation:
|
| 181 |
|
| 182 |
$$
|
| 183 |
h(x) = h\left( \frac{h(bx - a) + a}{b} \right)
|
|
|
|
| 185 |
|
| 186 |
for all $ x \in \mathbb{Q} $, $ a \in \mathbb{Z} $, and $ b \in \mathbb{N} $.
|
| 187 |
|
| 188 |
+
We are to find all functions $ h : \mathbb{Q} \to \mathbb{Z} $ satisfying this equation.
|
| 189 |
+
|
| 190 |
---
|
| 191 |
|
| 192 |
+
### Step 1: Try simple candidate functions
|
| 193 |
|
| 194 |
+
Let’s try a simple form of $ h(x) $, such as:
|
| 195 |
|
| 196 |
$$
|
| 197 |
+
h(x) = kx + c
|
| 198 |
$$
|
| 199 |
|
| 200 |
+
for some constants $ k,
|
|
|
|
|
|
|
| 201 |
|
| 202 |
+
... [truncated 823 chars] ...
|
| 203 |
|
| 204 |
+
, since $ b \in \mathbb{N} $, this implies $ c = 0 $ (since $ k = 0 $ or $ k = 1 $, and $ b > 0 $).
|
| 205 |
|
| 206 |
+
So the only possible candidate is:
|
| 207 |
|
| 208 |
$$
|
| 209 |
+
h(x) = 0
|
| 210 |
$$
|
| 211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
---
|
| 213 |
|
| 214 |
+
### Step 2: Verify that $ h(x) = 0 $ satisfies the equation
|
| 215 |
|
| 216 |
+
Let’s check:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 217 |
|
| 218 |
$$
|
| 219 |
+
h(x) = 0
|
| 220 |
$$
|
|
|
|
|
|
|
|
|
|
| 221 |
$$
|
| 222 |
+
h(bx - a) = 0
|
| 223 |
+
$$
|
| 224 |
+
$$
|
| 225 |
+
\frac{h(bx - a) + a}{b} = \frac{0 + a}{b} = \frac{a}{b}
|
| 226 |
$$
|
|
|
|
|
|
|
|
|
|
| 227 |
$$
|
| 228 |
+
h\left( \frac{a}{b} \right) = 0
|
| 229 |
$$
|
| 230 |
|
| 231 |
+
So the equation becomes:
|
| 232 |
|
| 233 |
$$
|
| 234 |
+
h(x) = 0 = 0
|
| 235 |
$$
|
| 236 |
|
| 237 |
+
which is true.
|
|
|
|
|
|
|
| 238 |
|
| 239 |
---
|
| 240 |
|
| 241 |
+
### Step 3: Are there other possible functions?
|
| 242 |
+
|
| 243 |
+
Suppose $ h(x) $ is not identically zero. Then there exists some $ x \in \mathbb{Q} $ such that $ h(x) \ne 0 $. Let’s suppose $ h(x) = c \ne 0 $ for some $ x \in \mathbb{Q} $.
|
| 244 |
|
| 245 |
+
Then:
|
| 246 |
|
| 247 |
$$
|
| 248 |
+
h(bx - a) = c
|
| 249 |
+
$$
|
| 250 |
+
$$
|
| 251 |
+
\frac{h(bx - a) + a}{b} = \frac{c + a}{b}
|
| 252 |
+
$$
|
| 253 |
+
$$
|
| 254 |
+
h\left( \frac{c + a}{b} \right) = c
|
| 255 |
$$
|
| 256 |
|
| 257 |
+
This implies:
|
| 258 |
|
| 259 |
$$
|
| 260 |
+
h\left( \frac{c + a}{b} \right) = c
|
| 261 |
$$
|
| 262 |
|
| 263 |
+
But this must hold for all $ a \in \mathbb{Z} $, and for all $ b \in \mathbb{N} $. So $ h $ must be constant on all rational numbers of the form $ \frac{c + a}{b} $, which is a dense set in $ \mathbb{Q} $, unless $ h $ is constant on the entire domain.
|
| 264 |
+
|
| 265 |
+
Thus, the only possible solution is:
|
| 266 |
+
|
| 267 |
+
$$
|
| 268 |
+
\boxed{h(x) = 0}
|
| 269 |
+
$$
|
| 270 |
|
| 271 |
---
|
| 272 |
|
| 273 |
+
### Final Answer:
|
| 274 |
|
| 275 |
$$
|
| 276 |
+
\boxed{h(x) = 0}
|
| 277 |
$$
|
|
|
|
|
|
|
| 278 |
```
|