Instructions to use cs-552-2026-the-transformers/math_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cs-552-2026-the-transformers/math_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-the-transformers/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-the-transformers/math_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-the-transformers/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-the-transformers/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-the-transformers/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-the-transformers/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-the-transformers/math_model
- SGLang
How to use cs-552-2026-the-transformers/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-the-transformers/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-the-transformers/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-the-transformers/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-the-transformers/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-the-transformers/math_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-the-transformers/math_model
Automated MNLP evaluation report (2026-05-29)
#3
by zechen-nlp - opened
- EVAL_REPORT.md +66 -55
EVAL_REPORT.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-the-transformers/math_model`](https://huggingface.co/cs-552-2026-the-transformers/math_model)
|
| 4 |
- **Owner(s):** group **the-transformers**
|
| 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._
|
|
@@ -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,84 +24,95 @@ _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 |
-
To solve this problem, we need to
|
| 35 |
|
| 36 |
-
First,
|
| 37 |
-
\[
|
| 38 |
-
194 \times 194 = 37636
|
| 39 |
-
\]
|
| 40 |
-
Since each domino covers exactly 2 cells, the maximum number of dominoes that can tile the
|
| 41 |
-
|
| 42 |
-
... [truncated 481 chars] ...
|
| 43 |
-
|
| 44 |
-
e least positive integer \(k\) for which one can choose \(k\) cells to mark so that there is exactly one tiling of the board by dominoes in which every domino contains at most one marked cell, we need to consider the implications of marking cells on the tiling.
|
| 45 |
-
|
| 46 |
-
If we mark \(k\) cells, the number of possible tilings decreases. However, we need to ensure that there is exactly one tiling in which every domino contains at most one marked cell.
|
| 47 |
|
| 48 |
-
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
After analyzing the problem, we find that the least positive integer \(k\) for which this is possible is:
|
| 53 |
\[
|
| 54 |
-
\
|
| 55 |
\]
|
| 56 |
-
```
|
| 57 |
-
|
| 58 |
-
**Incorrect** (1 shown)
|
| 59 |
-
|
| 60 |
-
- **reference**: `$g(x)=c, g(x)=\lceil x \rceil, g(x)=\lfloor x \rfloor$`
|
| 61 |
-
- **overall** (0/8 completions correct)
|
| 62 |
-
- **extracted** (✗): `h(x) = 0 \text{ for all } x \in \mathbb{Q}`
|
| 63 |
-
- **completion**:
|
| 64 |
-
|
| 65 |
-
```text
|
| 66 |
-
<think>
|
| 67 |
-
To solve the problem, we need to find all mappings \(h:\mathbb{Q}\to\mathbb{Z}\) that satisfy the given functional equation for all \(x \in \mathbb{Q}\), \(a \in \mathbb{Z}\), and \(b \in \mathbb{N}\):
|
| 68 |
|
|
|
|
| 69 |
\[
|
| 70 |
-
|
| 71 |
\]
|
| 72 |
|
| 73 |
-
|
| 74 |
-
|
| 75 |
\[
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
... [truncated 823 chars] ...
|
| 79 |
-
|
| 80 |
-
efore, the solution is:
|
| 81 |
|
|
|
|
| 82 |
\[
|
| 83 |
-
|
| 84 |
\]
|
| 85 |
|
| 86 |
-
|
| 87 |
-
|
| 88 |
\[
|
| 89 |
-
|
| 90 |
\]
|
| 91 |
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
Finally, to ensure that the mapping is well-defined, we need to check that \(h(x)\) is an integer for all \(x \in \mathbb{Q}\). Since \(h(x)\) is constant, it is always an integer, and thus the solution is valid.
|
| 95 |
-
|
| 96 |
-
Therefore, the final answer is:
|
| 97 |
-
|
| 98 |
\[
|
| 99 |
-
|
| 100 |
\]
|
| 101 |
|
| 102 |
-
|
|
|
|
|
|
|
|
|
|
| 103 |
|
|
|
|
| 104 |
\[
|
| 105 |
-
\boxed{
|
| 106 |
\]
|
| 107 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-the-transformers/math_model`](https://huggingface.co/cs-552-2026-the-transformers/math_model)
|
| 4 |
- **Owner(s):** group **the-transformers**
|
| 5 |
+
- **Generated at:** 2026-05-29T06:54:15+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.3800 | ok |
|
| 15 |
| Knowledge | — | not run |
|
| 16 |
| Multilingual | — | not run |
|
| 17 |
| Safety | — | not run |
|
|
|
|
| 24 |
|
| 25 |
**Correct** (1 shown)
|
| 26 |
|
| 27 |
+
- **reference**: `\frac{639}{40}`
|
| 28 |
+
- **overall** (5/8 completions correct)
|
| 29 |
+
- **extracted** (✓): `\frac{639}{40}`
|
| 30 |
- **completion**:
|
| 31 |
|
| 32 |
```text
|
| 33 |
<think>
|
| 34 |
+
To solve this problem, we need to find the distance between two buildings on the map given the actual distance and the scale of the map.
|
| 35 |
|
| 36 |
+
First, let's understand the scale of the map. According to the problem, a length of 3 inches on the map represents 10 miles in the real world. This means that for every 3 inches on the map, the actual distance is 10 miles.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
+
We can set up a proportion to find the distance on the map that corresponds to 53.25 miles in the real world. Let's denote the distance on the map as \(x\) inches.
|
| 39 |
|
| 40 |
+
The proportion can be written as:
|
|
|
|
|
|
|
| 41 |
\[
|
| 42 |
+
\frac{3 \text{ inches}}{10 \text{ miles}} = \frac{x \text{ inches}}{53.25 \text{ miles}}
|
| 43 |
\]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
+
To solve for \(x\), we can cross-multiply:
|
| 46 |
\[
|
| 47 |
+
3 \times 53.25 = 10 \times x
|
| 48 |
\]
|
| 49 |
|
| 50 |
+
Calculating the left side:
|
|
|
|
| 51 |
\[
|
| 52 |
+
3 \times 53.25 = 159.75
|
| 53 |
+
\]
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
+
So, we have:
|
| 56 |
\[
|
| 57 |
+
159.75 = 10x
|
| 58 |
\]
|
| 59 |
|
| 60 |
+
To find \(x\), we divide both sides by 10:
|
|
|
|
| 61 |
\[
|
| 62 |
+
x = \frac{159.75}{10} = 15.975
|
| 63 |
\]
|
| 64 |
|
| 65 |
+
Now, we need to express 15.975 as a fraction. We can write 15.975 as:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
\[
|
| 67 |
+
15.975 = \frac{15975}{1000}
|
| 68 |
\]
|
| 69 |
|
| 70 |
+
We can simplify this fraction by dividing both the numerator and the denominator by their greatest common divisor, which is 25:
|
| 71 |
+
\[
|
| 72 |
+
\frac{15975 \div 25}{1000 \div 25} = \frac{639}{40}
|
| 73 |
+
\]
|
| 74 |
|
| 75 |
+
Therefore, the distance between the two buildings on the map, written as a fraction, is:
|
| 76 |
\[
|
| 77 |
+
\boxed{\frac{639}{40}}
|
| 78 |
\]
|
| 79 |
```
|
| 80 |
+
|
| 81 |
+
**Incorrect** (1 shown)
|
| 82 |
+
|
| 83 |
+
- **reference**: `756`
|
| 84 |
+
- **overall** (0/8 completions correct)
|
| 85 |
+
- **extracted** (✗): `<no answer>`
|
| 86 |
+
- **completion**:
|
| 87 |
+
|
| 88 |
+
```text
|
| 89 |
+
<think>
|
| 90 |
+
To solve this problem, we need to use the properties of spheres and the distances between their centers. Let's denote the centers of the three balloons as points $X$, $Y$, and $Z$, and their radii as $r_1 = 11$, $r_2 = 13$, and $r_3 = 19$, respectively.
|
| 91 |
+
|
| 92 |
+
Since the balloons are externally tangent to each other, the distance between any two centers is the sum of their radii. Therefore, we ha
|
| 93 |
+
|
| 94 |
+
... [truncated 822 chars] ...
|
| 95 |
+
|
| 96 |
+
XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 97 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 98 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 99 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 100 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 101 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 102 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 103 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 104 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 105 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 106 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 107 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 108 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 109 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 110 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 111 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 112 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 113 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 114 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 115 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 116 |
+
\[ XZ^2 = 1600 - 2 \cdot 24 \cdot \frac{10912}{480}. \]
|
| 117 |
+
\[ XZ^2 = 1600 - 2 \cdot 2
|
| 118 |
+
```
|