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)# 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=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-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-05)
Browse files- EVAL_REPORT.md +135 -101
EVAL_REPORT.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 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._
|
|
@@ -11,7 +11,7 @@ _This PR is opened automatically by the course CI. It is **non-blocking** — yo
|
|
| 11 |
|
| 12 |
| Benchmark | Accuracy | Status |
|
| 13 |
|---|---:|---|
|
| 14 |
-
| Math | 0.
|
| 15 |
| Knowledge | — | not run |
|
| 16 |
| Multilingual | — | not run |
|
| 17 |
| Safety | — | not run |
|
|
@@ -24,132 +24,166 @@ _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 |
-
1
|
| 34 |
-
|
| 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 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
\boxed{2}
|
| 77 |
-
\]
|
| 78 |
```
|
| 79 |
|
| 80 |
**Incorrect** (1 shown)
|
| 81 |
|
| 82 |
-
- **reference**: `
|
| 83 |
- **overall** (0/8 completions correct)
|
| 84 |
-
- **extracted** (✗): `
|
| 85 |
- **completion**:
|
| 86 |
|
| 87 |
```text
|
| 88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
-
|
| 91 |
-
h(
|
| 92 |
-
|
| 93 |
|
| 94 |
-
|
| 95 |
|
| 96 |
-
|
|
|
|
|
|
|
| 97 |
|
| 98 |
-
|
| 99 |
|
| 100 |
-
|
|
|
|
|
|
|
| 101 |
|
| 102 |
-
\
|
| 103 |
-
\begin{aligned}
|
| 104 |
-
h(3) + h(4) &= h(5) h(6) - 840, \\
|
| 105 |
-
h(4) + h(5) &= h(6) h(7) - 840.
|
| 106 |
-
\end{aligned}
|
| 107 |
-
\]
|
| 108 |
|
| 109 |
-
|
| 110 |
|
| 111 |
-
|
| 112 |
|
| 113 |
-
|
| 114 |
-
\begin{aligned}
|
| 115 |
-
h(3) &= 5, \\
|
| 116 |
-
h(4) &= 21, \\
|
| 117 |
-
h(5) &= 50, \\
|
| 118 |
-
h(6) &= 21, \\
|
| 119 |
-
h(7) &= 5, \\
|
| 120 |
-
h(8) &= 21.
|
| 121 |
-
\end{aligned}
|
| 122 |
-
\]
|
| 123 |
|
| 124 |
-
|
| 125 |
|
| 126 |
-
|
|
|
|
|
|
|
| 127 |
|
| 128 |
-
|
| 129 |
|
| 130 |
-
|
|
|
|
|
|
|
| 131 |
|
| 132 |
-
|
| 133 |
-
\begin{aligned}
|
| 134 |
-
&\sum_{i=1}^{2025} h(i) = h(1) + h(2) + h(3) + \cdots + h(2025) \\
|
| 135 |
-
&= 1 + 2 + 5 + 21 + 50 + 21 + 5 + 21 + \cdots + 21.
|
| 136 |
-
\end{aligned}
|
| 137 |
-
\]
|
| 138 |
|
| 139 |
-
|
| 140 |
|
| 141 |
-
|
| 142 |
-
\begin{aligned}
|
| 143 |
-
&\sum_{i=1}^{2025} h(i) = 1 + 2 + (5 + 21) \times \frac{2025}{2} \\
|
| 144 |
-
&= 3 + 26 \times 1012 \\
|
| 145 |
-
&= 26332 + 26 \\
|
| 146 |
-
&= 26358.
|
| 147 |
-
\end{aligned}
|
| 148 |
-
\]
|
| 149 |
|
| 150 |
-
|
|
|
|
|
|
|
| 151 |
|
| 152 |
-
|
| 153 |
-
\boxed{26358}.
|
| 154 |
-
\]
|
| 155 |
```
|
|
|
|
| 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-05T03:00:32+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._
|
|
|
|
| 11 |
|
| 12 |
| Benchmark | Accuracy | Status |
|
| 13 |
|---|---:|---|
|
| 14 |
+
| Math | 0.3900 | ok |
|
| 15 |
| Knowledge | — | not run |
|
| 16 |
| Multilingual | — | not run |
|
| 17 |
| Safety | — | not run |
|
|
|
|
| 24 |
|
| 25 |
**Correct** (1 shown)
|
| 26 |
|
| 27 |
+
- **reference**: `194`
|
| 28 |
+
- **overall** (2/8 completions correct)
|
| 29 |
+
- **extracted** (✓): `194`
|
| 30 |
- **completion**:
|
| 31 |
|
| 32 |
```text
|
| 33 |
+
We are given a $194 \times 194$ board, and we are to find the **least positive integer $k$** such that we can choose $k$ cells to mark, and there exists **exactly one tiling** of the board using $1 \times 2$ and $2 \times 1$ dominoes, where **every domino contains at most one marked cell**.
|
| 34 |
+
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
### Step 1: Understand the problem
|
| 38 |
+
|
| 39 |
+
- The board is $194 \times 194$, so it has $194^2 = 37636$ cells.
|
| 40 |
+
|
| 41 |
+
... [truncated 822 chars] ...
|
| 42 |
+
|
| 43 |
+
ose we mark $k$ cells. We want **exactly one perfect matching** (tiling) of the board such that **each domino contains at most one marked cell**.
|
| 44 |
+
|
| 45 |
+
This is equivalent to: **Find the smallest $k$ such that there is exactly one perfect matching in the graph where each edge is allowed to contain at most one marked cell**.
|
| 46 |
+
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
### Step 4: Minimum number of marked cells
|
| 50 |
+
|
| 51 |
+
We want **only one perfect matching** in the graph, and **each domino (edge in the matching) contains at most one marked cell**.
|
| 52 |
+
|
| 53 |
+
This is equivalent to: **Find the smallest $k$ such that the graph has only one perfect matching, and the matching is such that each edge contains at most one marked cell**.
|
| 54 |
+
|
| 55 |
+
This is a known result in combinatorics.
|
| 56 |
+
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
### Step 5: Use of known results
|
| 60 |
+
|
| 61 |
+
It is a known result in combinatorics that the **minimum number of marked cells** needed to ensure **exactly one tiling** of the board with **each domino containing at most one marked cell** is:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
\boxed{194}
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
This is because the board is $194 \times 194$, and to ensure that **only one tiling** is possible, we need to **mark at least one cell per row and column** to prevent multiple tilings.
|
| 68 |
+
|
| 69 |
+
---
|
| 70 |
+
|
| 71 |
+
### ✅ Final Answer:
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
\boxed{194}
|
| 75 |
+
$$
|
|
|
|
|
|
|
| 76 |
```
|
| 77 |
|
| 78 |
**Incorrect** (1 shown)
|
| 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) = x`
|
| 83 |
- **completion**:
|
| 84 |
|
| 85 |
```text
|
| 86 |
+
We are given a functional equation involving a mapping $ h : \mathbb{Q} \to \mathbb{Z} $, and the condition:
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
h(x) = h\left( \frac{h(bx - a) + a}{b} \right)
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
for all $ x \in \mathbb{Q} $, $ a \in \mathbb{Z} $, and $ b \in \mathbb{N} $.
|
| 93 |
+
|
| 94 |
+
---
|
| 95 |
+
|
| 96 |
+
### Step 1: Understand the structure of the equation
|
| 97 |
+
|
| 98 |
+
Let’s rewrite the equation for clarity:
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
h(x) = h\left( \frac{h(bx - a) + a}{b} \right)
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
Thi
|
| 105 |
+
|
| 106 |
+
... [truncated 821 chars] ...
|
| 107 |
+
|
| 108 |
+
### Step 5: Try $ n = 0 $
|
| 109 |
+
|
| 110 |
+
If $ n = 0 $, then $ h(x) = c $, a constant function.
|
| 111 |
+
|
| 112 |
+
Plug into the original equation:
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
h(x) = h\left( \frac{h(bx - a) + a}{b} \right)
|
| 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 6: Try $ n = 1 $
|
| 129 |
+
|
| 130 |
+
If $ n = 1 $, then $ h(x) = x + c $.
|
| 131 |
+
|
| 132 |
+
Let’s check if this works.
|
| 133 |
+
|
| 134 |
+
Then:
|
| 135 |
+
|
| 136 |
+
$$
|
| 137 |
+
h(bx - a) = bx - a + c
|
| 138 |
+
$$
|
| 139 |
+
|
| 140 |
+
Then:
|
| 141 |
|
| 142 |
+
$$
|
| 143 |
+
\frac{h(bx - a) + a}{b} = \frac{bx - a + c + a}{b} = \frac{bx + c}{b} = x + \frac{c}{b}
|
| 144 |
+
$$
|
| 145 |
|
| 146 |
+
Then:
|
| 147 |
|
| 148 |
+
$$
|
| 149 |
+
h\left( \frac{h(bx - a) + a}{b} \right) = h\left( x + \frac{c}{b} \right) = x + \frac{c}{b} + c
|
| 150 |
+
$$
|
| 151 |
|
| 152 |
+
Now compare with $ h(x) = x + c $:
|
| 153 |
|
| 154 |
+
$$
|
| 155 |
+
h(x) = x + c \quad \text{and} \quad h\left( \frac{h(bx - a) + a}{b} \right) = x + \frac{c}{b} + c
|
| 156 |
+
$$
|
| 157 |
|
| 158 |
+
So unless $ \frac{c}{b} = 0 $, these are not equal.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
|
| 160 |
+
Thus, this only works if $ c = 0 $, and then $ h(x) = x $.
|
| 161 |
|
| 162 |
+
---
|
| 163 |
|
| 164 |
+
### Step 7: Final check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
|
| 166 |
+
Let’s test $ h(x) = x $ in the original equation:
|
| 167 |
|
| 168 |
+
$$
|
| 169 |
+
h(x) = h\left( \frac{h(bx - a) + a}{b} \right)
|
| 170 |
+
$$
|
| 171 |
|
| 172 |
+
If $ h(x) = x $, then:
|
| 173 |
|
| 174 |
+
$$
|
| 175 |
+
x = \frac{h(bx - a) + a}{b} = \frac{bx - a + a}{b} = x
|
| 176 |
+
$$
|
| 177 |
|
| 178 |
+
So this works.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
|
| 180 |
+
---
|
| 181 |
|
| 182 |
+
### ✅ Final Answer:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
|
| 184 |
+
$$
|
| 185 |
+
\boxed{h(x) = x}
|
| 186 |
+
$$
|
| 187 |
|
| 188 |
+
is the only solution.
|
|
|
|
|
|
|
| 189 |
```
|