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-05-16)
Browse files- EVAL_REPORT.md +62 -8
EVAL_REPORT.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 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-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,17 +11,71 @@ _This PR is opened automatically by the course CI. It is **non-blocking** — yo
|
|
| 11 |
|
| 12 |
| Benchmark | Accuracy | Status |
|
| 13 |
|---|---:|---|
|
| 14 |
-
| Math |
|
| 15 |
| Knowledge | — | not run |
|
| 16 |
| Multilingual | — | not run |
|
| 17 |
| Safety | — | not run |
|
| 18 |
|
| 19 |
-
##
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
-
generation_config.json not found: 404 Client Error. (Request ID: Root=1-6a04f381-79f2d0676120463b77421940;79d82689-bb4c-4128-bd24-43d2f71d00c4)
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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-05-16T04:57:46+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.3200 | ok |
|
| 15 |
| Knowledge | — | not run |
|
| 16 |
| Multilingual | — | not run |
|
| 17 |
| Safety | — | not run |
|
| 18 |
|
| 19 |
+
## Sample completions
|
| 20 |
|
| 21 |
+
_Prompts are intentionally omitted to avoid revealing benchmark contents. For multi-completion problems, only one completion is shown per sample._
|
| 22 |
|
| 23 |
+
### Math
|
|
|
|
| 24 |
|
| 25 |
+
**Correct** (1 shown)
|
| 26 |
+
|
| 27 |
+
- **reference**: `0`
|
| 28 |
+
- **overall** (3/8 completions correct)
|
| 29 |
+
- **extracted** (✓): `0`
|
| 30 |
+
- **completion**:
|
| 31 |
+
|
| 32 |
+
```text
|
| 33 |
+
</think>
|
| 34 |
+
|
| 35 |
+
The polynomial \(p(x)\) is a rational function with distinct linear factors in the denominator. By polynomial division, \(p(x)\) can be written as a polynomial plus a proper rational function. The rational part simplifies to \(1\), so \(p(x) = q(x) + 1\) for some polynomial \(q\). Since \(p(x)\) is a polynomial of degree \(\le 2\) (the degree of the numerator is at most \(2\)), the degree of \(p\) is at most \(2\). Moreover, \(p(x)\) vanishes at \(x=a,b,c\) (because each term has a factor \((x-a)\), \((x-b)\), \((x-c)\)). A non‑constant polynomial that vanishes at three distinct points must be the zero polynomial. Hence \(p(x) \equiv 1\), a constant polynomial. Therefore the degree is \(0\).
|
| 36 |
+
|
| 37 |
+
\[
|
| 38 |
+
\boxed{0}
|
| 39 |
+
\]
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
**Incorrect** (1 shown)
|
| 43 |
+
|
| 44 |
+
- **reference**: `$(n-2)2^n +1$`
|
| 45 |
+
- **overall** (0/8 completions correct)
|
| 46 |
+
- **extracted** (✗): `2^n - 1`
|
| 47 |
+
- **completion**:
|
| 48 |
+
|
| 49 |
+
```text
|
| 50 |
+
</think>
|
| 51 |
+
|
| 52 |
+
We are given a positive integer \(n \ge 2\) and the set
|
| 53 |
+
\[
|
| 54 |
+
C_n = \{2^n - 2^i : i \in \mathbb{Z}, 0 \le i < n\}.
|
| 55 |
+
\]
|
| 56 |
+
We need the greatest positive integer that cannot be written as a sum of elements of \(C_n\) (with repetition allowed).
|
| 57 |
+
|
| 58 |
+
Let \(N = 2^n - 1\).
|
| 59 |
+
For any \(i \in [0,n]\), \(2^i \in C_n\). Moreover,
|
| 60 |
+
\[
|
| 61 |
+
2^i + 2^j = 2^{\min(i,j)}\bigl(1+2^{|i-j|}\bigr).
|
| 62 |
+
\]
|
| 63 |
+
Thus each eleme
|
| 64 |
+
|
| 65 |
+
... [truncated 686 chars] ...
|
| 66 |
+
|
| 67 |
+
m\) divides \(k\), we can write \(k = 2^m \cdot t\) with \(t\) odd.
|
| 68 |
+
The binary digits of \(t\) are the binary digits of \(k\) shifted left by \(m\) places.
|
| 69 |
+
Thus \(t = k \oplus (k \gg m)\).
|
| 70 |
+
Because \(t\) is odd, the rightmost bit of \(t\) must be \(1\).
|
| 71 |
+
This means that the binary representation of \(k\) has a \(1\) in the \(m\)-th position.
|
| 72 |
+
In other words, \(m\) must be the position of the least significant \(1\) in \(k\).
|
| 73 |
+
|
| 74 |
+
Therefore, for a given \(k\), the number of elements of \(C_n\) whose sum equals \(k\) is non‑zero if and only if \(k\) has exactly one \(1\) in its binary expansion, and that \(1\) lies in some position \(m\) (i.e., \(m\) is the position of the least significant \(1\)).
|
| 75 |
+
In this case, the representation is unique: the element is \(2^m\) and the remaining part \(k - 2^m\) is exactly \(t = 1+2^m\).
|
| 76 |
+
|
| 77 |
+
Consequently, the numbers that cannot be expressed are those that have **more than one** \(1\) in their binary representation (since with two or more \(1\)’s we cannot obtain an odd number).
|
| 78 |
+
The largest such number is \(N = 2^n - 1\) itself (which has exactly one \(1\)).
|
| 79 |
+
|
| 80 |
+
Hence the greatest positive integer that is not representable is \(\boxed{2^n - 1}\).
|
| 81 |
+
```
|