Instructions to use cs-552-2026-camykaz/math_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cs-552-2026-camykaz/math_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-camykaz/math_model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cs-552-2026-camykaz/math_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-camykaz/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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cs-552-2026-camykaz/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-camykaz/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-camykaz/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-camykaz/math_model
- SGLang
How to use cs-552-2026-camykaz/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-camykaz/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-camykaz/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-camykaz/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-camykaz/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-camykaz/math_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-camykaz/math_model
Update Automated MNLP evaluation report (2026-05-13)
Browse files- EVAL_REPORT.md +16 -28
EVAL_REPORT.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-camykaz/math_model`](https://huggingface.co/cs-552-2026-camykaz/math_model)
|
| 4 |
- **Owner(s):** group **camykaz**
|
| 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 |
|
|
@@ -25,50 +25,38 @@ _Prompts are intentionally omitted to avoid revealing benchmark contents. For mu
|
|
| 25 |
**Correct** (1 shown)
|
| 26 |
|
| 27 |
- **reference**: `0`
|
| 28 |
-
- **overall** (
|
| 29 |
- **extracted** (β): `0`
|
| 30 |
- **completion**:
|
| 31 |
|
| 32 |
```text
|
| 33 |
-
Let $f(x)=\frac{(x-b)(x-c)}{(a-b)(a-c)}+\frac{(x-a)(x-c)}{(b-a)(b-c)}+\frac{(x-a)(x-b)}{(c-a)(c-b)}$.
|
| 34 |
|
| 35 |
-
|
|
|
|
|
|
|
| 36 |
$$
|
| 37 |
-
f(a)=
|
| 38 |
$$
|
| 39 |
-
Similarly, plug in $x = b$ and $x = c$, and you find that $f(x)=1$ for all $x$. Therefore, $f(x)$ is a constant function equal to 1.
|
| 40 |
|
| 41 |
-
|
|
|
|
|
|
|
| 42 |
```
|
| 43 |
|
| 44 |
**Incorrect** (1 shown)
|
| 45 |
|
| 46 |
- **reference**: `$(n-2)2^n +1$`
|
| 47 |
- **overall** (0/8 completions correct)
|
| 48 |
-
- **extracted** (β): `
|
| 49 |
- **completion**:
|
| 50 |
|
| 51 |
```text
|
| 52 |
-
|
| 53 |
-
We can use the following observations to determine M_n:
|
| 54 |
|
| 55 |
-
|
| 56 |
-
2. The set C_n con
|
| 57 |
|
| 58 |
-
.
|
| 59 |
|
| 60 |
-
|
| 61 |
-
131. The set C_n contains elements that are powers of 2, but not all powers of 2 are in C_n.
|
| 62 |
-
132. The set C_n contains elements that are powers of 2, but not all powers of 2 are in C_n.
|
| 63 |
-
133. The set C_n contains elements that are powers of 2, but not all powers of 2 are in C_n.
|
| 64 |
-
134. The set C_n contains elements that are powers of 2, but not all powers of 2 are in C_n.
|
| 65 |
-
135. The set C_n contains elements that are powers of 2, but not all powers of 2 are in C_n.
|
| 66 |
-
136. The set C_n contains elements that are powers of 2, but not all powers of 2 are in C_n.
|
| 67 |
-
137. The set C_n contains elements that are powers of 2, but not all powers of 2 are in C_n.
|
| 68 |
-
138. The set C_n contains elements that are powers of 2, but not all powers of 2 are in C_n.
|
| 69 |
-
139. The set C_n contains elements that are powers of 2, but not all powers of 2 are in C_n.
|
| 70 |
-
140. The set C_n contains elements that are powers of 2, but not all powers of 2 are in C_n.
|
| 71 |
-
141. The set C_n contains elements that are powers of 2, but not all powers of 2 are in C_n.
|
| 72 |
-
142. The set C_n contains elements that are powers of 2, but not all powers of 2 are in C_n.
|
| 73 |
-
143. The set C_n contains elements that are powers of 2, but not
|
| 74 |
```
|
|
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-camykaz/math_model`](https://huggingface.co/cs-552-2026-camykaz/math_model)
|
| 4 |
- **Owner(s):** group **camykaz**
|
| 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.2800 | ok |
|
| 15 |
| Knowledge | β | not run |
|
| 16 |
| Multilingual | β | not run |
|
| 17 |
| Safety | β | not run |
|
|
|
|
| 25 |
**Correct** (1 shown)
|
| 26 |
|
| 27 |
- **reference**: `0`
|
| 28 |
+
- **overall** (2/8 completions correct)
|
| 29 |
- **extracted** (β): `0`
|
| 30 |
- **completion**:
|
| 31 |
|
| 32 |
```text
|
| 33 |
+
Let us denote $f(x) = \frac{(x-b)(x-c)}{(a-b)(a-c)} + \frac{(x-a)(x-c)}{(b-a)(b-c)} + \frac{(x-a)(x-b)}{(c-a)(c-b)}$.
|
| 34 |
|
| 35 |
+
We can compute $f(a)$, $f(b)$, and $f(c)$ directly to find out whether this function is constant or not.
|
| 36 |
+
|
| 37 |
+
Firstly, we note that $\frac{(x-b)(x-c)}{(a-b)(a-c)}$ has a root at $x=a$, so when we plug in $x=a$, it becomes zero. Similarly, for other terms, they also vanish when evaluated at their respective roots. Therefore,
|
| 38 |
$$
|
| 39 |
+
f(a) = f(b) = f(c) = 0.
|
| 40 |
$$
|
|
|
|
| 41 |
|
| 42 |
+
Thus, the polynomial $f(x)$ must be identically zero because its values coincide with the value of the zero polynomial at three different points.
|
| 43 |
+
|
| 44 |
+
Therefore, the degree of the polynomial $f(x)$ is $\boxed{0}$.
|
| 45 |
```
|
| 46 |
|
| 47 |
**Incorrect** (1 shown)
|
| 48 |
|
| 49 |
- **reference**: `$(n-2)2^n +1$`
|
| 50 |
- **overall** (0/8 completions correct)
|
| 51 |
+
- **extracted** (β): `2^{n-1} - 1`
|
| 52 |
- **completion**:
|
| 53 |
|
| 54 |
```text
|
| 55 |
+
We are given $C_n$ for some $n$, which contains all numbers of the form $2^n - 2^i$, where $i$ ranges from $0$ to $n-1$. We want to find the largest number that cannot be written as a sum of these numbers.
|
|
|
|
| 56 |
|
| 57 |
+
Note that each number in $C_n$ has exactly one factor of 2 raised to some power between $2^0=1$ and $2^{n-1}$. So we can think of this set as containing powers of two, but subtracted by smaller powers of two.
|
|
|
|
| 58 |
|
| 59 |
+
The smallest such number is $2^n - 2^0 = 2^n - 1$, so the largest number in $C_n$ is $2^n - 1$. Therefore, the total range of possible sums is at least $\frac{2^n - 1}{2}$ (since every number must be used once), and no larger number than this can be formed.
|
| 60 |
|
| 61 |
+
Therefore, the largest number that cannot be expressed as a sum of elements of $C_n$ is $\boxed{2^n - 1 - 2^{n-1}} = \boxed{2^{n-1} - 1}$.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
```
|