Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
trl
sft
conversational
text-generation-inference
Instructions to use cs-552-2026-MandMP/math_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cs-552-2026-MandMP/math_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-MandMP/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-MandMP/math_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-MandMP/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-MandMP/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-MandMP/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-MandMP/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-MandMP/math_model
- SGLang
How to use cs-552-2026-MandMP/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-MandMP/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-MandMP/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-MandMP/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-MandMP/math_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-MandMP/math_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-MandMP/math_model
| # Automated MNLP evaluation report | |
| - **Model repo:** [`cs-552-2026-MandMP/math_model`](https://huggingface.co/cs-552-2026-MandMP/math_model) | |
| - **Owner(s):** group **MandMP** | |
| - **Generated at:** 2026-06-01T06:13:57+00:00 (UTC) | |
| - **Pipeline:** [mnlp-project-ci](https://github.com/eric11eca/mnlp-project-ci) | |
| _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._ | |
| ## Summary | |
| | Benchmark | Accuracy | Status | | |
| |---|---:|---| | |
| | Math | 0.1900 | ok | | |
| | Knowledge | — | not run | | |
| | Multilingual | — | not run | | |
| | Safety | — | not run | | |
| ## Sample completions | |
| _Prompts are intentionally omitted to avoid revealing benchmark contents. For multi-completion problems, only one completion is shown per sample._ | |
| ### Math | |
| **Correct** (1 shown) | |
| - **reference**: `3` | |
| - **overall** (7/8 completions correct) | |
| - **extracted** (✓): `3` | |
| - **completion**: | |
| ```text | |
| Okay, so I need to solve this problem about treeks, squigs, and goolees. Let me read it again: | |
| "Suppose 10 treeks have the same weight as 3 squigs plus 1 goolee, and 2 treeks together with 1 goolee weigh as much as 1 squig. Determine how many treeks have a combined weight equal to that of 1 squig." | |
| Alright, so there are three different units: treeks, squigs, and goolees. The problem gives me two | |
| ... [truncated 823 chars] ... | |
| herefore, x = 3T / T = 3. So, 3 treeks equal 1 squig. | |
| Wait, so the answer is 3? | |
| Let me check again. | |
| From equation (1): 10T = 3S + G | |
| From equation (2): 2T + G = S | |
| We can substitute S from equation (2) into equation (1): | |
| 10T = 3*(2T + G) + G => 10T = 6T + 3G + G => 10T = 6T + 4G => 4T = 4G => T = G. | |
| Then S = 2T + G = 2T + T = 3T. Therefore, 1 squig is 3 treeks. So yes, 3 treeks equal 1 squig. | |
| So the answer is 3. Therefore, boxed answer is \boxed{3}. | |
| But let me think again if I did everything correctly. Maybe I made an assumption? | |
| Wait, the problem says "how many treeks have a combined weight equal to that of 1 squig". So, if 1 squig is 3 treeks, then 3 treeks = 1 squig. So yes, answer is 3. | |
| Alternatively, maybe I should check with actual numbers. Let me assign some numbers. | |
| Let me assume that T = G = 1 unit. Then S = 3T = 3 units. | |
| Check equation (1): 10T = 10*1 = 10. On the other side, 3S + G = 3*3 + 1 = 9 + 1 = 10. Correct. | |
| Equation (2): 2T + G = 2*1 + 1 = 3, which equals S = 3. Correct. | |
| So yes, that works. Therefore, 3 treeks equal 1 squig. So answer is 3. | |
| Therefore, I think the answer is 3. So \boxed{3} is the answer. | |
| **Final Answer** | |
| \boxed{3} | |
| </think> | |
| \boxed{3} | |
| ``` | |
| **Incorrect** (1 shown) | |
| - **reference**: `31` | |
| - **overall** (0/8 completions correct) | |
| - **extracted** (✗): `<no answer>` | |
| - **completion**: | |
| ```text | |
| Okay, so I need to solve this problem where we have an equation |x² + a x + b| = c, and there are three distinct integer solutions for x. The variables a, b, and c are integers, and c is less than or equal to 2025. We need to find how many possible values of c there are. | |
| First, let me recall that absolute value equations like |f(x)| = c can be split into two cases: f(x) = c and f(x) = -c. So, in | |
| ... [truncated 823 chars] ... | |
| uting c = b - r1 r2 into a² = 4(b + c): | |
| a² = 4(b + b - r1 r2) = 4(2b - r1 r2) | |
| But also, from Q1, a = -(r1 + r2). Therefore, a² = (r1 + r2)^2. | |
| Therefore: | |
| (r1 + r2)^2 = 8b - 4 r1 r2 | |
| Let me write that equation: | |
| (r1 + r2)^2 = 8b - 4 r1 r2 | |
| Expanding left side: | |
| r1² + 2 r1 r2 + r2² = 8b - 4 r1 r2 | |
| Bring all terms to left side: | |
| r1² + 2 r1 r2 + r2² + 4 r1 r2 - 8b = 0 ⇒ r1² + 6 r1 r2 + r2² - 8b = 0 | |
| Therefore: | |
| 8b = r1² + 6 r1 r2 + r2² | |
| Therefore: | |
| b = [r1² + 6 r1 r2 + r2²]/8 | |
| But since b must be integer, the numerator must be divisible by 8. | |
| Similarly, since c = b - r1 r2, then c = [r1² + 6 r1 r2 + r2²]/8 - r1 r2 = [r1² + 6 r1 r2 + r2² - 8 r1 r2]/8 = [r1² - 2 r1 r2 + r2²]/8 = (r1 - r2)^2 / 8 | |
| Therefore, c = (r1 - r2)^2 / 8 | |
| Since c must be integer, (r1 - r2)^2 must be divisible by 8. Therefore, (r1 - r2)^2 ≡ 0 mod 8 ⇒ r1 - r2 is divisible by 2√2? Wait, no. Wait, if (r1 - r2)^2 is divisible by 8, then (r1 - r2)^2 must be divisible by 8. Let me think. | |
| If (r1 - r2)^2 is divisible by 8, then (r1 - r2)^2 has factors of 2^3. Therefore, (r1 - r2)^2 must be divisible by 8 ⇒ (r1 - r2)^2 is divisible by 8 ⇒ (r1 - r2) is divisible by 2√2? Wait, no. Let me think again. | |
| Suppose that (r1 - r2 | |
| ``` | |