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)# pip install -U transformers accelerate # 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=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-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
Commit History
-
Automated MNLP evaluation report (2026-06-03) (#14)
- Automated MNLP evaluation report (2026-06-03) (40bb50d55f7b2f88665e630a6bb9d340092f7d94) Co-authored-by: Zeming Chen - Eric <zechen-nlp@users.noreply.huggingface.co>a41c3c3
-
Automated MNLP evaluation report (2026-06-01) (#13)
- Automated MNLP evaluation report (2026-06-01) (1edda09ea370add5356214f451089edb7862fd66) Co-authored-by: Zeming Chen - Eric <zechen-nlp@users.noreply.huggingface.co>0955d60
-
Automated MNLP evaluation report (2026-05-29) (#12)
- Automated MNLP evaluation report (2026-05-29) (7f9d8f18c6c01b82aa82411ef9ac5d5918f4f853) Co-authored-by: Zeming Chen - Eric <zechen-nlp@users.noreply.huggingface.co>58b649f
-
concise_sft_v1: SFT on 7899 concise traces from Qwen3-8B (thinking off), 1 epoch on top of dapo_v3
Verified signature051ffca -
Automated MNLP evaluation report (2026-05-28) (#11)
- Automated MNLP evaluation report (2026-05-28) (3297a4b2986caec3ccd0a6107c4c17d19e0fc741) Co-authored-by: Zeming Chen - Eric <zechen-nlp@users.noreply.huggingface.co>f58c2f0
-
Automated MNLP evaluation report (2026-05-27) (#10)
- Automated MNLP evaluation report (2026-05-27) (375b0a5fa15e9c89b168ebf65eb0bbfab2405683) Co-authored-by: Zeming Chen - Eric <zechen-nlp@users.noreply.huggingface.co>2c97fe4
-
Automated MNLP evaluation report (2026-05-26) (#9)
- Automated MNLP evaluation report (2026-05-26) (6ac82009f40f7ad580ace973c22261e155af0aea) Co-authored-by: Zeming Chen - Eric <zechen-nlp@users.noreply.huggingface.co>e95e6f9
-
Upload dapo_v3_merged_latest weights
Verified signature46b0423 -
Add repetition_penalty=1.05
Verified signaturec1721de -
Automated MNLP evaluation report (2026-05-25) (#8)
- Automated MNLP evaluation report (2026-05-25) (4e959bad1f3d42d6ef6b6c7015aeafd798ec96eb) Co-authored-by: Zeming Chen - Eric <zechen-nlp@users.noreply.huggingface.co>d660f80
-
Automated MNLP evaluation report (2026-05-24) (#7)
- Automated MNLP evaluation report (2026-05-24) (913f94c38853cc51e400d0bf73b3cca7ad9fd898) Co-authored-by: Zeming Chen - Eric <zechen-nlp@users.noreply.huggingface.co>068d0e5 -
DAPO RL 1600 steps merged
Verified signature1418c00 -
Automated MNLP evaluation report (2026-05-23) (#6)
- Automated MNLP evaluation report (2026-05-22) (a5d093380ef411ba4a567666d1e1245615e83440) - Update Automated MNLP evaluation report (2026-05-23) (218d0fcef7f42f9f849e3c4dc88c99d01e8e62e3) Co-authored-by: Zeming Chen - Eric <zechen-nlp@users.noreply.huggingface.co>5a568eb
-
DAPO RL 800 steps merged
Verified signature5a9ca7a
-
Upload dapo_v2 merged checkpoint at step 200
Verified signature88c1571 -
Automated MNLP evaluation report (2026-05-21) (#5)
- Automated MNLP evaluation report (2026-05-21) (dec34dee43812881fac5d89adf39906171c9a452) Co-authored-by: Zeming Chen - Eric <zechen-nlp@users.noreply.huggingface.co>335c35a
-
Add checkpoint-580: SFT distill with math system prompt + enable_thinking
Verified signature6e0bf51 -
Fix tokenizer_config: set pad_token to <|im_end|>
Verified signature796af15 -
Fix chat_template: add enable_thinking=true and math system prompt auto-injection
Verified signature7b6d984 -
Automated MNLP evaluation report (2026-05-20) (#4)
- Automated MNLP evaluation report (2026-05-20) (241883a733d7ead36c20f71e469deb1f3e2de67d) Co-authored-by: Zeming Chen - Eric <zechen-nlp@users.noreply.huggingface.co>ba906aa
-
fix: default enable_thinking to ON by adding else branch for <think> injection
Verified signature0f88a28 -
fix: update generation_config.json to match project spec
Verified signature264aa12 -
fix: set pad_token_id to 151643 (endoftext)
Verified signature46c3f56 -
Fix: restore Qwen3 chat template
Verified signature95d0da9 -
Fix: restore Qwen3 chat template
Verified signaturebcc275e -
Automated MNLP evaluation report (2026-05-19) (#3)
- Automated MNLP evaluation report (2026-05-19) (93300904583b25c3ac6e4a8637e214bbdac70b43) Co-authored-by: Zeming Chen - Eric <zechen-nlp@users.noreply.huggingface.co>dc38dbd
-
Fix generation_config: correct pad_token_id, add bos_token_id, remove training-time overrides
Verified signature3a4ce59 -
Automated MNLP evaluation report (2026-05-18) (#2)
- Automated MNLP evaluation report (2026-05-13) (a8ae86b23a3eb2ed310d6a9838d664bb91eaa6e7) - Update Automated MNLP evaluation report (2026-05-16) (b251e5031224127d2b5979a27a72573a7d59e581) - Update Automated MNLP evaluation report (2026-05-17) (dd5df7e6a8c253f3562a36b763117bdafcc26dd7) - Update Automated MNLP evaluation report (2026-05-18) (ae3353af06b2327021b22c7e130ba958846c6145) Co-authored-by: Zeming Chen - Eric <zechen-nlp@users.noreply.huggingface.co>63c4966
-
Remove training_args.bin (training artifact, not needed for inference)
Verified signatureb455b43 -
Remove trainer_state.json (training artifact, not needed for inference)
Verified signatureeccf3f4 -
Remove scheduler.pt (training artifact, not needed for inference)
Verified signature0b52c5b -
Remove rng_state.pth (training artifact, not needed for inference)
Verified signature9584bd0 -
Remove optimizer.pt (training artifact, not needed for inference)
Verified signature0776556 -
Distilled checkpoint (Qwen3-8B teacher, MATH train, 2 epochs)
Verified signature6f45883
-
Automated MNLP evaluation report (2026-05-13) (#1)
- Automated MNLP evaluation report (2026-05-13) (66937620c233f6368340fa4cba27b27d91073a07) Co-authored-by: Zeming Chen - Eric <zechen-nlp@users.noreply.huggingface.co>b90a696
-
Add thinking_token_budget=1500 to generation config
Verified signaturebec4dc9 -
Fix system prompt with correct boxed format
Verified signature650e0ad -
Add default system prompt for boxed format compliance
Verified signaturec79a414 -
Remove training_args.bin artifact
Verified signatured04b411 -
Restore max_new_tokens in generation_config
Verified signaturefdeb43f -
Remove training artifacts and checkpoint folders
Verified signature5299acc -
Upload folder using huggingface_hub
Verified signaturebf7cb5b -
Upload tokenizer
Verified signaturea141847 -
Upload Qwen3ForCausalLM
Verified signature609e9b1 -
initial commit
Verified signature56002cc