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-27)
#2
by zechen-nlp - opened
- EVAL_REPORT.md +44 -24
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._
|
|
@@ -25,63 +25,83 @@ _Prompts are intentionally omitted to avoid revealing benchmark contents. For mu
|
|
| 25 |
**Correct** (1 shown)
|
| 26 |
|
| 27 |
- **reference**: `194`
|
| 28 |
-
- **overall** (
|
| 29 |
- **extracted** (✓): `194`
|
| 30 |
- **completion**:
|
| 31 |
|
| 32 |
```text
|
| 33 |
<think>
|
| 34 |
-
To solve this problem, we need to understand the conditions under which a \(194 \times 194\) board can be tiled with \(1 \times 2\) and \(2 \times 1\) dominoes, and how marking cells affects this tiling.
|
| 35 |
|
| 36 |
-
First, we
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
-
... [truncated
|
| 39 |
|
| 40 |
-
|
| 41 |
|
| 42 |
-
|
| 43 |
|
| 44 |
-
|
| 45 |
|
| 46 |
-
|
| 47 |
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
| 49 |
```
|
| 50 |
|
| 51 |
**Incorrect** (1 shown)
|
| 52 |
|
| 53 |
- **reference**: `$g(x)=c, g(x)=\lceil x \rceil, g(x)=\lfloor x \rfloor$`
|
| 54 |
- **overall** (0/8 completions correct)
|
| 55 |
-
- **extracted** (✗): `h(x) =
|
| 56 |
- **completion**:
|
| 57 |
|
| 58 |
```text
|
| 59 |
<think>
|
| 60 |
-
|
|
|
|
| 61 |
\[
|
| 62 |
-
h(x)=h\
|
| 63 |
\]
|
| 64 |
|
| 65 |
-
First,
|
|
|
|
| 66 |
\[
|
| 67 |
-
h(
|
| 68 |
|
| 69 |
-
... [truncated
|
|
|
|
|
|
|
| 70 |
|
| 71 |
-
r all $a$ and $b$. Therefore, $h$ must be constant on the set of all rational numbers. Let's denote this constant value by $c$. So, we have:
|
| 72 |
\[
|
| 73 |
-
h(x) = c \
|
| 74 |
\]
|
| 75 |
-
|
|
|
|
|
|
|
| 76 |
\[
|
| 77 |
-
|
| 78 |
\]
|
| 79 |
-
Thus, the constant function $h(x) = c$ for all $x \in \mathbb{Q}$ is a solution. To confirm that this is the only solution, we need to ensure that no other functions can satisfy the given equation. Suppose there exists a non-constant function $h$ that satisfies the equation. Then, there must exist some $x$ for which $h(x) \neq c$. However, the condition $h(x) = h\!\left(\frac{h(bx-a)+a}{b}\right)$ must hold for all $x$, $a$, and $b$, and since $h$ is constant on all rational numbers, this condition can only be satisfied if $h$ is constant. Therefore, the only possible solution is the constant function $h(x) = c$ for all $x \in \mathbb{Q}$.
|
| 80 |
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
\[
|
| 83 |
-
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
-
\
|
|
|
|
| 86 |
\]
|
| 87 |
```
|
|
|
|
| 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-27T13:02:22+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._
|
|
|
|
| 25 |
**Correct** (1 shown)
|
| 26 |
|
| 27 |
- **reference**: `194`
|
| 28 |
+
- **overall** (4/8 completions correct)
|
| 29 |
- **extracted** (✓): `194`
|
| 30 |
- **completion**:
|
| 31 |
|
| 32 |
```text
|
| 33 |
<think>
|
| 34 |
+
To solve this problem, we need to understand the conditions under which a \(194 \times 194\) board can be tiled with \(1 \times 2\) and \(2 \times 1\) dominoes, and how the marking of cells affects this tiling.
|
| 35 |
|
| 36 |
+
First, we calculate the total number of cells on the board:
|
| 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 |
+
This problem can be approached by considering the implications of marking cells on the tiling. If we mark a cell, it can be part of a domino in either orientation, but it cannot be part of a domino in the other orientation if it is marked. Therefore, marking a cell reduces the number of possible tilings.
|
| 49 |
|
| 50 |
+
To find the least positive integer \(k\), we need to consider the worst-case scenario where marking cells reduces the number of tilings to exactly one. This happens when the number of possible tilings is reduced to exactly one, which requires that the number of marked cells is such that it uniquely determines the tiling.
|
| 51 |
|
| 52 |
+
After analyzing the problem, we find that the least positive integer \(k\) for which this is possible is:
|
| 53 |
+
\[
|
| 54 |
+
\boxed{194}
|
| 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 |
+
h(x) = h\left(\frac{h(bx - a) + a}{b}\right).
|
| 71 |
\]
|
| 72 |
|
| 73 |
+
First, let's consider the case when \(a = 0\). The equation becomes:
|
| 74 |
+
|
| 75 |
\[
|
| 76 |
+
h(x) = h\left(\frac{h(bx)}{b}\right) = h\left(\frac{h(x)}{b}\ri
|
| 77 |
|
| 78 |
+
... [truncated 823 chars] ...
|
| 79 |
+
|
| 80 |
+
efore, the solution is:
|
| 81 |
|
|
|
|
| 82 |
\[
|
| 83 |
+
h(x) = c \text{ for all } x \in \mathbb{Q},
|
| 84 |
\]
|
| 85 |
+
|
| 86 |
+
where \(c\) is an integer. Since the problem asks for all such mappings, we conclude that the only possible values for \(c\) are integers. Therefore, the solution is:
|
| 87 |
+
|
| 88 |
\[
|
| 89 |
+
\boxed{h(x) = c \text{ for all } x \in \mathbb{Q}},
|
| 90 |
\]
|
|
|
|
| 91 |
|
| 92 |
+
where \(c \in \mathbb{Z}\). To specify the integer \(c\), we need to consider the functional equation again. For any \(x \in \mathbb{Q}\), \(h(x) = h\left(\frac{h(bx - a) + a}{b}\right)\). If \(h(x) = c\), then \(c = h\left(\frac{c + a}{b}\right)\), which implies \(c = c + a\), so \(a = 0\) for any \(a \in \mathbb{Z}\). This is always true, so \(c\) can be any integer.
|
| 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 |
+
\boxed{h(x) = c \text{ for all } x \in \mathbb{Q}},
|
| 100 |
+
\]
|
| 101 |
+
|
| 102 |
+
where \(c \in \mathbb{Z}\). To specify the integer \(c\), we can choose any integer, but typically, the simplest solution is \(c = 0\), so the final answer is:
|
| 103 |
|
| 104 |
+
\[
|
| 105 |
+
\boxed{h(x) = 0 \text{ for all } x \in \mathbb{Q}}.
|
| 106 |
\]
|
| 107 |
```
|