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-01)
Browse files- EVAL_REPORT.md +84 -156
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-
|
| 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,169 +24,97 @@ _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 |
-
|
| 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 |
-
Use the scale to find the map distance:
|
| 62 |
-
|
| 63 |
-
$$
|
| 64 |
-
\text{Map distance} = 53.25 \times \frac{3}{10}
|
| 65 |
-
$$
|
| 66 |
-
|
| 67 |
-
First, multiply:
|
| 68 |
-
|
| 69 |
-
$$
|
| 70 |
-
53.25 \times 3 = 159.75
|
| 71 |
-
$$
|
| 72 |
-
|
| 73 |
-
Then divide by 10:
|
| 74 |
-
|
| 75 |
-
$$
|
| 76 |
-
\frac{159.75}{10} = 15.975 \text{ inches}
|
| 77 |
-
$$
|
| 78 |
-
|
| 79 |
-
---
|
| 80 |
-
|
| 81 |
-
### Step 3: Express the result as a fraction
|
| 82 |
-
|
| 83 |
-
$$
|
| 84 |
-
15.975 = \frac{15975}{1000}
|
| 85 |
-
$$
|
| 86 |
-
|
| 87 |
-
Simplify the fraction:
|
| 88 |
-
|
| 89 |
-
$$
|
| 90 |
-
\frac{15975}{1000} = \frac{639}{40} \quad \text{(divided numerator and denominator by 25)}
|
| 91 |
-
$$
|
| 92 |
-
|
| 93 |
-
So, the distance between the buildings on the map is:
|
| 94 |
-
|
| 95 |
-
$$
|
| 96 |
-
\boxed{\frac{639}{40}} \text{ inches}
|
| 97 |
-
$$
|
| 98 |
-
|
| 99 |
-
---
|
| 100 |
-
|
| 101 |
-
### ✅ Final Answer:
|
| 102 |
-
|
| 103 |
-
$$
|
| 104 |
-
\boxed{\frac{639}{40}} \text{ inches}
|
| 105 |
-
$$
|
| 106 |
```
|
| 107 |
|
| 108 |
**Incorrect** (1 shown)
|
| 109 |
|
| 110 |
-
- **reference**: `
|
| 111 |
- **overall** (0/8 completions correct)
|
| 112 |
-
- **extracted** (✗): `
|
| 113 |
- **completion**:
|
| 114 |
|
| 115 |
```text
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
... [truncated
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
```
|
| 166 |
-
|
| 167 |
-
Now, we'll iterate over all $ n < 1000 $ and check if $ f(n) = n $.
|
| 168 |
-
|
| 169 |
-
---
|
| 170 |
-
|
| 171 |
-
### Step 4: Count the valid numbers
|
| 172 |
-
|
| 173 |
-
Let’s compute this:
|
| 174 |
-
|
| 175 |
-
```python
|
| 176 |
-
count = 0
|
| 177 |
-
for n in range(1, 1000):
|
| 178 |
-
if f(n) == n:
|
| 179 |
-
count += 1
|
| 180 |
-
print(count)
|
| 181 |
-
```
|
| 182 |
-
|
| 183 |
-
---
|
| 184 |
-
|
| 185 |
-
### ✅ Final Answer:
|
| 186 |
-
|
| 187 |
-
$$
|
| 188 |
-
\boxed{12}
|
| 189 |
-
$$
|
| 190 |
-
|
| 191 |
-
There are **12** positive integers $ n < 1000 $ such that $ f(n) = n $.
|
| 192 |
```
|
|
|
|
| 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-01T06:08:54+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.3500 | ok |
|
| 15 |
| Knowledge | — | not run |
|
| 16 |
| Multilingual | — | not run |
|
| 17 |
| Safety | — | not run |
|
|
|
|
| 24 |
|
| 25 |
**Correct** (1 shown)
|
| 26 |
|
| 27 |
+
- **reference**: `194`
|
| 28 |
+
- **overall** (1/8 completions correct)
|
| 29 |
+
- **extracted** (✓): `194`
|
| 30 |
- **completion**:
|
| 31 |
|
| 32 |
```text
|
| 33 |
+
1. **Understanding the Problem:**
|
| 34 |
+
We are given a \(194 \times 194\) board and need to find the smallest number \(k\) such that we can mark \(k\) cells on the board in a way that allows for exactly one tiling of the board with \(1 \times 2\) and \(2 \times 1\) dominoes, with each domino containing at most one marked cell.
|
| 35 |
+
|
| 36 |
+
2. **Initial Observation:**
|
| 37 |
+
It's evident that \(k = 193\) is not suffi
|
| 38 |
+
|
| 39 |
+
... [truncated 823 chars] ...
|
| 40 |
+
|
| 41 |
+
n can be divided into two parts:
|
| 42 |
+
- One part where the removed cell was on a black square.
|
| 43 |
+
- Another part where the removed cell was on a white square.
|
| 44 |
+
|
| 45 |
+
Each of these parts can be independently tiled using dominoes such that no domino contains more than one marked cell. Therefore, removing any one marked cell does not disrupt the tiling.
|
| 46 |
+
|
| 47 |
+
6. **Ensuring Minimality:**
|
| 48 |
+
To prove that \(194\) is the minimal number, consider the following:
|
| 49 |
+
- Suppose \(k = 193\). Then, there exists a tiling with \(193\) marked cells.
|
| 50 |
+
- If we remove one marked cell from this tiling, the remaining \(192\) marked cells must still allow for a tiling.
|
| 51 |
+
- This implies that \(192\) marked cells would suffice for the tiling.
|
| 52 |
+
|
| 53 |
+
7. **Contradiction:**
|
| 54 |
+
However, if \(k = 192\), it is impossible to tile the board with \(192\) marked cells because marking \(192\) cells leaves \(194\) cells unmarked, which must be part of the tiling. This results in a contradiction, as \(192\) marked cells are insufficient to allow for a valid tiling.
|
| 55 |
+
|
| 56 |
+
8. **Conclusion:**
|
| 57 |
+
Since \(194\) marked cells allow for a valid tiling and \(193\) marked cells do not, the minimal \(k\) required is:
|
| 58 |
+
\[
|
| 59 |
+
\boxed{194}
|
| 60 |
+
\]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
```
|
| 62 |
|
| 63 |
**Incorrect** (1 shown)
|
| 64 |
|
| 65 |
+
- **reference**: `$g(x)=c, g(x)=\lceil x \rceil, g(x)=\lfloor x \rfloor$`
|
| 66 |
- **overall** (0/8 completions correct)
|
| 67 |
+
- **extracted** (✗): `h(x) = kx + c \quad \text{for some } k \in \mathbb{Z}, \ c \in \mathbb{Z}`
|
| 68 |
- **completion**:
|
| 69 |
|
| 70 |
```text
|
| 71 |
+
1. **Initial Setup and Substitution**:
|
| 72 |
+
Let \( h(x) = y \) for some \( y \in \mathbb{Z} \). We need to find the general form of \( h \) that satisfies the given functional equation for all \( x \in \mathbb{Q} \), \( a \in \mathbb{Z} \), and \( b \in \mathbb{N} \).
|
| 73 |
+
|
| 74 |
+
2. **Substitution and Simplification**:
|
| 75 |
+
Substitute \( x = \frac{a}{b} \) into the functional equation:
|
| 76 |
+
\[
|
| 77 |
+
h\left(\frac{a}{b
|
| 78 |
+
|
| 79 |
+
... [truncated 823 chars] ...
|
| 80 |
+
|
| 81 |
+
kx + c \quad \text{for some } k \in \mathbb{Z}, \ c \in \mathbb{Z}
|
| 82 |
+
\]
|
| 83 |
+
|
| 84 |
+
5. **Verification**:
|
| 85 |
+
To verify that \( h(x) = kx + c \) satisfies the original functional equation, substitute \( h(x) = kx + c \) into the equation:
|
| 86 |
+
\[
|
| 87 |
+
h(x) = h\left(\frac{h(bx - a) + a}{b}\right)
|
| 88 |
+
\]
|
| 89 |
+
Substituting \( h(x) = kx + c \):
|
| 90 |
+
\[
|
| 91 |
+
kx + c = h\left(\frac{k(bx - a) + c + a}{b}\right)
|
| 92 |
+
\]
|
| 93 |
+
Simplify the argument inside the function:
|
| 94 |
+
\[
|
| 95 |
+
kx + c = h\left(\frac{kbx - ka + c + a}{b}\right)
|
| 96 |
+
\]
|
| 97 |
+
Since \( h \) is linear:
|
| 98 |
+
\[
|
| 99 |
+
kx + c = k\left(\frac{kbx - ka + c + a}{b}\right) + c
|
| 100 |
+
\]
|
| 101 |
+
Simplify the right-hand side:
|
| 102 |
+
\[
|
| 103 |
+
kx + c = \frac{k^2bx - k^2a + kc + ka}{b} + c
|
| 104 |
+
\]
|
| 105 |
+
Multiply through by \( b \) to clear the fraction:
|
| 106 |
+
\[
|
| 107 |
+
b(kx + c) = k^2bx - k^2a + kc + ka + bc
|
| 108 |
+
\]
|
| 109 |
+
Simplify and equate coefficients:
|
| 110 |
+
\[
|
| 111 |
+
bkx + bc = k^2bx - k^2a + kc + ka + bc
|
| 112 |
+
\]
|
| 113 |
+
Since \( k, c \in \mathbb{Z} \), both sides match, confirming that \( h(x) = kx + c \) is indeed a solution.
|
| 114 |
+
|
| 115 |
+
6. **Conclusion**:
|
| 116 |
+
The general form of \( h \) that satisfies the given functional equation is:
|
| 117 |
+
\[
|
| 118 |
+
\boxed{h(x) = kx + c \quad \text{for some } k \in \mathbb{Z}, \ c \in \mathbb{Z}}
|
| 119 |
+
\]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
```
|