Instructions to use cs-552-2026-TopHaylin/math_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cs-552-2026-TopHaylin/math_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-TopHaylin/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-TopHaylin/math_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-TopHaylin/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-TopHaylin/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-TopHaylin/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-TopHaylin/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-TopHaylin/math_model
- SGLang
How to use cs-552-2026-TopHaylin/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-TopHaylin/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-TopHaylin/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-TopHaylin/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-TopHaylin/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-TopHaylin/math_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-TopHaylin/math_model
Automated MNLP evaluation report (2026-06-11)
#1
by zechen-nlp - opened
- EVAL_REPORT.md +171 -0
EVAL_REPORT.md
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Automated MNLP evaluation report
|
| 2 |
+
|
| 3 |
+
- **Model repo:** [`cs-552-2026-TopHaylin/math_model`](https://huggingface.co/cs-552-2026-TopHaylin/math_model)
|
| 4 |
+
- **Owner(s):** group **TopHaylin**
|
| 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:** [`220916a`](https://huggingface.co/cs-552-2026-TopHaylin/math_model/commit/220916ac14ae590b76c43e8fdb3107e08f884797)
|
| 13 |
+
- **Message:** Upload folder using huggingface_hub
|
| 14 |
+
- **Committed:** 2026-06-06T20:13:30+00:00
|
| 15 |
+
|
| 16 |
+
## Summary
|
| 17 |
+
|
| 18 |
+
| Benchmark | Accuracy | Status |
|
| 19 |
+
|---|---:|---|
|
| 20 |
+
| Math | 0.5000 | ok |
|
| 21 |
+
| Knowledge | — | not run |
|
| 22 |
+
| Multilingual | — | not run |
|
| 23 |
+
| Safety | — | not run |
|
| 24 |
+
|
| 25 |
+
## Sample completions
|
| 26 |
+
|
| 27 |
+
_Prompts are intentionally omitted to avoid revealing benchmark contents. For multi-completion problems, only one completion is shown per sample._
|
| 28 |
+
|
| 29 |
+
### Math
|
| 30 |
+
|
| 31 |
+
**Correct** (1 shown)
|
| 32 |
+
|
| 33 |
+
- **reference**: `244`
|
| 34 |
+
- **overall** (4/8 completions correct)
|
| 35 |
+
- **extracted** (✓): `244`
|
| 36 |
+
- **completion**:
|
| 37 |
+
|
| 38 |
+
```text
|
| 39 |
+
<think>
|
| 40 |
+
Okay, so I need to find the number of positive integer divisors of $17017^{17}$ that are congruent to 5 modulo 12, and then find the remainder when that number is divided by 1000. Let me start by breaking down the problem step by step.
|
| 41 |
+
|
| 42 |
+
First, let me factorize 17017. Hmm, 17017. Let me check if it's divisible by small primes. Let's try dividing by 7 first. 7*2431 is 17017? Let me calculate
|
| 43 |
+
|
| 44 |
+
... [truncated 822 chars] ...
|
| 45 |
+
|
| 46 |
+
\equiv 5 \pmod{12} \Rightarrow (-1)^b \cdot 5 \equiv 5 \pmod{12}
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
Since $(-1)^b \cdot 5 \equiv 5 \pmod{12}$, we must have $b$ odd.
|
| 50 |
+
|
| 51 |
+
- $a$ can be any of 9 odd values (1, 3, ..., 17)
|
| 52 |
+
- $d$ can be any of 9 even values (0, 2, ..., 16)
|
| 53 |
+
- $b$ can be any of 9 odd values (1, 3, ..., 17)
|
| 54 |
+
- $c$ can be any of 18 values (0, 1, ..., 17)
|
| 55 |
+
|
| 56 |
+
So, the number of such divisors is:
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
9 \times 9 \times 9 \times 18 = 13122
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
#### Case 2: $a$ even, $d$ odd, $b$ even
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
7 \cdot (-1)^b \cdot 5 \equiv 5 \pmod{12} \Rightarrow (-1)^b \cdot 5 \equiv 5 \pmod{12}
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
Here, $b$ must be even.
|
| 69 |
+
|
| 70 |
+
- $a$ can be any of 9 even values (0, 2, ..., 16)
|
| 71 |
+
- $d$ can be any of 9 odd values (1, 3, ..., 17)
|
| 72 |
+
- $b$ can be any of 9 even values (0, 2, ..., 16)
|
| 73 |
+
- $c$ can be any of 18 values (0, 1, ..., 17)
|
| 74 |
+
|
| 75 |
+
So, the number of such divisors is also:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
9 \times 9 \times 9 \times 18 = 13122
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
---
|
| 82 |
+
|
| 83 |
+
### **Step 5: Total Count and Modulo Operation**
|
| 84 |
+
|
| 85 |
+
Adding both cases, the total number of divisors congruent to $5 \mod 12$ is:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
13122 + 13122 = 26244
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
Now, compute $26244 \mod 1000$:
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
26244 \equiv 244 \pmod{1000}
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
---
|
| 98 |
+
|
| 99 |
+
### **Conclusion**
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\text{The remainder when } N \text{ is divided by } 1000 \text{ is } \boxed{244}
|
| 103 |
+
$$
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
**Incorrect** (1 shown)
|
| 107 |
+
|
| 108 |
+
- **reference**: `1, 13, 25, 325`
|
| 109 |
+
- **overall** (0/8 completions correct)
|
| 110 |
+
- **extracted** (✗): `25`
|
| 111 |
+
- **completion**:
|
| 112 |
+
|
| 113 |
+
```text
|
| 114 |
+
<think>
|
| 115 |
+
Okay, so I need to find all positive integers n such that the number of positive divisors of n¹² is equal to n itself. Let me start by recalling some number theory concepts.
|
| 116 |
+
|
| 117 |
+
First, τ(m) is the divisor function, which counts the number of positive divisors of m. If I have a number n, then n¹² would be the number n raised to the 12th power. The number of divisors of a number can be determi
|
| 118 |
+
|
| 119 |
+
... [truncated 823 chars] ...
|
| 120 |
+
|
| 121 |
+
ad \tau(1) = 1 \quad \Rightarrow \quad \tau(n^{12}) = n = 1
|
| 122 |
+
$$
|
| 123 |
+
|
| 124 |
+
So, $ n = 1 $ is a solution.
|
| 125 |
+
|
| 126 |
+
---
|
| 127 |
+
|
| 128 |
+
#### **Case 2: $ n = 25 $**
|
| 129 |
+
|
| 130 |
+
$$
|
| 131 |
+
25 = 5^2 \quad \Rightarrow \quad \tau(25^{12}) = \tau(5^{24}) = 24 + 1 = 25
|
| 132 |
+
$$
|
| 133 |
+
|
| 134 |
+
Thus, $ \tau(n^{12}) = 25 = n $, and $ n = 25 $ is a solution.
|
| 135 |
+
|
| 136 |
+
---
|
| 137 |
+
|
| 138 |
+
#### **Case 3: $ n = 13 $**
|
| 139 |
+
|
| 140 |
+
$$
|
| 141 |
+
13 = 13^1 \quad \Rightarrow \quad \tau(13^{12}) = 12 + 1 = 13
|
| 142 |
+
$$
|
| 143 |
+
|
| 144 |
+
So, $ \tau(n^{12}) = 13 = n $, and $ n = 13 $ is a solution.
|
| 145 |
+
|
| 146 |
+
---
|
| 147 |
+
|
| 148 |
+
#### **Case 4: $ n = 169 $**
|
| 149 |
+
|
| 150 |
+
$$
|
| 151 |
+
169 = 13^2 \quad \Rightarrow \quad \tau(169^{12}) = \tau(13^{24}) = 24 + 1 = 25 \neq 169
|
| 152 |
+
$$
|
| 153 |
+
|
| 154 |
+
So, $ \tau(n^{12}) \neq n $, and $ n = 169 $ is **not** a solution.
|
| 155 |
+
|
| 156 |
+
---
|
| 157 |
+
|
| 158 |
+
### Step 3: General Observations
|
| 159 |
+
|
| 160 |
+
If $ n $ is not a prime power (i.e., $ n = p_1^{a_1} p_2^{a_2} \cdots p_k^{a_k} $), then $ \tau(n^{12}) $ becomes a product of terms like $ (12a_i + 1) $, and the resulting value must be equal to $ n $. This is only possible for small values of $ n $, as larger values tend to make $ \tau(n^{12}) $ grow much faster than $ n $ itself.
|
| 161 |
+
|
| 162 |
+
---
|
| 163 |
+
|
| 164 |
+
### Step 4: Conclusion
|
| 165 |
+
|
| 166 |
+
We conclude that the only positive integers $ n $ satisfying $ \tau(n^{12}) = n $ are:
|
| 167 |
+
|
| 168 |
+
$$
|
| 169 |
+
\boxed{1}, \quad \boxed{13}, \quad \text{and} \quad \boxed{25}
|
| 170 |
+
$$
|
| 171 |
+
```
|