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-25)
#8
by zechen-nlp - opened
- EVAL_REPORT.md +56 -22
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,54 +24,88 @@ _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 |
-
Okay, so I need to
|
| 34 |
|
| 35 |
-
First,
|
| 36 |
|
| 37 |
-
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
-
|
| 42 |
|
| 43 |
-
|
| 44 |
|
| 45 |
-
|
| 46 |
|
| 47 |
-
|
| 48 |
|
| 49 |
-
Alternatively,
|
| 50 |
|
| 51 |
-
|
| 52 |
|
| 53 |
-
|
| 54 |
|
| 55 |
**Final Answer**
|
| 56 |
-
\boxed{
|
| 57 |
</think>
|
| 58 |
|
| 59 |
-
\boxed{
|
| 60 |
```
|
| 61 |
|
| 62 |
**Incorrect** (1 shown)
|
| 63 |
|
| 64 |
-
- **reference**: `
|
| 65 |
- **overall** (0/8 completions correct)
|
| 66 |
- **extracted** (✗): `<no answer>`
|
| 67 |
- **completion**:
|
| 68 |
|
| 69 |
```text
|
| 70 |
-
Okay, so I need to
|
| 71 |
|
| 72 |
-
First,
|
| 73 |
|
| 74 |
... [truncated 823 chars] ...
|
| 75 |
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
```
|
|
|
|
| 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-25T02:20:01+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.1600 | 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 |
+
Okay, so I need to solve the equation 10^x minus 10 equals 9990. Let me write that down first to make sure I have it right: 10^x - 10 = 9990. Alright, so I need to find the value of x that makes this equation true. Let me think about how to approach this.
|
| 34 |
|
| 35 |
+
First, I remember that equations involving exponents can sometimes be solved by isolating the exponential term and then taking logarithms. Let
|
| 36 |
|
| 37 |
+
... [truncated 822 chars] ...
|
| 38 |
|
| 39 |
+
and then try to solve for x, but that would be wrong because the equation is 10^x - 10 = 9990. So if you subtract 10 from both sides, you get 10^x = 9990 - 10 = 9980, which is not 10000. So that would be a mistake.
|
| 40 |
|
| 41 |
+
But I think the correct approach is adding 10 to both sides.
|
| 42 |
|
| 43 |
+
Another possible mistake could be if someone thought that 10^x - 10 = 9990 implies that 10^x = 9990, but that would be incorrect. Because if you subtract 10 from both sides, you get 10^x = 9990 - 10 = 9980. But in reality, the equation is 10^x - 10 = 9990, so adding 10 gives 10^x = 9990 + 10 = 10000.
|
| 44 |
|
| 45 |
+
So, that's another way to see it.
|
| 46 |
|
| 47 |
+
Therefore, the key step is to recognize that 10^x - 10 = 9990 implies 10^x = 10000, which is a power of 10, so x is 4.
|
| 48 |
|
| 49 |
+
Alternatively, if someone didn't recognize that 10^4 is 10000, they might have to use logarithms, which is what I did.
|
| 50 |
|
| 51 |
+
So, in conclusion, the solution is x = 4.
|
| 52 |
|
| 53 |
+
I think that's thorough. I considered different methods, checked my answer by plugging it back in, considered possible mistakes, and confirmed that there's only one solution. So I feel confident that x = 4 is the correct answer.
|
| 54 |
|
| 55 |
**Final Answer**
|
| 56 |
+
The solution is \boxed{4}.
|
| 57 |
</think>
|
| 58 |
|
| 59 |
+
\boxed{4}
|
| 60 |
```
|
| 61 |
|
| 62 |
**Incorrect** (1 shown)
|
| 63 |
|
| 64 |
+
- **reference**: `\frac{270}7\text{ degrees}`
|
| 65 |
- **overall** (0/8 completions correct)
|
| 66 |
- **extracted** (✗): `<no answer>`
|
| 67 |
- **completion**:
|
| 68 |
|
| 69 |
```text
|
| 70 |
+
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 code they provided.
|
| 71 |
|
| 72 |
+
First, the Asymptote code draws a regular heptagon and a square sharing the side AD. The points A, B, C, D are labeled, with A and D being vertices of the square and heptagon. The square is drawn from A to C to D to F a
|
| 73 |
|
| 74 |
... [truncated 823 chars] ...
|
| 75 |
|
| 76 |
+
point A is at 90° + 3*(360/7°) = 90° + 1080/7° = (630 + 1080)/7° = 1710/7° ≈ 244.2857°, as before.
|
| 77 |
+
|
| 78 |
+
Point F is at 90° + 4*(360/7°) = 90° + 1440/7° = (630 + 1440)/7° = 2070/7° ≈ 295.7143°, as before.
|
| 79 |
+
|
| 80 |
+
So, the angle between point A and point F is 2070/7° - 1710/7° = 360/7°, which is the central angle between two adjacent vertices.
|
| 81 |
+
|
| 82 |
+
Now, let me compute coordinates of A and F.
|
| 83 |
+
|
| 84 |
+
Let me denote θ = 360/7°, so that point A is at angle 90° + 3θ, and point F is at angle 90° + 4θ.
|
| 85 |
+
|
| 86 |
+
So, coordinates of point A: (cos(90° + 3θ), sin(90° + 3θ))
|
| 87 |
+
|
| 88 |
+
Similarly, coordinates of point F: (cos(90° + 4θ), sin(90° + 4θ))
|
| 89 |
+
|
| 90 |
+
But cos(90° + x) = -sin(x), and sin(90° + x) = cos(x).
|
| 91 |
+
|
| 92 |
+
Therefore, coordinates of A: (-sin(3θ), cos(3θ))
|
| 93 |
+
|
| 94 |
+
Coordinates of F: (-sin(4θ), cos(4θ))
|
| 95 |
+
|
| 96 |
+
Similarly, coordinates of point C is A + dir(90)*(F - A).
|
| 97 |
+
|
| 98 |
+
dir(90) is (0,1), so adding that vector to point A.
|
| 99 |
+
|
| 100 |
+
So, point C is A + (F - A) * i, where i is the unit vector in the y-direction.
|
| 101 |
+
|
| 102 |
+
So, coordinates of C:
|
| 103 |
+
|
| 104 |
+
x-coordinate: A_x + (F_y - A_y)
|
| 105 |
+
|
| 106 |
+
y-coordinate: A_y + (F_y - A_y)
|
| 107 |
+
|
| 108 |
+
Wait, because adding (F - A) vector to A.
|
| 109 |
+
|
| 110 |
+
Wait, the vector from A to F is (F_x - A_x, F_y - A_y). So, adding that vector to A gives (A_x + (F_x - A_x), A
|
| 111 |
```
|