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)# 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") 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-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)
#1
by zechen-nlp - opened
- EVAL_REPORT.md +130 -0
EVAL_REPORT.md
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Automated MNLP evaluation report
|
| 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-13T04:17:52+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 |
+
## Summary
|
| 11 |
+
|
| 12 |
+
| Benchmark | Accuracy | Status |
|
| 13 |
+
|---|---:|---|
|
| 14 |
+
| Math | 0.1700 | 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**: `2`
|
| 28 |
+
- **overall** (3/8 completions correct)
|
| 29 |
+
- **extracted** (✓): `2`
|
| 30 |
+
- **completion**:
|
| 31 |
+
|
| 32 |
+
```text
|
| 33 |
+
<think>
|
| 34 |
+
Okay, so I need to solve the equation $3^{2x} + 19 = 10^x$. Let me think about how to approach this.
|
| 35 |
+
|
| 36 |
+
First, let me rewrite the equation to see if I can simplify it or recognize any patterns. The left side has $3^{2x}$, which is the same as $(3^2)^x = 9^x$. So, the equation becomes $9^x + 19 = 10^x$.
|
| 37 |
+
|
| 38 |
+
Hmm, so now it's $9^x + 19 = 10^x$. I don't see an obvious way to combine these terms,
|
| 39 |
+
|
| 40 |
+
... [truncated 821 chars] ...
|
| 41 |
+
|
| 42 |
+
9^x + 19 - 10^x
|
| 43 |
+
$$
|
| 44 |
+
|
| 45 |
+
We seek the value(s) of $x$ for which $f(x) = 0$.
|
| 46 |
+
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
### Step 2: Test Integer Values
|
| 50 |
+
|
| 51 |
+
Let’s test some integer values of $x$:
|
| 52 |
+
|
| 53 |
+
- **At $x = 2$:**
|
| 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 3: Analyze the Behavior of the Function
|
| 64 |
+
|
| 65 |
+
Define the function:
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
f(x) = 9^x + 19 - 10^x
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
As $x \to \infty$, the exponential term $10^x$ dominates, so $f(x) \to -\infty$.
|
| 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 |
+
f'(x) = \ln(9) \cdot 9^x - \ln(10) \cdot 10^x
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
This derivative is always negative for all $x$, since:
|
| 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{2}
|
| 103 |
+
$$
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
**Incorrect** (1 shown)
|
| 107 |
+
|
| 108 |
+
- **reference**: `$(n-2)2^n +1$`
|
| 109 |
+
- **overall** (0/8 completions correct)
|
| 110 |
+
- **extracted** (✗): `<no answer>`
|
| 111 |
+
- **completion**:
|
| 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 | 0 ≤ i < n}. And n is a positive integer greater than or equal to 2. Hmm, let's start by understanding what exactly the set C_n looks like.
|
| 116 |
+
|
| 117 |
+
First, let's take a specific example. Let's say n = 2. Then C_2 would be {2^2 - 2^0, 2^2 - 2
|
| 118 |
+
|
| 119 |
+
... [truncated 822 chars] ...
|
| 120 |
+
|
| 121 |
+
3 = 24, okay. So 21 is the largest non-representable number for n=4? But that seems high. Maybe I made a mistake here.
|
| 122 |
+
|
| 123 |
+
Wait, let's check 21 again. How can we get 21? The elements are 8, 12, 14, 15. Let me think. 15 + 8 = 23. 14 + 8 = 22. 12 + 12 = 24. 12 + 14 = 26. 15 + 12 = 27. 15 + 14 = 29. 8 + 14 = 22. 8 + 15 = 23. 12 + 15 = 27. So 21 is not in the list. So 21 can't be formed. 22 is 8 + 14. 23 is 8 + 15. 24 is 8 + 8 + 8. 25: 12 + 13? No. 14 + 11? No. 15 + 10? No. 8 + 12 + 5? No. 8 + 14 + 3? No. So 25 can't be formed? Wait, but 25 is 8 + 8 + 9? No. 12 + 12 + 1? No. 14 + 11? No. 15 + 10? No. So 25 can't be formed. So 25 is not representable.
|
| 124 |
+
|
| 125 |
+
Wait, so 21, 25, 26? Wait, 26 is 12 + 14. So 26 is okay. So 25 is not representable. Then 26 is okay. So 25 is not representable. Then 27 is 15 + 12. So 27 is okay. So 25 is not representable. So 25 is larger than 21. So maybe the largest non-representable number is 25?
|
| 126 |
+
|
| 127 |
+
Wait, but how do we get 25? Let me think again. 8, 12, 14, 15. Let me try combinations:
|
| 128 |
+
|
| 129 |
+
25 - 15 = 10. 10 can't be formed. 25 - 14 = 11. 11 can't be formed. 25 - 12 = 13. 13 can't be formed. 25 - 8 = 17. 17 can't be formed. So none of these combinations work. So 25 can't be
|
| 130 |
+
```
|