Instructions to use cs-552-2026-kth/math_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cs-552-2026-kth/math_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-kth/math_model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cs-552-2026-kth/math_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-kth/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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cs-552-2026-kth/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-kth/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-kth/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-kth/math_model
- SGLang
How to use cs-552-2026-kth/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-kth/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-kth/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-kth/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-kth/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-kth/math_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-kth/math_model
Update Automated MNLP evaluation report (2026-06-03)
Browse files- EVAL_REPORT.md +55 -37
EVAL_REPORT.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-kth/math_model`](https://huggingface.co/cs-552-2026-kth/math_model)
|
| 4 |
- **Owner(s):** group **kth**
|
| 5 |
-
- **Generated at:** 2026-06-
|
| 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,31 +24,42 @@ _Prompts are intentionally omitted to avoid revealing benchmark contents. For mu
|
|
| 24 |
|
| 25 |
**Correct** (1 shown)
|
| 26 |
|
| 27 |
-
- **reference**: `\frac{
|
| 28 |
-
- **overall** (
|
| 29 |
-
- **extracted** (✓): `\frac{
|
| 30 |
- **completion**:
|
| 31 |
|
| 32 |
```text
|
| 33 |
<think>
|
| 34 |
-
|
|
|
|
| 35 |
|
| 36 |
-
|
|
|
|
| 37 |
|
| 38 |
-
|
|
|
|
| 39 |
|
| 40 |
-
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
</think>
|
| 43 |
|
| 44 |
-
Therefore, the answer is \boxed{\frac{
|
| 45 |
```
|
| 46 |
|
| 47 |
**Incorrect** (1 shown)
|
| 48 |
|
| 49 |
- **reference**: `756`
|
| 50 |
- **overall** (0/8 completions correct)
|
| 51 |
-
- **extracted** (✗): `
|
| 52 |
- **completion**:
|
| 53 |
|
| 54 |
```text
|
|
@@ -59,39 +70,46 @@ _Prompts are intentionally omitted to avoid revealing benchmark contents. For mu
|
|
| 59 |
\[ BC = 13 + 19 = 32 \]
|
| 60 |
\[ AC = 11 + 19 = 30 \]
|
| 61 |
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
... [truncated 233 chars] ...
|
| 65 |
-
|
| 66 |
-
43 \cdot 11 \cdot \sqrt{13} \]
|
| 67 |
|
| 68 |
-
|
| 69 |
|
| 70 |
-
|
| 71 |
-
\[
|
| 72 |
-
\[ XZ =
|
| 73 |
|
| 74 |
-
Using
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
-
|
| 77 |
-
\[
|
|
|
|
|
|
|
| 78 |
|
| 79 |
-
|
| 80 |
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
\[
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
\[ \frac{5}{3^3} = \frac{1}{9} \]
|
| 90 |
|
| 91 |
Now, we can find $XZ^2$:
|
| 92 |
-
|
| 93 |
-
\[ XZ^2 =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
</think>
|
| 95 |
|
| 96 |
-
Therefore, the answer is \boxed{
|
| 97 |
```
|
|
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-kth/math_model`](https://huggingface.co/cs-552-2026-kth/math_model)
|
| 4 |
- **Owner(s):** group **kth**
|
| 5 |
+
- **Generated at:** 2026-06-03T08:04:32+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.3600 | ok |
|
| 15 |
| Knowledge | — | not run |
|
| 16 |
| Multilingual | — | not run |
|
| 17 |
| Safety | — | not run |
|
|
|
|
| 24 |
|
| 25 |
**Correct** (1 shown)
|
| 26 |
|
| 27 |
+
- **reference**: `$\frac{a}{2}$`
|
| 28 |
+
- **overall** (1/8 completions correct)
|
| 29 |
+
- **extracted** (✓): `\frac{a}{2}`
|
| 30 |
- **completion**:
|
| 31 |
|
| 32 |
```text
|
| 33 |
<think>
|
| 34 |
+
## Step 1: Understand the given problem and visualize the isosceles triangle \(XYZ\) and its properties.
|
| 35 |
+
We are given an isosceles triangle \(XYZ\) with \(XY = XZ\), and \(P\) is its circumcenter. We also have \(Q\) as the midpoint of \(YZ\) and \(R\) as the image of \(Q\) after reflection across the side \(XZ\). Additionally, \(S\) is a point chosen such that the quadrilateral \(XQYS\) is a rectangle.
|
| 36 |
|
| 37 |
+
## Step 2: Determine the properties of the circumcenter \(P\) and its relation to the triangle \(XYZ\).
|
| 38 |
+
Since \(P\) is the circumcenter of \(XYZ\), it is equidistant from the vertices \(X\), \(Y\), and \(Z\). This implies that \(PX = PY = PZ\).
|
| 39 |
|
| 40 |
+
## Step 3: Analyze the relationship between \(Q\), \(R\), and the triangle \(XYZ\).
|
| 41 |
+
Given that \(Q\) is the midpoint of \(YZ\) and \(R\) is the image of \(Q\) after reflection across the side \(XZ\), we can conclude that \(QR\) is parallel to \(YZ\) and half its length.
|
| 42 |
|
| 43 |
+
## Step 4: Understand the properties of the rectangle \(XQYS\).
|
| 44 |
+
Since \(XQYS\) is a rectangle, opposite sides are equal and parallel, and all angles are right angles.
|
| 45 |
+
|
| 46 |
+
## Step 5: Determine the relationship between \(\angle YXZ\) and \(\angle PRS\).
|
| 47 |
+
Since \(P\) is the circumcenter of \(XYZ\), \(\angle YXZ\) is twice the angle subtended by the same arc at the center of the circle, which is \(\angle PRS\).
|
| 48 |
+
|
| 49 |
+
## Step 6: Express \(\angle PRS\) in terms of \(a\).
|
| 50 |
+
Given that \(\angle YXZ = a\), we know that \(\angle PRS = \frac{a}{2}\).
|
| 51 |
+
|
| 52 |
+
The final answer is: $
|
| 53 |
</think>
|
| 54 |
|
| 55 |
+
Therefore, the answer is \boxed{\frac{a}{2}}.
|
| 56 |
```
|
| 57 |
|
| 58 |
**Incorrect** (1 shown)
|
| 59 |
|
| 60 |
- **reference**: `756`
|
| 61 |
- **overall** (0/8 completions correct)
|
| 62 |
+
- **extracted** (✗): `4180`
|
| 63 |
- **completion**:
|
| 64 |
|
| 65 |
```text
|
|
|
|
| 70 |
\[ BC = 13 + 19 = 32 \]
|
| 71 |
\[ AC = 11 + 19 = 30 \]
|
| 72 |
|
| 73 |
+
The centers of the balloons $A$, $B$, and $C$ form a triangle with side lengths $24$, $32$, a
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
+
... [truncated 821 chars] ...
|
| 76 |
|
| 77 |
+
2XY^2 + 2YZ^2 - 2X^2 \]
|
| 78 |
+
\[ XZ^2 = 2 \cdot 560 + 2YZ^2 - 2X^2 \]
|
| 79 |
+
\[ XZ^2 = 1120 + 2YZ^2 - 2X^2 \]
|
| 80 |
|
| 81 |
+
Using the Law of Cosines on triangle $AXC$, we can find $YZ^2$:
|
| 82 |
+
\[ YZ^2 = 2X^2 + 2AC^2 \]
|
| 83 |
+
\[ YZ^2 = 2X^2 + 2 \cdot 30^2 \]
|
| 84 |
+
\[ YZ^2 = 2X^2 + 1800 \]
|
| 85 |
|
| 86 |
+
Substituting this into the equation for $XZ^2$, we get:
|
| 87 |
+
\[ XZ^2 = 1120 + 2(2X^2 + 1800) - 2X^2 \]
|
| 88 |
+
\[ XZ^2 = 1120 + 4X^2 + 3600 - 2X^2 \]
|
| 89 |
+
\[ XZ^2 = 4720 + 2X^2 \]
|
| 90 |
|
| 91 |
+
Now, we need to find $X^2$.
|
| 92 |
|
| 93 |
+
Using the Law of Cosines on triangle $AXC$, we can find $X^2$:
|
| 94 |
+
\[ X^2 = 2AX \cdot AC \cdot \cos(\angle AXC) \]
|
| 95 |
+
\[ X^2 = 2 \cdot 11 \cdot 30 \cdot \left( -\frac{52031}{64800} \right) \]
|
| 96 |
+
\[ X^2 = -330 \cdot \frac{52031}{64800} \]
|
| 97 |
+
\[ X^2 = -\frac{17169230}{64800} \]
|
| 98 |
+
\[ X^2 = -\frac{8584615}{32400} \]
|
| 99 |
+
\[ X^2 = -\frac{1716923}{6480} \]
|
|
|
|
|
|
|
| 100 |
|
| 101 |
Now, we can find $XZ^2$:
|
| 102 |
+
\[ XZ^2 = 4720 + 2X^2 \]
|
| 103 |
+
\[ XZ^2 = 4720 + 2 \left( -\frac{1716923}{6480} \right) \]
|
| 104 |
+
\[ XZ^2 = 4720 - \frac{3433846}{6480} \]
|
| 105 |
+
\[ XZ^2 = 4720 - \frac{1716923}{3240} \]
|
| 106 |
+
\[ XZ^2 = 4720 - \frac{1716923}{3240} \]
|
| 107 |
+
\[ XZ^2 = \frac{15297600 - 1716923}{3240} \]
|
| 108 |
+
\[ XZ^2 = \frac{13580677}{3240} \]
|
| 109 |
+
\[ XZ^2 = \frac{13580677}{3240} \]
|
| 110 |
+
\[ XZ^2 = 4180.42 \]
|
| 111 |
+
\[ XZ^2 =
|
| 112 |
</think>
|
| 113 |
|
| 114 |
+
Therefore, the answer is \boxed{4180}.
|
| 115 |
```
|