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)# pip install -U transformers accelerate # 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=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-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
Update Automated MNLP evaluation report (2026-06-09)
Browse files- EVAL_REPORT.md +86 -24
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-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._
|
|
@@ -17,7 +17,7 @@ _This PR is opened automatically by the course CI. It is **non-blocking** β yo
|
|
| 17 |
|
| 18 |
| Benchmark | Accuracy | Status |
|
| 19 |
|---|---:|---|
|
| 20 |
-
| Math | 0.
|
| 21 |
| Knowledge | β | not run |
|
| 22 |
| Multilingual | β | not run |
|
| 23 |
| Safety | β | not run |
|
|
@@ -30,56 +30,118 @@ _Prompts are intentionally omitted to avoid revealing benchmark contents. For mu
|
|
| 30 |
|
| 31 |
**Correct** (1 shown)
|
| 32 |
|
| 33 |
-
- **reference**: `
|
| 34 |
-
- **overall** (
|
| 35 |
-
- **extracted** (β): `
|
| 36 |
- **completion**:
|
| 37 |
|
| 38 |
```text
|
| 39 |
-
Okay, so I need to
|
| 40 |
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
... [truncated 823 chars] ...
|
| 44 |
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
-
|
| 48 |
|
| 49 |
-
|
| 50 |
|
| 51 |
-
|
| 52 |
|
| 53 |
-
|
| 54 |
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
**Final Answer**
|
| 58 |
-
\boxed{
|
| 59 |
</think>
|
| 60 |
|
| 61 |
-
\boxed{
|
| 62 |
```
|
| 63 |
|
| 64 |
**Incorrect** (1 shown)
|
| 65 |
|
| 66 |
-
- **reference**: `
|
| 67 |
- **overall** (0/8 completions correct)
|
| 68 |
-
- **extracted** (β): `
|
| 69 |
- **completion**:
|
| 70 |
|
| 71 |
```text
|
| 72 |
-
Okay,
|
| 73 |
|
| 74 |
-
|
| 75 |
|
| 76 |
... [truncated 823 chars] ...
|
| 77 |
|
| 78 |
-
|
| 79 |
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
-
|
| 85 |
```
|
|
|
|
| 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-06-09T08:52:30+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._
|
|
|
|
| 17 |
|
| 18 |
| Benchmark | Accuracy | Status |
|
| 19 |
|---|---:|---|
|
| 20 |
+
| Math | 0.4500 | ok |
|
| 21 |
| Knowledge | β | not run |
|
| 22 |
| Multilingual | β | not run |
|
| 23 |
| Safety | β | not run |
|
|
|
|
| 30 |
|
| 31 |
**Correct** (1 shown)
|
| 32 |
|
| 33 |
+
- **reference**: `1012`
|
| 34 |
+
- **overall** (5/8 completions correct)
|
| 35 |
+
- **extracted** (β): `1012`
|
| 36 |
- **completion**:
|
| 37 |
|
| 38 |
```text
|
| 39 |
+
Okay, so I need to find the maximum possible value of this sum:
|
| 40 |
|
| 41 |
+
$$
|
| 42 |
+
\sum_{i=1}^{2023} \frac{a_i - a_{i-1}}{a_{i+1} - a_i}
|
| 43 |
+
$$
|
| 44 |
+
|
| 45 |
+
given that $a_1, a_2, \ldots, a_{2024}$ are positive real numbers with $a_{i+1} \geq 2a_i$ for each $i = 1, 2, \ldots, 2023$, and $a_0 = 0$.
|
| 46 |
+
|
| 47 |
+
First, let me understand the constraints. Each term in the sum is of the form $\frac{a_i - a_{i-1}}{a_{i+1} - a_i}$. Since all $a_i
|
| 48 |
|
| 49 |
... [truncated 823 chars] ...
|
| 50 |
|
| 51 |
+
is 1 + 2022*(1/2) = 1 + 1011 = 1012.
|
| 52 |
+
|
| 53 |
+
Therefore, the maximum possible value is 1012.
|
| 54 |
+
|
| 55 |
+
But let me confirm with another example. Take n=3, which should give sum 1.5.
|
| 56 |
+
|
| 57 |
+
Using the same logic:
|
| 58 |
+
|
| 59 |
+
d_1 = x, d_2 = x, d_3 = 2x.
|
| 60 |
+
|
| 61 |
+
Sum is d_1/d_2 + d_2/d_3 = 1 + 1/2 = 1.5. Correct.
|
| 62 |
+
|
| 63 |
+
If we tried to make d_3 = 3x, then the sum would be 1 + 1/3 β 1.333 < 1.5.
|
| 64 |
+
|
| 65 |
+
Therefore, the maximum is indeed achieved when d_{i+1} = 2^{i-1}x.
|
| 66 |
|
| 67 |
+
Therefore, the answer is 1012.
|
| 68 |
|
| 69 |
+
But let me check if there's a way to get a higher sum. Suppose we set d_2 = 2d_1, d_3 = 2d_2 = 4d_1, d_4 = 2d_3 = 8d_1, ..., d_{2024} = 2^{2023}d_1. Then the sum would be:
|
| 70 |
|
| 71 |
+
For i=1: d_1 / d_2 = 1/2
|
| 72 |
|
| 73 |
+
For i=2: d_2 / d_3 = 1/2
|
| 74 |
|
| 75 |
+
...
|
| 76 |
+
|
| 77 |
+
For i=2023: d_{2023}/d_{2024} = 1/2
|
| 78 |
+
|
| 79 |
+
Total sum: 1/2 + 2022*(1/2) = 1 + 1011 = 1012. Same as before.
|
| 80 |
+
|
| 81 |
+
Alternatively, if we set d_2 = 2d_1, d_3 = 2d_2 = 4d_1, ..., d_{i} = 2^{i-2}d_1, then for i β₯ 2, d_{i+1} = 2^{i-1}d_1. Therefore, the ratio d_i / d_{i+1} = 2^{i-2}d_1 / 2^{i-1}d_1 = 1/2. So same result.
|
| 82 |
+
|
| 83 |
+
Therefore, regardless of how we set the sequence, as long as it satisfies the constraints, the maximum sum is 1012.
|
| 84 |
+
|
| 85 |
+
Therefore, the answer is \boxed{1012}.
|
| 86 |
|
| 87 |
**Final Answer**
|
| 88 |
+
\boxed{1012}
|
| 89 |
</think>
|
| 90 |
|
| 91 |
+
\boxed{1012}
|
| 92 |
```
|
| 93 |
|
| 94 |
**Incorrect** (1 shown)
|
| 95 |
|
| 96 |
+
- **reference**: `75`
|
| 97 |
- **overall** (0/8 completions correct)
|
| 98 |
+
- **extracted** (β): `<no answer>`
|
| 99 |
- **completion**:
|
| 100 |
|
| 101 |
```text
|
| 102 |
+
Okay, let's try to solve this geometry problem step by step. First, I need to visualize or sketch the parallelogram PQRS. Since it's a parallelogram, opposite sides are equal and parallel. Given that angle S is 60 degrees, and sides PS = 2, PQ = β3 + 1. Also, N is the midpoint of PS, and E is a point on segment NQ such that RE bisects angle R. We need to find the measure of angle REQ.
|
| 103 |
|
| 104 |
+
Let me star
|
| 105 |
|
| 106 |
... [truncated 823 chars] ...
|
| 107 |
|
| 108 |
+
hat earlier, we found the angle bisector direction using the unit vectors, and the slope was -1/β3, even though it didn't satisfy the second equation. Perhaps there was an error in the calculation?
|
| 109 |
|
| 110 |
+
Let me try to plug t = 1/2 into the parametric equations to see if it satisfies the angle bisector condition.
|
| 111 |
+
|
| 112 |
+
If t = 1/2, then E is the midpoint of NQ. Let me compute coordinates of E:
|
| 113 |
+
|
| 114 |
+
x(t) = 1 - (1/2)*[(β3 + 3)/2] = 1 - (β3 + 3)/4 = (4 - β3 - 3)/4 = (1 - β3)/4
|
| 115 |
+
|
| 116 |
+
y(t) = (1/2)*[(3 + β3)/2] = (3 + β3)/4
|
| 117 |
+
|
| 118 |
+
Now, let me compute the angle between RE and RS, and RE and RP.
|
| 119 |
+
|
| 120 |
+
Point R is ((3 - β3)/2, (3 + β3)/2 )
|
| 121 |
+
|
| 122 |
+
Point E is ((1 - β3)/4, (3 + β3)/4 )
|
| 123 |
+
|
| 124 |
+
Vector RE = E - R = [ (1 - β3)/4 - (3 - β3)/2, (3 + β3)/4 - (3 + β3)/2 ]
|
| 125 |
+
|
| 126 |
+
Compute x-component:
|
| 127 |
+
|
| 128 |
+
(1 - β3)/4 - (3 - β3)/2 = (1 - β3)/4 - (6 - 2β3)/4 = [1 - β3 - 6 + 2β3]/4 = [-5 + β3]/4
|
| 129 |
+
|
| 130 |
+
Y-component:
|
| 131 |
+
|
| 132 |
+
(3 + β3)/4 - (3 + β3)/2 = (3 + β3)/4 - 2(3 + β3)/4 = [- (3 + β3)]/4
|
| 133 |
+
|
| 134 |
+
So vector RE is ( (-5 + β3)/4, - (3 + β3)/4 )
|
| 135 |
+
|
| 136 |
+
Now, compute the angle between RE and RS, and RE and RP.
|
| 137 |
+
|
| 138 |
+
First, vector RS is ( (1 + β3)/2, - (3 + β3)/2 )
|
| 139 |
+
|
| 140 |
+
Vector RP is ( (-3 + β3)/2, - (3 + β3)/2 )
|
| 141 |
+
|
| 142 |
+
Let me compute the dot products.
|
| 143 |
+
|
| 144 |
+
First, RE β’ RS:
|
| 145 |
|
| 146 |
+
[ (-5 + β3)/4 * (1 + β3)/2 ] + [ - (3
|
| 147 |
```
|