Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
sft
trl
conversational
text-generation-inference
Instructions to use cs-552-2026-flab/math_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cs-552-2026-flab/math_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-flab/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-flab/math_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-flab/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-flab/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-flab/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-flab/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-flab/math_model
- SGLang
How to use cs-552-2026-flab/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-flab/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-flab/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-flab/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-flab/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-flab/math_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-flab/math_model
Update Automated MNLP evaluation report (2026-06-08)
Browse files- EVAL_REPORT.md +45 -48
EVAL_REPORT.md
CHANGED
|
@@ -2,22 +2,22 @@
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-flab/math_model`](https://huggingface.co/cs-552-2026-flab/math_model)
|
| 4 |
- **Owner(s):** group **flab**
|
| 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 |
## Evaluated checkpoint
|
| 11 |
|
| 12 |
-
- **Commit:** [`
|
| 13 |
-
- **Message:**
|
| 14 |
-
- **Committed:** 2026-06-
|
| 15 |
|
| 16 |
## Summary
|
| 17 |
|
| 18 |
| Benchmark | Accuracy | Status |
|
| 19 |
|---|---:|---|
|
| 20 |
-
| Math | 0.
|
| 21 |
| Knowledge | — | not run |
|
| 22 |
| Multilingual | — | not run |
|
| 23 |
| Safety | — | not run |
|
|
@@ -30,71 +30,68 @@ _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 |
-
|
| 40 |
-
|
| 41 |
-
- \(441 = 21^2\),
|
| 42 |
-
- \(2 \times 21 \times 19 = 798\),
|
| 43 |
-
- \(361 = 19^2\).
|
| 44 |
|
| 45 |
-
|
| 46 |
-
\(21^2 + 798 + 19^2 = 441 + 798 + 361 = 1600\).
|
| 47 |
|
| 48 |
-
|
|
|
|
| 49 |
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
```
|
| 52 |
|
| 53 |
**Incorrect** (1 shown)
|
| 54 |
|
| 55 |
-
- **reference**: `
|
| 56 |
- **overall** (0/8 completions correct)
|
| 57 |
-
- **extracted** (✗): `
|
| 58 |
- **completion**:
|
| 59 |
|
| 60 |
```text
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
\sum_{\text{cyc}} (x-1)^3 = 4,
|
| 64 |
-
$$
|
| 65 |
-
where the sum is cyclic over $x, y, z$. Let $a = x-1$, $b = y-1$, $c = z-1$; then $a, b, c \ge -1$ (since $x, y, z \ge 0$) and we have
|
| 66 |
-
$$
|
| 67 |
-
a^3 + b^3 + c^3 = 4.
|
| 68 |
-
$$
|
| 69 |
-
|
| 70 |
-
Define $f(a,b,c) = a^2 + b^2 + c^2 - (a+b+c)$. We want to maximize $f$ under the constraint $a^3 + b^3 + c^3 = 4$ with $a, b, c \ge -1$.
|
| 71 |
|
| 72 |
-
|
| 73 |
|
| 74 |
... [truncated 823 chars] ...
|
| 75 |
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
|
| 80 |
-
|
| 81 |
|
| 82 |
-
|
| 83 |
-
Recall $a = x-1$, $b = y-1$, $c = z-1$.
|
| 84 |
-
- $a = -2^{1/3}$ implies $x = 1 - 2^{1/3} \approx -0.26$ (but $x$ must be nonnegative, so this is invalid).
|
| 85 |
-
- $a = -1$ gives $x = 0$, $y = 0$, $c = \sqrt[3]{6} \approx 1.817$.
|
| 86 |
-
- $c = 0$ gives $z = 1$, and then $x = y = -1$ which are not allowed.
|
| 87 |
|
| 88 |
-
|
| 89 |
|
| 90 |
-
|
| 91 |
-
$$
|
| 92 |
-
x^2 + y^2 + z^2 - x - y - z = 0^2 + 0^2 + (\sqrt[3]{6})^2 - 0 - 0 - \sqrt[3]{6} = 6^{2/3} - 6^{1/3} = 6^{1/3}(6^{1/3} - 1).
|
| 93 |
-
$$
|
| 94 |
|
| 95 |
-
|
| 96 |
|
| 97 |
-
|
| 98 |
-
\boxed{6^{1/3}(6^{1/3} - 1)}
|
| 99 |
-
$$
|
| 100 |
```
|
|
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-flab/math_model`](https://huggingface.co/cs-552-2026-flab/math_model)
|
| 4 |
- **Owner(s):** group **flab**
|
| 5 |
+
- **Generated at:** 2026-06-08T04:40:54+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:** [`e38dc63`](https://huggingface.co/cs-552-2026-flab/math_model/commit/e38dc632b04087730c509fa3a27efe6e93f3daa5)
|
| 13 |
+
- **Message:** grpo-dsr-sft-8g-ckpt50-budgetRL
|
| 14 |
+
- **Committed:** 2026-06-07T18:47:01+00:00
|
| 15 |
|
| 16 |
## Summary
|
| 17 |
|
| 18 |
| Benchmark | Accuracy | Status |
|
| 19 |
|---|---:|---|
|
| 20 |
+
| Math | 0.3800 | ok |
|
| 21 |
| Knowledge | — | not run |
|
| 22 |
| Multilingual | — | not run |
|
| 23 |
| Safety | — | not run |
|
|
|
|
| 30 |
|
| 31 |
**Correct** (1 shown)
|
| 32 |
|
| 33 |
+
- **reference**: `279`
|
| 34 |
+
- **overall** (2/8 completions correct)
|
| 35 |
+
- **extracted** (✓): `279`
|
| 36 |
- **completion**:
|
| 37 |
|
| 38 |
```text
|
| 39 |
+
<think>
|
| 40 |
+
Okay, so I need to figure out how many positive integers n less than 1000 satisfy f(n) = n. The function f(n) is defined by taking the usual base-10 digits of n, finding the smallest integer b that's strictly larger than every digit in n, then interpreting the same digits as a base-b number. For example, if n is 72, the digits are 7 and 2, so the smallest b larger than both is 8. Then 72 i
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
+
... [truncated 822 chars] ...
|
|
|
|
| 43 |
|
| 44 |
+
single-digit numbers satisfy \( f(n) = n \).
|
| 45 |
+
- There are 9 such numbers.
|
| 46 |
|
| 47 |
+
2. **Two-digit numbers (10-99):**
|
| 48 |
+
- For a two-digit number \( n = 10a + b \) where \( a \) and \( b \) are digits, the maximum digit is \( m \). Then \( b = m + 1 \).
|
| 49 |
+
- For \( f(n) = n \), we need \( 10a + b = a(m + 1) + b \). This simplifies to \( 10a = a(m + 1) \) which implies \( m = 9 \).
|
| 50 |
+
- Two-digit numbers with maximum digit 9 are \( 19, 29, \ldots, 99 \), totaling 18 numbers.
|
| 51 |
+
|
| 52 |
+
3. **Three-digit numbers (100-999):**
|
| 53 |
+
- For a three-digit number \( n = 100a + 10b + c \) where \( a, b, c \) are digits, the maximum digit is \( m \). Then \( b = m + 1 \).
|
| 54 |
+
- For \( f(n) = n \), we need \( 100a + 10b + c = a(m + 1)^2 + b(m + 1) + c \). This simplifies to \( 100a + 10b = a(m + 1)^2 + b(m + 1) \).
|
| 55 |
+
- For \( m = 9 \), \( b = 10 \), and the equation holds for all three-digit numbers with at least one digit 9. The number of such three-digit numbers is 252.
|
| 56 |
+
|
| 57 |
+
### Total Count:
|
| 58 |
+
- Single-digit numbers: 9
|
| 59 |
+
- Two-digit numbers: 18
|
| 60 |
+
- Three-digit numbers: 252
|
| 61 |
+
|
| 62 |
+
Summing these, we get \( 9 + 18 + 252 = 279 \).
|
| 63 |
+
|
| 64 |
+
Thus, the number of positive integers \( n < 1000 \) that satisfy \( f(n) = n \) is \(\boxed{279}\).
|
| 65 |
```
|
| 66 |
|
| 67 |
**Incorrect** (1 shown)
|
| 68 |
|
| 69 |
+
- **reference**: `75`
|
| 70 |
- **overall** (0/8 completions correct)
|
| 71 |
+
- **extracted** (✗): `<no answer>`
|
| 72 |
- **completion**:
|
| 73 |
|
| 74 |
```text
|
| 75 |
+
<think>
|
| 76 |
+
Okay, so I need to solve this geometry problem about a parallelogram. Let me start by understanding the given information and what's being asked.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
+
First, the problem states that in parallelogram PQRS, angle S is 60 degrees. PS is 2 units long, and PQ is sqrt(3) + 1 units. N is the midpoint of PS, so that means PN = NS = 1. Then, there's a point E on segment NQ such that RE bisects angle R.
|
| 79 |
|
| 80 |
... [truncated 823 chars] ...
|
| 81 |
|
| 82 |
+
t the problem involves sqrt(3) and 60 degrees, the answer might be 30 degrees, 45 degrees, or 60 degrees. However, our calculation shows approximately 51 degrees, which is close to 45 degrees but not exact.
|
| 83 |
+
|
| 84 |
+
Alternatively, maybe there's a geometric insight I'm missing. Let me think again.
|
| 85 |
|
| 86 |
+
Given that angle R is 120 degrees, and RE bisects it into two 60-degree angles. If we can show that triangle REQ is a 30-60-90 triangle, then angle REQ would be 30 degrees. Alternatively, if triangle EQN is equilateral, but that seems unlikely.
|
| 87 |
|
| 88 |
+
Alternatively, since N is the midpoint of PS, and PS is 2, so PN = NS =1. Maybe there's a symmetry or using properties of midpoints and angle bisectors.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
+
Alternatively, consider triangle PNS. Since N is the midpoint of PS, and PN =1, PS=2. If we can relate this to other parts of the parallelogram.
|
| 91 |
|
| 92 |
+
Alternatively, since PQ = sqrt(3)+1, and PS=2, maybe using the Law of Cosines in triangle PQS or something.
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
+
Alternatively, since the problem involves angle bisectors and midpoints, maybe using coordinate geometry to find the required angle.
|
| 95 |
|
| 96 |
+
But given the time I've spent and the calculations leading to approximately 51 degrees, which is close to 45 degrees but
|
|
|
|
|
|
|
| 97 |
```
|