Instructions to use cs-552-2026-baseline/math_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cs-552-2026-baseline/math_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-baseline/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-baseline/math_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-baseline/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-baseline/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-baseline/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-baseline/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-baseline/math_model
- SGLang
How to use cs-552-2026-baseline/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-baseline/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-baseline/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-baseline/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-baseline/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-baseline/math_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-baseline/math_model
Update Automated MNLP evaluation report (2026-05-19)
Browse files- EVAL_REPORT.md +109 -126
EVAL_REPORT.md
CHANGED
|
@@ -1,168 +1,151 @@
|
|
| 1 |
# Automated MNLP evaluation report
|
| 2 |
|
| 3 |
-
- **Model repo:** [`cs-552-2026-
|
| 4 |
-
- **Owner(s):** group **
|
| 5 |
-
- **Generated at:** 2026-05-
|
| 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 |
|
| 13 |
-
|---|---
|
| 14 |
-
| Math |
|
| 15 |
-
| Knowledge |
|
| 16 |
-
| Multilingual |
|
| 17 |
-
| Safety |
|
| 18 |
|
| 19 |
## Sample completions
|
| 20 |
|
|
|
|
|
|
|
| 21 |
### Math
|
| 22 |
|
| 23 |
-
**Correct** (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
-
- **prompt** (truncated): `Determine the remainder obtained when the polynomial \((5x+9)^{611}+(x+5)^{11}+(x-1)^{11}+3x^2+1\) is divided by \(x+2\).`
|
| 26 |
-
- **reference**: `12`
|
| 27 |
-
- **extracted answers** (7/8 correct, ✓✓✓✗✓✓✓✓):
|
| 28 |
-
- `12`
|
| 29 |
-
- `12`
|
| 30 |
-
- `12`
|
| 31 |
-
- `<no answer>`
|
| 32 |
-
- `12`
|
| 33 |
-
- `12`
|
| 34 |
-
- `12`
|
| 35 |
-
- `12`
|
| 36 |
-
- **raw completions**:
|
| 37 |
-
- completion 1:
|
| 38 |
```text
|
| 39 |
<think>
|
| 40 |
-
Okay, so I need to
|
| 41 |
|
| 42 |
-
|
| 43 |
|
| 44 |
-
|
| 45 |
|
| 46 |
-
|
|
|
|
| 47 |
|
| 48 |
-
|
| 49 |
-
```
|
| 50 |
-
- completion 2:
|
| 51 |
-
```text
|
| 52 |
-
<think>
|
| 53 |
-
Okay, so I need to find the remainder when this big polynomial is divided by x + 2. Hmm, I remember that when you divide a polynomial by x - a, the remainder is just the value of the polynomial at x = a. But here, the divisor is x + 2, which is the same as x - (-2). So, according to the Remainder Theorem, the remainder should be the value of the polynomial evaluated at x = -2. That makes sense. So, I just need to plug in x = -2 into the polynomial and compute the result. Let me write that down.
|
| 54 |
|
| 55 |
-
|
| 56 |
|
| 57 |
-
|
| 58 |
-
```
|
| 59 |
-
|
| 60 |
-
- **prompt** (truncated): `Determine the distance, in units, between the points (2, −6) and (−4, 3), and write your answer in simplest radical form.`
|
| 61 |
-
- **reference**: `3\sqrt{13}`
|
| 62 |
-
- **extracted answers** (8/8 correct, ✓✓✓✓✓✓✓✓):
|
| 63 |
-
- `3\sqrt{13}`
|
| 64 |
-
- `3\sqrt{13}`
|
| 65 |
-
- `3\sqrt{13}`
|
| 66 |
-
- `3\sqrt{13}`
|
| 67 |
-
- `3\sqrt{13}`
|
| 68 |
-
- `3\sqrt{13}`
|
| 69 |
-
- `3\sqrt{13}`
|
| 70 |
-
- `3\sqrt{13}`
|
| 71 |
-
- **raw completions**:
|
| 72 |
-
- completion 1:
|
| 73 |
-
```text
|
| 74 |
-
<think>
|
| 75 |
-
Okay, so I need to find the distance between the two points (2, -6) and (-4, 3). Hmm, I remember there's a formula for the distance between two points in a coordinate plane. Let me think... Oh right, the distance formula is derived from the Pythagorean theorem. It's something like the square root of [(x2 - x1) squared plus (y2 - y1) squared]. Let me write that down to make sure.
|
| 76 |
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
```text
|
| 81 |
-
<think>
|
| 82 |
-
Okay, so I need to find the distance between the two points (2, −6) and (−4, 3). Hmm, I remember there's a formula for the distance between two points in a coordinate plane. Let me try to recall. I think it's something like the square root of the sum of the squares of the differences in the x-coordinates and y-coordinates. Wait, let me make sure.
|
| 83 |
|
| 84 |
-
|
| 85 |
|
| 86 |
-
|
| 87 |
-
```
|
| 88 |
-
|
| 89 |
-
**Incorrect** (2 shown)
|
| 90 |
-
|
| 91 |
-
- **prompt** (truncated): `For a 4-question math test, each question’s topic is selected randomly and independently from the set {algebra, combinatorics, geometry, number theory}. Conditional on the test containing at least one algebra question, at least one combinatorics question, and at least one geometry question, determine the probability that it also contains at least one number theory question.`
|
| 92 |
-
- **reference**: `\frac{2}{5}`
|
| 93 |
-
- **extracted answers** (0/8 correct, ✗✗✗✗✗✗✗✗):
|
| 94 |
-
- `<no answer>`
|
| 95 |
-
- `<no answer>`
|
| 96 |
-
- `<no answer>`
|
| 97 |
-
- `<no answer>`
|
| 98 |
-
- `<no answer>`
|
| 99 |
-
- `<no answer>`
|
| 100 |
-
- `<no answer>`
|
| 101 |
-
- `\dfrac{2}{5}`
|
| 102 |
-
- **raw completions**:
|
| 103 |
-
- completion 1:
|
| 104 |
-
```text
|
| 105 |
-
<think>
|
| 106 |
-
Okay, so I need to find the probability that a 4-question math test, where each question is randomly selected from algebra, combinatorics, geometry, and number theory, also contains at least one number theory question, given that it has at least one of each of algebra, combinatorics, and geometry.
|
| 107 |
|
| 108 |
-
|
| 109 |
-
```
|
| 110 |
-
- completion 2:
|
| 111 |
-
```text
|
| 112 |
-
<think>
|
| 113 |
-
Okay, so I need to find the probability that a 4-question math test, where each question is randomly selected from algebra, combinatorics, geometry, and number theory, has at least one number theory question given that it has at least one of each of algebra, combinatorics, and geometry.
|
| 114 |
|
| 115 |
-
|
| 116 |
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 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 |
-
a < b + c,
|
| 150 |
-
b < a + c.
|
| 151 |
|
| 152 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
```
|
| 154 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
```text
|
| 156 |
<think>
|
| 157 |
-
Okay, so I need to find the
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
|
| 159 |
-
|
| 160 |
|
| 161 |
-
|
| 162 |
|
| 163 |
-
|
| 164 |
|
| 165 |
-
|
| 166 |
|
| 167 |
-
|
| 168 |
```
|
|
|
|
| 1 |
# Automated MNLP evaluation report
|
| 2 |
|
| 3 |
+
- **Model repo:** [`cs-552-2026-baseline/math_model`](https://huggingface.co/cs-552-2026-baseline/math_model)
|
| 4 |
+
- **Owner(s):** group **baseline**
|
| 5 |
+
- **Generated at:** 2026-05-19T03:22:52+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 |
## Summary
|
| 11 |
|
| 12 |
+
| Benchmark | Accuracy | Status |
|
| 13 |
+
|---|---:|---|
|
| 14 |
+
| Math | 0.1500 | ok |
|
| 15 |
+
| Knowledge | — | not run |
|
| 16 |
+
| Multilingual | — | not run |
|
| 17 |
+
| Safety | — | not run |
|
| 18 |
|
| 19 |
## Sample completions
|
| 20 |
|
| 21 |
+
_Prompts are intentionally omitted to avoid revealing benchmark contents. For multi-completion problems, only one completion is shown per sample._
|
| 22 |
+
|
| 23 |
### Math
|
| 24 |
|
| 25 |
+
**Correct** (1 shown)
|
| 26 |
+
|
| 27 |
+
- **reference**: `70`
|
| 28 |
+
- **overall** (5/8 completions correct)
|
| 29 |
+
- **extracted** (✓): `70`
|
| 30 |
+
- **completion**:
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
```text
|
| 33 |
<think>
|
| 34 |
+
Okay, so I need to figure out the sum of all integer values of the base b greater than 9 for which the base-b number 17 divides the base-b number 97. Hmm, let me start by understanding what the problem is asking.
|
| 35 |
|
| 36 |
+
First, base-b numbers. In base b, the number 17 would be equal to 1*b + 7, right? And the number 97 in base b would be 9*b + 7. The problem says that 17 divides 97 in base b. So,
|
| 37 |
|
| 38 |
+
... [truncated 823 chars] ...
|
| 39 |
|
| 40 |
+
n \mathbb{Z}
|
| 41 |
+
$$
|
| 42 |
|
| 43 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
+
### Step 2: Simplify the division
|
| 46 |
|
| 47 |
+
We perform the division:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
+
$$
|
| 50 |
+
\frac{9b + 7}{b + 7} = 9 - \frac{56}{b + 7}
|
| 51 |
+
$$
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
+
This shows that for the expression to be an integer, $ \frac{56}{b + 7} $ must also be an integer. Therefore, $ b + 7 $ must be a **divisor** of 56.
|
| 54 |
|
| 55 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
+
### Step 3: Find all divisors of 56 greater than 16
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
+
We factorize 56:
|
| 60 |
|
| 61 |
+
$$
|
| 62 |
+
56 = 2^3 \cdot 7
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
The positive divisors of 56 are:
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
1, 2, 4, 7, 8, 14, 28, 56
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
We are only interested in those divisors **greater than 16**, so we take:
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
28, 56
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
Now, compute $ b $ from $ b + 7 = d $:
|
| 78 |
+
|
| 79 |
+
- If $ b + 7 = 28 \Rightarrow b = 21 $
|
| 80 |
+
- If $ b + 7 = 56 \Rightarrow b = 49 $
|
| 81 |
+
|
| 82 |
+
---
|
| 83 |
+
|
| 84 |
+
### Step 4: Verify the results
|
| 85 |
+
|
| 86 |
+
Check if both bases satisfy the original condition:
|
| 87 |
|
| 88 |
+
- For $ b = 21 $:
|
| 89 |
+
$$
|
| 90 |
+
17_{21} = 1 \cdot 21 + 7 = 28,\quad 97_{21} = 9 \cdot 21 + 7 = 196
|
| 91 |
+
$$
|
| 92 |
+
$$
|
| 93 |
+
196 \div 28 = 7 \quad \text{(integer)}
|
| 94 |
+
$$
|
| 95 |
|
| 96 |
+
- For $ b = 49 $:
|
| 97 |
+
$$
|
| 98 |
+
17_{49} = 1 \cdot 49 + 7 = 56,\quad 97_{49} = 9 \cdot 49 + 7 = 448
|
| 99 |
+
$$
|
| 100 |
+
$$
|
| 101 |
+
448 \div 56 = 8 \quad \text{(integer)}
|
| 102 |
+
$$
|
| 103 |
|
| 104 |
+
Both values of $ b $ are valid and greater than 9.
|
| 105 |
|
| 106 |
+
---
|
|
|
|
|
|
|
| 107 |
|
| 108 |
+
### Final Step: Compute the sum
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
21 + 49 = 70
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
---
|
| 115 |
+
|
| 116 |
+
### Final Answer
|
| 117 |
+
|
| 118 |
+
$$
|
| 119 |
+
\boxed{70}
|
| 120 |
+
$$
|
| 121 |
```
|
| 122 |
+
|
| 123 |
+
**Incorrect** (1 shown)
|
| 124 |
+
|
| 125 |
+
- **reference**: `\frac{270}7\text{ degrees}`
|
| 126 |
+
- **overall** (0/8 completions correct)
|
| 127 |
+
- **extracted** (✗): `<no answer>`
|
| 128 |
+
- **completion**:
|
| 129 |
+
|
| 130 |
```text
|
| 131 |
<think>
|
| 132 |
+
Okay, so I need to find the measure of angle BAC in this figure where there's a square and a regular heptagon sharing the side AD. Let me try to visualize the Asymptote figure first. The Asymptote code draws a regular heptagon and a square. The square shares the side AD with the heptagon. Points A, B, C, D are labeled, with A at the bottom, B on the left, C at the southeast, and D at the b
|
| 133 |
+
|
| 134 |
+
... [truncated 822 chars] ...
|
| 135 |
+
|
| 136 |
+
as C + F - A. Let me check that.
|
| 137 |
+
|
| 138 |
+
D is defined as C + (F - A). So if C is (x_A, y_F), then F - A is (x_F - x_A, y_F - y_A). Then adding that to C gives (x_A + (x_F - x_A), y_F + (y_F - y_A)) = (x_F, y_F + y_F - y_A) = (x_F, 2y_F - y_A). So coordinates of D are (x_F, 2y_F - y_A). Then the square is A-C-D-F. So from A to C to D to F and back to A? So A is (x_A, y_A), C is (x_A, y_F), D is (x_F, 2y_F - y_A), and F is (x_F, y_F). So connecting A to C to D to F to A. Let me check if this is a square.
|
| 139 |
+
|
| 140 |
+
For it to be a square, all sides must be equal and adjacent sides must be perpendicular. Let's check the lengths.
|
| 141 |
|
| 142 |
+
Length AC: distance between A and C. Since C is (x_A, y_F) and A is (x_A, y_A), so AC is vertical line, length |y_F - y_A|.
|
| 143 |
|
| 144 |
+
Length CD: distance between C (x_A, y_F) and D (x_F, 2y_F - y_A). So sqrt[(x_F - x_A)^2 + (2y_F - y_A - y_F)^2] = sqrt[(x_F - x_A)^2 + (y_F - y_A)^2].
|
| 145 |
|
| 146 |
+
Length DF: distance between D (x_F, 2y_F - y_A) and F (x_F, y_F). That's sqrt[(x_F - x_F)^2 + (y_F - (2y_F - y_A))^2] = sqrt[0 + (-y_F + y_A)^2] = |y_A - y_F|.
|
| 147 |
|
| 148 |
+
Length FA: distance between F (x_F, y_F) and A (x_A, y_A): sqrt[(x_F - x_A)^2 + (y_F - y_A)^2].
|
| 149 |
|
| 150 |
+
So for it to be a square, AC = CD = DF = FA. So
|
| 151 |
```
|