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-05-13)
Browse files- EVAL_REPORT.md +11 -11
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-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,7 +11,7 @@ _This PR is opened automatically by the course CI. It is **non-blocking** β yo
|
|
| 11 |
|
| 12 |
| Benchmark | Accuracy | Status |
|
| 13 |
|---|---:|---|
|
| 14 |
-
| Math | 0.
|
| 15 |
| Knowledge | β | not run |
|
| 16 |
| Multilingual | β | not run |
|
| 17 |
| Safety | β | not run |
|
|
@@ -24,9 +24,9 @@ _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
|
|
@@ -34,14 +34,14 @@ _Prompts are intentionally omitted to avoid revealing benchmark contents. For mu
|
|
| 34 |
|
| 35 |
</think>
|
| 36 |
|
| 37 |
-
|
| 38 |
```
|
| 39 |
|
| 40 |
**Incorrect** (1 shown)
|
| 41 |
|
| 42 |
- **reference**: `$(n-2)2^n +1$`
|
| 43 |
- **overall** (0/8 completions correct)
|
| 44 |
-
- **extracted** (β): `2^{
|
| 45 |
- **completion**:
|
| 46 |
|
| 47 |
```text
|
|
@@ -49,11 +49,11 @@ _Prompts are intentionally omitted to avoid revealing benchmark contents. For mu
|
|
| 49 |
|
| 50 |
</think>
|
| 51 |
|
| 52 |
-
Let $
|
| 53 |
|
| 54 |
-
|
| 55 |
|
| 56 |
-
|
| 57 |
|
| 58 |
-
|
| 59 |
```
|
|
|
|
| 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-05-13T23:30:17+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.1800 | ok |
|
| 15 |
| Knowledge | β | not run |
|
| 16 |
| Multilingual | β | not run |
|
| 17 |
| Safety | β | not run |
|
|
|
|
| 24 |
|
| 25 |
**Correct** (1 shown)
|
| 26 |
|
| 27 |
+
- **reference**: `\frac65`
|
| 28 |
+
- **overall** (4/8 completions correct)
|
| 29 |
+
- **extracted** (β): `\frac{6}{5}`
|
| 30 |
- **completion**:
|
| 31 |
|
| 32 |
```text
|
|
|
|
| 34 |
|
| 35 |
</think>
|
| 36 |
|
| 37 |
+
Multiplying both sides of the equation by $x$ yields \[1+5x^3=6x^2-24x\]and we can move all the terms to one side to obtain \[5x^3-6x^2+24x+1=0\]By Vieta's formulas, we have \[a+b+c=\boxed{\frac{6}{5}}.\]
|
| 38 |
```
|
| 39 |
|
| 40 |
**Incorrect** (1 shown)
|
| 41 |
|
| 42 |
- **reference**: `$(n-2)2^n +1$`
|
| 43 |
- **overall** (0/8 completions correct)
|
| 44 |
+
- **extracted** (β): `2^{n-1} - 1`
|
| 45 |
- **completion**:
|
| 46 |
|
| 47 |
```text
|
|
|
|
| 49 |
|
| 50 |
</think>
|
| 51 |
|
| 52 |
+
Let $n$ be a positive integer with $n \geq 2$, and define $C_n = \{2^n - 2^i : i \text{ is an integer and } 0 \le i < n\}$. Note that $2^{n} - 2^i$ is always even for all $i$. Therefore, we can divide the problem into two parts: finding the greatest positive integer that is not representable as a sum of even integers, and finding the greatest positive integer that is not representable as a sum of odd integers.
|
| 53 |
|
| 54 |
+
To find the greatest positive integer that is not representable as a sum of even integers, we note that $2^{n} - 2^i$ is divisible by $2^i$, for $0 \le i < n$. Therefore, we can find the greatest positive integer that is not representable as a sum of even integers by subtracting $2^{n-1}$ from $2^n - 2^0 = 2^n - 1$. This gives us $2^n - 2^{n-1} - 1 = 2^{n-1} - 1$, which is the greatest positive integer that is not representable as a sum of even integers.
|
| 55 |
|
| 56 |
+
To find the greatest positive integer that is not representable as a sum of odd integers, we note that $2^{n} - 2^i$ is divisible by $2^i$, for $0 \le i < n$. Therefore, we can find the greatest positive integer that is not representable as a sum of odd integers by subtracting $2^{n-1} - 1$ from $2^n - 2^1 = 2^n - 2$. This gives us $2^n - 2^{n-1} - 1 = 2^{n-1} - 1$, which is the greatest positive integer that is not representable as a sum of odd integers.
|
| 57 |
|
| 58 |
+
Therefore, the greatest positive integer that is not representable as a sum of elements of $C_n$ is $\boxed{2^{n-1} - 1}$.
|
| 59 |
```
|