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-06-11)
#15
by zechen-nlp - opened
- EVAL_REPORT.md +41 -44
EVAL_REPORT.md
CHANGED
|
@@ -2,16 +2,22 @@
|
|
| 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._
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
## Summary
|
| 11 |
|
| 12 |
| Benchmark | Accuracy | Status |
|
| 13 |
|---|---:|---|
|
| 14 |
-
| Math | 0.
|
| 15 |
| Knowledge | — | not run |
|
| 16 |
| Multilingual | — | not run |
|
| 17 |
| Safety | — | not run |
|
|
@@ -24,85 +30,76 @@ _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 find the
|
| 34 |
|
| 35 |
-
$$
|
| 36 |
-
\sum_{i=1}^{2023} \frac{a_i - a_{i-1}}{a_{i+1} - a_i}
|
| 37 |
-
$$
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
-
|
| 42 |
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
-
|
| 46 |
|
| 47 |
-
|
| 48 |
|
| 49 |
-
|
| 50 |
|
| 51 |
-
|
| 52 |
|
| 53 |
-
|
| 54 |
|
| 55 |
-
|
| 56 |
|
| 57 |
-
|
| 58 |
|
| 59 |
-
|
| 60 |
|
| 61 |
-
|
| 62 |
|
| 63 |
-
|
| 64 |
|
| 65 |
**Final Answer**
|
| 66 |
-
\boxed{
|
| 67 |
</think>
|
| 68 |
|
| 69 |
-
\boxed{
|
| 70 |
```
|
| 71 |
|
| 72 |
**Incorrect** (1 shown)
|
| 73 |
|
| 74 |
-
- **reference**: `
|
| 75 |
- **overall** (0/8 completions correct)
|
| 76 |
-
- **extracted** (✗): `
|
| 77 |
- **completion**:
|
| 78 |
|
| 79 |
```text
|
| 80 |
-
Okay, so I need to
|
| 81 |
|
| 82 |
-
|
| 83 |
-
h(n) + h(n+1) = h(n+2)h(n+3) - 840
|
| 84 |
-
$$
|
| 85 |
-
|
| 86 |
-
for all natural numbers $ n $. And I need to determine every possible value that can occur for the sum $ \sum_{i=1}^{2025} h(i) $.
|
| 87 |
-
|
| 88 |
-
First, let me try to understand the recurrence relation here. It's not a standar
|
| 89 |
|
| 90 |
... [truncated 823 chars] ...
|
| 91 |
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
Wait, if the function is the alternating function, then for each n, h(n) + h(n+1) = 844, and h(n+2)h(n+3) = 1684. But 1684 = 844 + 840, which is correct. Therefore, the equation holds. Therefore, the alternating function is valid. Hence, both sums are possible.
|
| 95 |
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
**Final Answer**
|
| 99 |
-
The possible values for the sum are \boxed{60750} and \boxed{854130}.
|
| 100 |
|
| 101 |
-
|
| 102 |
|
| 103 |
**Final Answer**
|
| 104 |
-
\boxed{
|
| 105 |
</think>
|
| 106 |
|
| 107 |
-
\boxed{
|
| 108 |
```
|
|
|
|
| 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-11T06:23:10+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._
|
| 9 |
|
| 10 |
+
## Evaluated checkpoint
|
| 11 |
+
|
| 12 |
+
- **Commit:** [`051ffca`](https://huggingface.co/cs-552-2026-MandMP/math_model/commit/051ffca40719620af4814b7050d187ffb8f13a19)
|
| 13 |
+
- **Message:** concise_sft_v1: SFT on 7899 concise traces from Qwen3-8B (thinking off), 1 epoch on top of dapo_v3
|
| 14 |
+
- **Committed:** 2026-05-28T21:17:02+00:00
|
| 15 |
+
|
| 16 |
## Summary
|
| 17 |
|
| 18 |
| Benchmark | Accuracy | Status |
|
| 19 |
|---|---:|---|
|
| 20 |
+
| Math | 0.4700 | ok |
|
| 21 |
| Knowledge | — | not run |
|
| 22 |
| Multilingual | — | not run |
|
| 23 |
| Safety | — | not run |
|
|
|
|
| 30 |
|
| 31 |
**Correct** (1 shown)
|
| 32 |
|
| 33 |
+
- **reference**: `3`
|
| 34 |
+
- **overall** (8/8 completions correct)
|
| 35 |
+
- **extracted** (✓): `3`
|
| 36 |
- **completion**:
|
| 37 |
|
| 38 |
```text
|
| 39 |
+
Okay, so I need to find the degree of the polynomial $ g $ given that $ (x - 1)g(x) = 3x^4 + x^3 - 25x^2 + 38x - 17 $. Hmm, let me think about how to approach this.
|
| 40 |
|
| 41 |
+
First, I remember that if you have a polynomial $ P(x) $ and you divide it by another polynomial $ Q(x) $, the degree of the quotient is one less than the degree of the dividend if $ Q(x) $ is monic (leading coefficient 1) and has no
|
|
|
|
|
|
|
| 42 |
|
| 43 |
+
... [truncated 822 chars] ...
|
| 44 |
|
| 45 |
+
3x^4 + x^3 - 25x^2 + 38x - 17 $, which factors as $ (x - 1)g(x) $. We found that $ g(x) = 3x^3 + 4x^2 - 21x + 17 $. Let me check if this is correct by multiplying back.
|
| 46 |
|
| 47 |
+
Multiply $ (x - 1)(3x^3 + 4x^2 - 21x + 17) $:
|
| 48 |
+
|
| 49 |
+
First, $ x*(3x^3 + 4x^2 - 21x + 17) = 3x^4 + 4x^3 - 21x^2 + 17x $
|
| 50 |
+
|
| 51 |
+
Then, $ -1*(3x^3 + 4x^2 - 21x + 17) = -3x^3 - 4x^2 + 21x - 17 $
|
| 52 |
|
| 53 |
+
Add them together:
|
| 54 |
|
| 55 |
+
3x^4 + 4x^3 - 21x^2 + 17x - 3x^3 - 4x^2 + 21x - 17
|
| 56 |
|
| 57 |
+
Combine like terms:
|
| 58 |
|
| 59 |
+
3x^4 + (4x^3 - 3x^3) + (-21x^2 - 4x^2) + (17x + 21x) - 17
|
| 60 |
|
| 61 |
+
Which is:
|
| 62 |
|
| 63 |
+
3x^4 + x^3 - 25x^2 + 38x - 17
|
| 64 |
|
| 65 |
+
Yes! That matches the original polynomial. So the factorization is correct. Therefore, $ g(x) $ is indeed a cubic polynomial, so its degree is 3.
|
| 66 |
|
| 67 |
+
Therefore, the answer is 3. Wait, but just to make sure, maybe there's another way to think about it? Like using the degrees?
|
| 68 |
|
| 69 |
+
If $ (x - 1)g(x) $ is degree 4, then $ g(x) $ must be degree 3. Because multiplying a degree 1 polynomial by a degree n polynomial gives degree n + 1. Therefore, if the result is degree 4, then $ g(x) $ is degree 3. So that's another way to see it.
|
| 70 |
|
| 71 |
+
Therefore, I think confidently the answer is 3. So the degree of $ g $ is \boxed{3}.
|
| 72 |
|
| 73 |
**Final Answer**
|
| 74 |
+
\boxed{3}
|
| 75 |
</think>
|
| 76 |
|
| 77 |
+
\boxed{3}
|
| 78 |
```
|
| 79 |
|
| 80 |
**Incorrect** (1 shown)
|
| 81 |
|
| 82 |
+
- **reference**: `$P(n)=(n+2a)^{2}-2a^{2}$ for some nonnegative integer $a$`
|
| 83 |
- **overall** (0/8 completions correct)
|
| 84 |
+
- **extracted** (✗): `a^2`
|
| 85 |
- **completion**:
|
| 86 |
|
| 87 |
```text
|
| 88 |
+
Okay, so I need to find all functions F from the positive integers to the positive integers such that for any two positive integers a and b, the expression F(a) + F(b) + 2ab is a perfect square. Hmm, interesting problem. Let me try to figure this out step by step.
|
| 89 |
|
| 90 |
+
First, let me restate the condition: For all positive integers a and b, F(a) + F(b) + 2ab = k² for some positive integer k. So, this e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
... [truncated 823 chars] ...
|
| 93 |
|
| 94 |
+
le. However, if we assume that F(a) = a², then for a = 1, m = 1: F(1) = 2(1)^2 - 1^2 = 2 - 1 = 1, which matches. For a = 2, m = 2: F(2) = 2(2)^2 - 2^2 = 8 - 4 = 4, which matches F(2) = 4. Similarly, for a = 3, m = 2: F(3) = 2(2)^2 - 3^2 = 8 - 9 = -1, which is invalid. Wait, this contradicts! Wait, if a = 3, then F(3) = 2m² - a². If we choose m = 2, then F(3) = 8 - 9 = -1, which is invalid. However, if we choose m = 3, then F(3) = 18 - 9 = 9, which is valid. But how do we choose m? It depends on a. Therefore, unless there's a way to define m such that F(a) is always positive, this is not possible. However, if we set m = ⌈a/√2⌉, then for a = 3, m = 2, which gives negative F(a). Therefore, this approach doesn't work.
|
|
|
|
|
|
|
| 95 |
|
| 96 |
+
However, if we use F(a) = a², then for any a, we can choose m such that k² = 2F(a) + 2a² = 2a² + 2a² = 4a² ⇒ k = 2a. Therefore, for any a, we can choose m = a, and then F(a) = 2m² - a² = 2a² - a² = a². Therefore, this works. Therefore, F(a) = a² is the only function that satisfies the condition for all a, b.
|
|
|
|
|
|
|
|
|
|
| 97 |
|
| 98 |
+
Therefore, after all this thinking, I believe that the only solution is F(a) = a².
|
| 99 |
|
| 100 |
**Final Answer**
|
| 101 |
+
The only such function is \boxed{a^2}.
|
| 102 |
</think>
|
| 103 |
|
| 104 |
+
\boxed{a^2}
|
| 105 |
```
|