Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
trl
sft
conversational
text-generation-inference
Instructions to use cs-552-2026-MandMP/math_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cs-552-2026-MandMP/math_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-MandMP/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-MandMP/math_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-MandMP/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-MandMP/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-MandMP/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-MandMP/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-MandMP/math_model
- SGLang
How to use cs-552-2026-MandMP/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-MandMP/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-MandMP/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-MandMP/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-MandMP/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-MandMP/math_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-MandMP/math_model
Automated MNLP evaluation report (2026-05-19)
#3
by zechen-nlp - opened
- EVAL_REPORT.md +91 -36
EVAL_REPORT.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-MandMP/math_model`](https://huggingface.co/cs-552-2026-MandMP/math_model)
|
| 4 |
- **Owner(s):** group **MandMP**
|
| 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,63 +24,118 @@ _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 |
|
| 35 |
-
|
| 36 |
|
| 37 |
-
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
... [truncated 823 chars] ...
|
| 42 |
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
```
|
| 57 |
|
| 58 |
**Incorrect** (1 shown)
|
| 59 |
|
| 60 |
-
- **reference**: `
|
| 61 |
- **overall** (0/8 completions correct)
|
| 62 |
- **extracted** (✗): `<no answer>`
|
| 63 |
- **completion**:
|
| 64 |
|
| 65 |
```text
|
| 66 |
<think>
|
| 67 |
-
Okay, so I need to
|
| 68 |
-
|
| 69 |
-
First, the grid is 2x2, which means there are four squares. Each square has four sid
|
| 70 |
|
| 71 |
-
... [truncated
|
| 72 |
-
|
| 73 |
-
ares. Therefore, the colorings must be such that the red sides form a certain pattern.
|
| 74 |
-
|
| 75 |
-
Alternatively, think of the grid as a graph where each square is connected to its neighbors. However, not sure.
|
| 76 |
-
|
| 77 |
-
Alternatively, think of the grid as a graph with horizontal and vertical edges. Each horizontal edge is between two squares, and each vertical edge is between two squares. Each horizontal edge is part of the top and bottom of the squares, and each vertical edge is part of the left and right of the squares.
|
| 78 |
|
| 79 |
-
|
| 80 |
|
| 81 |
-
|
| 82 |
|
| 83 |
-
|
| 84 |
|
| 85 |
-
|
| 86 |
```
|
|
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-MandMP/math_model`](https://huggingface.co/cs-552-2026-MandMP/math_model)
|
| 4 |
- **Owner(s):** group **MandMP**
|
| 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._
|
|
|
|
| 11 |
|
| 12 |
| Benchmark | Accuracy | Status |
|
| 13 |
|---|---:|---|
|
| 14 |
+
| Math | 0.1300 | ok |
|
| 15 |
| Knowledge | — | not run |
|
| 16 |
| Multilingual | — | not run |
|
| 17 |
| Safety | — | not run |
|
|
|
|
| 24 |
|
| 25 |
**Correct** (1 shown)
|
| 26 |
|
| 27 |
+
- **reference**: `4`
|
| 28 |
+
- **overall** (8/8 completions correct)
|
| 29 |
+
- **extracted** (✓): `4`
|
| 30 |
- **completion**:
|
| 31 |
|
| 32 |
```text
|
| 33 |
<think>
|
| 34 |
+
Okay, so I need to solve the equation 10^x minus 10 equals 9990. Let me write that down first: 10^x - 10 = 9990. Hmm, let me think about how to approach this.
|
| 35 |
|
| 36 |
+
First, maybe I should isolate the term with the exponent. That means I need to get rid of the -10 on the left side. To do that, I can add 10 to both sides of the equation. Let me try that:
|
| 37 |
|
| 38 |
+
10^x - 10 + 10 = 9990 + 10
|
| 39 |
|
| 40 |
+
Simplifying b
|
| 41 |
|
| 42 |
... [truncated 823 chars] ...
|
| 43 |
|
| 44 |
+
answer.
|
| 45 |
+
|
| 46 |
+
But just to be absolutely sure, let me check with another method. Let's say I use natural logarithm.
|
| 47 |
+
|
| 48 |
+
Starting with 10^x = 10,000. Taking natural logarithm on both sides:
|
| 49 |
+
|
| 50 |
+
ln(10^x) = ln(10,000)
|
| 51 |
+
|
| 52 |
+
Which becomes:
|
| 53 |
+
|
| 54 |
+
x * ln(10) = ln(10,000)
|
| 55 |
+
|
| 56 |
+
Therefore, x = ln(10,000) / ln(10)
|
| 57 |
+
|
| 58 |
+
But ln(10,000) is ln(10^4) = 4*ln(10). Therefore:
|
| 59 |
+
|
| 60 |
+
x = (4*ln(10)) / ln(10) = 4.
|
| 61 |
+
|
| 62 |
+
Same result.
|
| 63 |
+
|
| 64 |
+
Therefore, regardless of the method, x is 4.
|
| 65 |
+
|
| 66 |
+
So, I think that's solid.
|
| 67 |
+
|
| 68 |
+
Therefore, the solution is x = 4.
|
| 69 |
+
|
| 70 |
+
**Final Answer**
|
| 71 |
+
The solution is \boxed{4}.
|
| 72 |
+
</think>
|
| 73 |
+
|
| 74 |
+
To solve the equation:
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
10^x - 10 = 9990
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
we begin by isolating the exponential term $10^x$. This is done by adding 10 to both sides of the equation:
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
10^x - 10 + 10 = 9990 + 10
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
10^x = 10000
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
Now, we need to solve for $x$ in the equation $10^x = 10000$. Since 10 is the base of the exponential function, and we know that:
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
10^4 = 10000
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
we immediately conclude that:
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
x = 4
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
---
|
| 103 |
+
|
| 104 |
+
To verify, we substitute $x = 4$ back into the original equation:
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
10^4 - 10 = 10000 - 10 = 9990
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
This matches the right-hand side of the original equation, confirming that the solution is correct.
|
| 111 |
+
|
| 112 |
+
---
|
| 113 |
+
|
| 114 |
+
**Final Answer:**
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
\boxed{4}
|
| 118 |
+
$$
|
| 119 |
```
|
| 120 |
|
| 121 |
**Incorrect** (1 shown)
|
| 122 |
|
| 123 |
+
- **reference**: `\frac{270}7\text{ degrees}`
|
| 124 |
- **overall** (0/8 completions correct)
|
| 125 |
- **extracted** (✗): `<no answer>`
|
| 126 |
- **completion**:
|
| 127 |
|
| 128 |
```text
|
| 129 |
<think>
|
| 130 |
+
Okay, so I need to find the measure of angle BAC in this figure where a square and a regular heptagon share the side AD. Let me try to visualize the Asymptote figure they provided. There's a square and a regular heptagon overlapping with side AD. The square has vertices labeled A, C, D, and F? Wait, the Asymptote code draws the square and heptagon with shared side AD. Let me parse the Asym
|
|
|
|
|
|
|
| 131 |
|
| 132 |
+
... [truncated 823 chars] ...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
|
| 134 |
+
oordinates.
|
| 135 |
|
| 136 |
+
First, let me recall that in a regular heptagon, the central angles between adjacent vertices are 360/7 ≈ 51.4286 degrees. So the angle between any two adjacent vertices from the center is 360/7 degrees.
|
| 137 |
|
| 138 |
+
But since the Asymptote code defines the heptagon with vertices at angles 90°, 90 + 360/7°, etc., as mentioned earlier. So point A is at angle 90° + 3*360/7° ≈ 244.2857°, as computed earlier. Point F is at angle 90° + 4*360/7° ≈ 295.7143°. So the angle between A and F as viewed from the center is 295.7143° - 244.2857° ≈ 51.4286°, which is exactly 360/7 degrees, as expected for a regular heptagon.
|
| 139 |
|
| 140 |
+
Now, the square shares side AD. So points A and D are adjacent vertices of the square. Wait, the square has vertices A, C, D, F? Wait, the Asymptote code draws A--C--D--F. So the square has sides AC, CD, DF, FA? Wait, but the problem says the square and heptagon share side AD. Wait, the Asymptote code draws A--C--D--F. So maybe the square is A, C, D, F? So that would make AD a diagonal of the square? Wait, but the problem says they share side AD. So maybe AD is a side of both the square and the heptagon? Wait, but in the Asymptote code, they have a square and a heptagon. The
|
| 141 |
```
|