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
Update Automated MNLP evaluation report (2026-05-13)
Browse files- EVAL_REPORT.md +6 -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 |
|
|
@@ -22,66 +22,17 @@ _Prompts are intentionally omitted to avoid revealing benchmark contents. For mu
|
|
| 22 |
|
| 23 |
### Math
|
| 24 |
|
| 25 |
-
**Correct** (1 shown)
|
| 26 |
-
|
| 27 |
-
- **reference**: `0`
|
| 28 |
-
- **overall** (4/8 completions correct)
|
| 29 |
-
- **extracted** (β): `0`
|
| 30 |
-
- **completion**:
|
| 31 |
-
|
| 32 |
-
```text
|
| 33 |
-
<think>
|
| 34 |
-
To determine the degree of the polynomial \(p(x)\), we first need to understand the structure of the polynomial and its components.
|
| 35 |
-
|
| 36 |
-
The polynomial \(p(x)\) is given by:
|
| 37 |
-
\[
|
| 38 |
-
p(x)=\frac{(x-b)(x-c)}{(a-b)(a-c)}+\frac{(x-a)(x-c)}{(b-a)(b-c)}+\frac{(x-a)(x-b)}{(c-a)(c-b)}.
|
| 39 |
-
\]
|
| 40 |
-
|
| 41 |
-
We can simplify this expression by recognizing that it is a form of a Lagrange interpolation polynomial. The Lagrange interpolation polynomial of degree 2 that passes through the points \((a, f(a))\), \((b, f(b))\), and \((c, f(c))\) is given by:
|
| 42 |
-
\[
|
| 43 |
-
f(x) = \frac{(x-b)(x-c)}{(a-b)(a-c)}f(a) + \frac{(x-a)(x-c)}{(b-a)(b-c)}f(b) + \frac{(x-a)(x-b)}{(c-a)(c-b)}f(c).
|
| 44 |
-
\]
|
| 45 |
-
|
| 46 |
-
In our case, \(f(x) = 1\) for all \(x\). Therefore, the polynomial \(p(x)\) is the Lagrange interpolation polynomial that passes through the points \((a, 1)\), \((b, 1)\), and \((c, 1)\). This polynomial is identically equal to 1 for all \(x\), because it is the unique polynomial of degree at most 2 that takes the value 1 at three distinct points.
|
| 47 |
-
|
| 48 |
-
Since \(p(x)\) is identically equal to 1, it is a constant polynomial of degree 0.
|
| 49 |
-
|
| 50 |
-
Therefore, the degree of the polynomial \(p(x)\) is:
|
| 51 |
-
\[
|
| 52 |
-
</think>
|
| 53 |
-
|
| 54 |
-
\boxed{0}.
|
| 55 |
-
\]
|
| 56 |
-
```
|
| 57 |
-
|
| 58 |
**Incorrect** (1 shown)
|
| 59 |
|
| 60 |
- **reference**: `$(n-2)2^n +1$`
|
| 61 |
- **overall** (0/8 completions correct)
|
| 62 |
-
- **extracted** (β): `
|
| 63 |
- **completion**:
|
| 64 |
|
| 65 |
```text
|
| 66 |
-
|
| 67 |
-
To solve this problem, we need to understand the structure of the set \( C_n \) and determine the greatest positive integer that cannot be represented as a sum of elements from \( C_n \).
|
| 68 |
-
|
| 69 |
-
First, let's define the set \( C_n \):
|
| 70 |
-
\[ C_n = \{2^n - 2^i : i \text{ is an integer and } 0 \leq i < n\} \]
|
| 71 |
-
|
| 72 |
-
This set contains \( n \) elements, each of which is \( 2^n - 2^i \) for \( i = 0, 1, 2, \ldo
|
| 73 |
-
|
| 74 |
-
... [truncated 732 chars] ...
|
| 75 |
-
|
| 76 |
-
d the greatest positive integer that cannot be represented as a sum of elements from \( C_n \), we can use the concept of the Frobenius number, which is the largest number that cannot be expressed as a non-negative integer combination of given integers. However, the Frobenius number is only known for two numbers, and it is not generally computable for larger sets.
|
| 77 |
-
|
| 78 |
-
Instead, we can consider the structure of the set \( C_n \) and the fact that it contains all integers of the form \( 2^n - 2^i \). The key insight is that the set \( C_n \) contains all integers from \( 1 \) to \( 2^n - 1 \) except for those that are not of the form \( 2^i(2^{n-i} - 1) \).
|
| 79 |
-
|
| 80 |
-
By examining the structure of the set \( C_n \), we can determine that the greatest positive integer that cannot be represented as a sum of elements from \( C_n \) is:
|
| 81 |
-
\[ \boxed{2^{n-1}} \]
|
| 82 |
|
| 83 |
-
|
| 84 |
|
| 85 |
-
|
| 86 |
-
\[ \boxed{2^{n-1}} \]
|
| 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-13T23:30:17+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.0000 | ok |
|
| 15 |
| Knowledge | β | not run |
|
| 16 |
| Multilingual | β | not run |
|
| 17 |
| Safety | β | not run |
|
|
|
|
| 22 |
|
| 23 |
### Math
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
**Incorrect** (1 shown)
|
| 26 |
|
| 27 |
- **reference**: `$(n-2)2^n +1$`
|
| 28 |
- **overall** (0/8 completions correct)
|
| 29 |
+
- **extracted** (β): `<no answer>`
|
| 30 |
- **completion**:
|
| 31 |
|
| 32 |
```text
|
| 33 |
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
+
... [truncated 823 chars] ...
|
| 36 |
|
| 37 |
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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