Instructions to use cs-552-2026-middle-west/math_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cs-552-2026-middle-west/math_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-middle-west/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-middle-west/math_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-middle-west/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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use cs-552-2026-middle-west/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-middle-west/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-middle-west/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-middle-west/math_model
- SGLang
How to use cs-552-2026-middle-west/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-middle-west/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-middle-west/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-middle-west/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-middle-west/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-middle-west/math_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-middle-west/math_model
Update Automated MNLP evaluation report (2026-05-21)
Browse files- EVAL_REPORT.md +127 -8
EVAL_REPORT.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-middle-west/math_model`](https://huggingface.co/cs-552-2026-middle-west/math_model)
|
| 4 |
- **Owner(s):** group **middle-west**
|
| 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,17 +11,136 @@ _This PR is opened automatically by the course CI. It is **non-blocking** — yo
|
|
| 11 |
|
| 12 |
| Benchmark | Accuracy | Status |
|
| 13 |
|---|---:|---|
|
| 14 |
-
| Math |
|
| 15 |
| Knowledge | — | not run |
|
| 16 |
| Multilingual | — | not run |
|
| 17 |
| Safety | — | not run |
|
| 18 |
|
| 19 |
-
##
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
-
generation_config.json not found: 404 Client Error. (Request ID: Root=1-6a0bd321-4267223c5b74fd0c50dbacdd;88b69002-7185-4e32-b443-065341eb78c0)
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-middle-west/math_model`](https://huggingface.co/cs-552-2026-middle-west/math_model)
|
| 4 |
- **Owner(s):** group **middle-west**
|
| 5 |
+
- **Generated at:** 2026-05-21T03:28:21+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.1600 | 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**: `4`
|
| 28 |
+
- **overall** (8/8 completions correct)
|
| 29 |
+
- **extracted** (✓): `4`
|
| 30 |
+
- **completion**:
|
| 31 |
+
|
| 32 |
+
```text
|
| 33 |
+
<think>
|
| 34 |
+
Okay, so I need to solve the equation 10^x minus 10 equals 9990. Let me write that down first: 10^x - 10 = 9990. Hmm, let me think about how to approach this.
|
| 35 |
+
|
| 36 |
+
First, maybe I should isolate the term with the exponent. That means I need to get 10^x by itself on one side of the equation. So, if I add 10 to both sides, that should cancel out the -10 on the left. Let me try that:
|
| 37 |
+
|
| 38 |
+
10^x - 10 +
|
| 39 |
+
|
| 40 |
+
... [truncated 822 chars] ...
|
| 41 |
+
|
| 42 |
+
confident that x is 4.
|
| 43 |
+
|
| 44 |
+
Wait, but just to check, maybe I can use logarithms with a different base? Let me try natural logarithm, just to see.
|
| 45 |
+
|
| 46 |
+
Taking natural logarithm of both sides: ln(10^x) = ln(10,000)
|
| 47 |
+
Which gives x * ln(10) = ln(10,000)
|
| 48 |
+
Therefore, x = ln(10,000)/ln(10)
|
| 49 |
+
But ln(10,000) is ln(10^4) = 4 ln(10), so x = 4 ln(10)/ln(10) = 4.
|
| 50 |
+
|
| 51 |
+
Same result. So that confirms again that x is 4.
|
| 52 |
+
|
| 53 |
+
So, all methods lead to x = 4. Therefore, the solution is 4.
|
| 54 |
+
|
| 55 |
+
I think that's solid. No mistakes here. So the answer is 4.
|
| 56 |
+
|
| 57 |
+
**Final Answer**
|
| 58 |
+
The solution is \boxed{4}.
|
| 59 |
+
</think>
|
| 60 |
+
|
| 61 |
+
To solve the equation:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
10^x - 10 = 9990
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
---
|
| 68 |
+
|
| 69 |
+
### Step 1: Isolate the Exponential Term
|
| 70 |
+
|
| 71 |
+
We begin by isolating the term $10^x$ by adding 10 to both sides:
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
10^x - 10 + 10 = 9990 + 10
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
10^x = 10000
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
---
|
| 82 |
+
|
| 83 |
+
### Step 2: Solve for $x$
|
| 84 |
+
|
| 85 |
+
Now we solve the exponential equation $10^x = 10000$. Since $10^4 = 10000$, we can directly conclude:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
x = 4
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
---
|
| 92 |
+
|
| 93 |
+
### Step 3: Verify the Solution
|
| 94 |
+
|
| 95 |
+
Substitute $x = 4$ back into the original equation:
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
10^4 - 10 = 10000 - 10 = 9990
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
The left-hand side equals the right-hand side, confirming that the solution is correct.
|
| 102 |
+
|
| 103 |
+
---
|
| 104 |
+
|
| 105 |
+
### Final Answer
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\boxed{4}
|
| 109 |
+
$$
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
**Incorrect** (1 shown)
|
| 113 |
+
|
| 114 |
+
- **reference**: `82`
|
| 115 |
+
- **overall** (0/8 completions correct)
|
| 116 |
+
- **extracted** (✗): `<no answer>`
|
| 117 |
+
- **completion**:
|
| 118 |
+
|
| 119 |
+
```text
|
| 120 |
+
<think>
|
| 121 |
+
Okay, so I need to figure out how many colorings there are for a 2x2 grid where each square has exactly two red sides and two blue sides. The problem mentions that each unit square must have exactly two red sides and two blue sides. The example given has some red and blue lines, but I need to count all possible colorings that meet this condition.
|
| 122 |
+
|
| 123 |
+
First, let me visualize the grid. A 2x2 gr
|
| 124 |
+
|
| 125 |
+
... [truncated 822 chars] ...
|
| 126 |
+
|
| 127 |
+
horizontal edge is shared by two squares. Therefore, each horizontal edge is part of two squares. Similarly for vertical edges.
|
| 128 |
+
|
| 129 |
+
Therefore, each horizontal edge is part of two squares, and each vertical edge is part of two squares.
|
| 130 |
+
|
| 131 |
+
Therefore, for each square, the four edges are:
|
| 132 |
+
|
| 133 |
+
Top edge, left edge, bottom edge, right edge.
|
| 134 |
+
|
| 135 |
+
Each of these edges is part of two squares, except for the ones on the boundary of the grid.
|
| 136 |
+
|
| 137 |
+
But since the grid is 2x2, the top and bottom edges of the entire grid are part of the top and bottom squares. Similarly for left and right edges.
|
| 138 |
+
|
| 139 |
+
But each square has four edges, and each edge is shared between two squares.
|
| 140 |
+
|
| 141 |
+
But the problem states that each square must have exactly two red edges and two blue edges.
|
| 142 |
+
|
| 143 |
+
Therefore, for each square, the number of red edges among its four edges is two.
|
| 144 |
+
|
| 145 |
+
So, for example, take the top-left square. It has the top edge (shared with the top horizontal edge), left edge (shared with the left vertical edge), bottom edge (shared with the bottom horizontal edge), and right edge (shared with the right vertical edge). Each of these edges is part of two squares. So, for the top-left square, the top edge is part of the top-left and top
|
| 146 |
+
```
|