Instructions to use cs-552-2026-centralesupechec/math_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cs-552-2026-centralesupechec/math_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-centralesupechec/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-centralesupechec/math_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-centralesupechec/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-centralesupechec/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-centralesupechec/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-centralesupechec/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-centralesupechec/math_model
- SGLang
How to use cs-552-2026-centralesupechec/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-centralesupechec/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-centralesupechec/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-centralesupechec/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-centralesupechec/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-centralesupechec/math_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-centralesupechec/math_model
Automated MNLP evaluation report (2026-05-13)
Browse files- EVAL_REPORT.md +41 -53
EVAL_REPORT.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-centralesupechec/math_model`](https://huggingface.co/cs-552-2026-centralesupechec/math_model)
|
| 4 |
- **Owner(s):** group **centralesupechec**
|
| 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,82 +24,62 @@ _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
|
| 33 |
<think>
|
| 34 |
-
Okay, so I need to
|
| 35 |
|
| 36 |
-
|
| 37 |
|
| 38 |
-
|
| 39 |
|
| 40 |
-
|
| 41 |
|
| 42 |
-
|
| 43 |
-
$$
|
|
|
|
| 44 |
|
| 45 |
-
|
| 46 |
|
| 47 |
---
|
| 48 |
|
| 49 |
-
### Step
|
| 50 |
|
| 51 |
-
|
| 52 |
|
| 53 |
-
-
|
|
|
|
| 54 |
|
| 55 |
-
$$
|
| 56 |
-
f(2) = 9^2 + 19 - 10^2 = 81 + 19 - 100 = 100 - 100 = 0
|
| 57 |
-
$$
|
| 58 |
-
|
| 59 |
-
So, $x = 2$ is a solution.
|
| 60 |
|
| 61 |
---
|
| 62 |
|
| 63 |
-
### Step
|
| 64 |
|
| 65 |
-
|
| 66 |
|
| 67 |
$$
|
| 68 |
-
|
| 69 |
$$
|
| 70 |
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
As $x \to -\infty$, both $9^x$ and $10^x$ approach 0, so $f(x) \to 19$.
|
| 74 |
-
|
| 75 |
-
Now, compute the derivative:
|
| 76 |
|
| 77 |
$$
|
| 78 |
-
|
| 79 |
$$
|
| 80 |
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
- $\ln(9) \approx 2.1972$
|
| 84 |
-
- $\ln(10) \approx 2.3026$
|
| 85 |
-
- $9^x$ grows slower than $10^x$, and the coefficient of $9^x$ is smaller than that of $10^x$
|
| 86 |
-
|
| 87 |
-
Thus, $f'(x) < 0$ for all $x$, meaning the function is strictly decreasing.
|
| 88 |
-
|
| 89 |
-
---
|
| 90 |
-
|
| 91 |
-
### Step 4: Conclude the Number of Solutions
|
| 92 |
-
|
| 93 |
-
Since $f(x)$ is strictly decreasing and continuous, and it goes from $19$ at $-\infty$ to $-\infty$ at $+\infty$, it can cross the x-axis **exactly once**.
|
| 94 |
-
|
| 95 |
-
We already found that $f(2) = 0$, so this is the **only** solution.
|
| 96 |
|
| 97 |
---
|
| 98 |
|
| 99 |
### Final Answer
|
| 100 |
|
| 101 |
$$
|
| 102 |
-
\boxed{
|
| 103 |
$$
|
| 104 |
```
|
| 105 |
|
|
@@ -112,19 +92,27 @@ _Prompts are intentionally omitted to avoid revealing benchmark contents. For mu
|
|
| 112 |
|
| 113 |
```text
|
| 114 |
<think>
|
| 115 |
-
Okay, so I need to figure out the greatest positive integer that can't be expressed as a sum of elements from the set C_n, where C_n is defined as {2^n - 2^i
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
|
| 117 |
-
|
| 118 |
|
| 119 |
-
..
|
| 120 |
|
| 121 |
-
|
| 122 |
|
| 123 |
-
|
| 124 |
|
| 125 |
-
|
| 126 |
|
| 127 |
-
|
| 128 |
|
| 129 |
-
|
| 130 |
```
|
|
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-centralesupechec/math_model`](https://huggingface.co/cs-552-2026-centralesupechec/math_model)
|
| 4 |
- **Owner(s):** group **centralesupechec**
|
| 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.1400 | ok |
|
| 15 |
| Knowledge | — | not run |
|
| 16 |
| Multilingual | — | not run |
|
| 17 |
| Safety | — | not run |
|
|
|
|
| 24 |
|
| 25 |
**Correct** (1 shown)
|
| 26 |
|
| 27 |
+
- **reference**: `.35625`
|
| 28 |
+
- **overall** (8/8 completions correct)
|
| 29 |
+
- **extracted** (✓): `0.35625`
|
| 30 |
- **completion**:
|
| 31 |
|
| 32 |
```text
|
| 33 |
<think>
|
| 34 |
+
Okay, so I need to figure out how to write 57 divided by 160 as a terminating decimal. Hmm, let me recall what a terminating decimal is. From what I remember, a decimal terminates if the denominator, after simplifying the fraction, has no prime factors other than 2 and 5. So, if the denominator is only 2s and 5s, then the decimal will terminate. If there are other prime factors, like 3, 7,
|
| 35 |
|
| 36 |
+
... [truncated 823 chars] ...
|
| 37 |
|
| 38 |
+
er confirmation.
|
| 39 |
|
| 40 |
+
Therefore, I can be confident that the terminating decimal form of 57/160 is 0.35625.
|
| 41 |
|
| 42 |
+
**Final Answer**
|
| 43 |
+
The terminating decimal form of $\frac{57}{160}$ is \boxed{0.35625}.
|
| 44 |
+
</think>
|
| 45 |
|
| 46 |
+
To determine the terminating decimal form of the fraction $\frac{57}{160}$, we begin by analyzing its denominator.
|
| 47 |
|
| 48 |
---
|
| 49 |
|
| 50 |
+
### Step 1: Check for Terminating Decimal
|
| 51 |
|
| 52 |
+
A fraction will have a **terminating decimal** if, after simplifying the fraction, the **denominator (in lowest terms)** has **only the prime factors 2 and 5**.
|
| 53 |
|
| 54 |
+
- The denominator is $160 = 2^5 \times 5^1$
|
| 55 |
+
- The numerator $57$ is not divisible by any prime other than 3 and 19, and it is already in lowest terms with the denominator.
|
| 56 |
|
| 57 |
+
Since the denominator only contains the prime factors $2$ and $5$, the decimal representation of $\frac{57}{160}$ is **terminating**.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
---
|
| 60 |
|
| 61 |
+
### Step 2: Convert to Decimal
|
| 62 |
|
| 63 |
+
We now compute the decimal value of $\frac{57}{160}$ by performing the division:
|
| 64 |
|
| 65 |
$$
|
| 66 |
+
\frac{57}{160} = 0.35625
|
| 67 |
$$
|
| 68 |
|
| 69 |
+
This can be verified by multiplying the result by the original denominator:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
$$
|
| 72 |
+
0.35625 \times 160 = 57
|
| 73 |
$$
|
| 74 |
|
| 75 |
+
Thus, the decimal representation is correct and terminates.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
|
| 77 |
---
|
| 78 |
|
| 79 |
### Final Answer
|
| 80 |
|
| 81 |
$$
|
| 82 |
+
\boxed{0.35625}
|
| 83 |
$$
|
| 84 |
```
|
| 85 |
|
|
|
|
| 92 |
|
| 93 |
```text
|
| 94 |
<think>
|
| 95 |
+
Okay, so I need to figure out the greatest positive integer that can't be expressed as a sum of elements from the set C_n, where C_n is defined as {2^n - 2^i : i is an integer and 0 ≤ i < n}. And n is a positive integer greater than or equal to 2. Alright, let me start by understanding the problem step by step.
|
| 96 |
+
|
| 97 |
+
First, let me try to write down what C_n looks like. For example, if n is 2, t
|
| 98 |
+
|
| 99 |
+
... [truncated 823 chars] ...
|
| 100 |
+
|
| 101 |
+
ers starting from 1:
|
| 102 |
+
|
| 103 |
+
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, etc.
|
| 104 |
|
| 105 |
+
We saw that 1-7 can't be formed. 8 can. 9-11 can't. 12 can. 13 can't. 14 can. 15 can. 16 can. 17 can't. 18 can't. 19 can't. 20 can. 21 can't. 22: 8 + 14. Yes. 23: 8 + 15. Yes. 24: 12 + 12. Yes. 25: 12 + 13? No. 15 + 10? No. 8 + 17? No. Wait, 25: 8 + 8 + 9? No. 12 + 13? No. 14 + 11? No. 15 + 10? No. So 25 can't be formed? Wait, 25 is 8*3 + 1? No. 12*2 + 1? No. 14 + 11? No. 15 + 10? No. So 25 can't be formed. Hmm. So maybe there's a lot of numbers that can't be formed. But how do we find the largest one?
|
| 106 |
|
| 107 |
+
Alternatively, maybe there's a pattern here. For n=2, answer is 1. For n=3, answer is 9. For n=4, maybe answer is something else?
|
| 108 |
|
| 109 |
+
Wait, maybe I need to find a general pattern here. Let me think.
|
| 110 |
|
| 111 |
+
Looking at n=2: C_n = {2, 3}. The largest non-representable is 1.
|
| 112 |
|
| 113 |
+
n=3: C_n = {4, 6, 7}. The largest non-representable is 9.
|
| 114 |
|
| 115 |
+
n=4: C_n = {8, 12, 14, 15}. Maybe the answer is 23? Or something else?
|
| 116 |
|
| 117 |
+
Wait, let me try to think of the general case. Let me try to think of the elements of C_n. For general n, C_n is {2^n - 2^i | 0 ≤ i < n}. So, for example, when n=2, 2^2 - 2^0 = 4 - 1 = 3, and 2^2 -
|
| 118 |
```
|