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-09)
Browse files- EVAL_REPORT.md +30 -39
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,68 +30,59 @@ _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 |
<think>
|
| 40 |
-
Okay, so I need to figure out
|
| 41 |
|
| 42 |
-
|
| 43 |
|
| 44 |
-
|
| 45 |
-
- There are 9 such numbers.
|
| 46 |
|
| 47 |
-
|
| 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. **
|
| 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 |
-
|
| 58 |
-
- Single-digit numbers: 9
|
| 59 |
-
- Two-digit numbers: 18
|
| 60 |
-
- Three-digit numbers: 252
|
| 61 |
|
| 62 |
-
|
| 63 |
|
| 64 |
-
Thus, the
|
| 65 |
```
|
| 66 |
|
| 67 |
**Incorrect** (1 shown)
|
| 68 |
|
| 69 |
-
- **reference**: `
|
| 70 |
- **overall** (0/8 completions correct)
|
| 71 |
-
- **extracted** (β): `
|
| 72 |
- **completion**:
|
| 73 |
|
| 74 |
```text
|
| 75 |
<think>
|
| 76 |
-
Okay,
|
| 77 |
|
| 78 |
-
First,
|
| 79 |
|
| 80 |
... [truncated 823 chars] ...
|
| 81 |
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
Alternatively, maybe there's a geometric insight I'm missing. Let me think again.
|
| 85 |
|
| 86 |
-
|
|
|
|
|
|
|
| 87 |
|
| 88 |
-
|
| 89 |
|
| 90 |
-
|
| 91 |
|
| 92 |
-
|
| 93 |
|
| 94 |
-
|
| 95 |
|
| 96 |
-
|
|
|
|
| 97 |
```
|
|
|
|
| 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-09T08:56:40+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:** [`d509c36`](https://huggingface.co/cs-552-2026-flab/math_model/commit/d509c3676174e188181cd577372c8125d27020ab)
|
| 13 |
+
- **Message:** g2rpo-ds4-ckpt120-tuned-sampling-T0.6-topp1.0-topk-1
|
| 14 |
+
- **Committed:** 2026-06-08T15:31:44+00:00
|
| 15 |
|
| 16 |
## Summary
|
| 17 |
|
| 18 |
| Benchmark | Accuracy | Status |
|
| 19 |
|---|---:|---|
|
| 20 |
+
| Math | 0.4000 | ok |
|
| 21 |
| Knowledge | β | not run |
|
| 22 |
| Multilingual | β | not run |
|
| 23 |
| Safety | β | not run |
|
|
|
|
| 30 |
|
| 31 |
**Correct** (1 shown)
|
| 32 |
|
| 33 |
+
- **reference**: `194`
|
| 34 |
+
- **overall** (4/8 completions correct)
|
| 35 |
+
- **extracted** (β): `194`
|
| 36 |
- **completion**:
|
| 37 |
|
| 38 |
```text
|
| 39 |
<think>
|
| 40 |
+
Okay, so I need to figure out the least positive integer k for a 194x194 board where if I mark k cells, then there's exactly one tiling of the board with dominoes (1x2 and 2x1) such that every domino in this tiling has at most one marked cell. Hmm, this seems related to tiling problems and maybe some linear algebra concepts. Let me start by understanding the problem better.
|
| 41 |
|
| 42 |
+
First, a domin
|
| 43 |
|
| 44 |
+
... [truncated 822 chars] ...
|
|
|
|
| 45 |
|
| 46 |
+
e tiling to be unique, the marked cells must be arranged such that they are covered by dominoes in the unique tiling, and any other tiling must cover at least two marked cells.
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
+
3. **Pattern Recognition**: Observing smaller grids (e.g., 2x2, 4x4) shows that marking cells in a diagonal (or corner) pattern forces a unique tiling. For a 2x2 grid, marking two cells (the corners) forces a unique tiling. For a 4x4 grid, marking four cells (the corners) forces a unique tiling. This pattern suggests that marking \( n \) cells (where \( n \) is the side length of the grid) forces a unique tiling.
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
+
4. **Generalizing to \(194 \times 194\)**: Extending this pattern, marking 194 cells (the corners) in a \(194 \times 194\) grid forces a unique tiling. This is because the remaining cells form a grid where the dominoes must cover the marked cells in a unique way, and any other tiling would cover at least two marked cells.
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
+
5. **Verification**: Marking fewer than 194 cells results in an odd number of remaining cells, which is impossible to tile with dominoes. Therefore, 194 is the minimal number of cells needed to ensure a unique tiling.
|
| 53 |
|
| 54 |
+
Thus, the least positive integer \( k \) is \(\boxed{194}\).
|
| 55 |
```
|
| 56 |
|
| 57 |
**Incorrect** (1 shown)
|
| 58 |
|
| 59 |
+
- **reference**: `$g(x)=c, g(x)=\lceil x \rceil, g(x)=\lfloor x \rfloor$`
|
| 60 |
- **overall** (0/8 completions correct)
|
| 61 |
+
- **extracted** (β): `h(x) = x`
|
| 62 |
- **completion**:
|
| 63 |
|
| 64 |
```text
|
| 65 |
<think>
|
| 66 |
+
Okay, let's try to tackle this problem. So, we need to find all functions \( h: \mathbb{Q} \to \mathbb{Z} \) such that for every \( x \in \mathbb{Q} \), every integer \( a \), and every positive integer \( b \), the equation \( h(x) = h\left( \frac{h(bx - a) + a}{b} \right) \) holds. Hmm, that's a mouthful. Let me break it down.
|
| 67 |
|
| 68 |
+
First, let's parse the equation. For any rational number \(
|
| 69 |
|
| 70 |
... [truncated 823 chars] ...
|
| 71 |
|
| 72 |
+
y \( x \in \mathbb{Q} \), every \( a \in \mathbb{Z} \), and every positive integer \( b \):
|
|
|
|
|
|
|
| 73 |
|
| 74 |
+
\[
|
| 75 |
+
h(x) = h\left( \frac{h(bx - a) + a}{b} \right),
|
| 76 |
+
\]
|
| 77 |
|
| 78 |
+
we start by testing linear functions. We hypothesize that \( h(x) = kx + c \) might be a solution. For \( k = 0 \), we get \( h(x) = 0 \), which satisfies the equation. For \( k = 1 \), we get \( h(x) = x \), which also satisfies the equation.
|
| 79 |
|
| 80 |
+
Next, we consider other possibilities. We test the zero function \( h(x) = 0 \) and find it satisfies the equation. For the identity function \( h(x) = x \), we verify it works by substituting back into the equation, showing both sides equal \( x \).
|
| 81 |
|
| 82 |
+
We also explore the possibility of non-linear functions, but through detailed analysis and testing various functions, we find that any deviation from the identity function leads to contradictions. For example, assuming \( h(q) \neq q \) for some \( q \) results in inconsistencies when substituting specific values of \( x \), \( a \), and \( b \).
|
| 83 |
|
| 84 |
+
Thus, after thorough testing and reasoning, we conclude that the only solutions are the zero function and the identity function.
|
| 85 |
|
| 86 |
+
### Final Answer
|
| 87 |
+
The solutions are \boxed{h(x) = 0} and \boxed{h(x) = x}.
|
| 88 |
```
|