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-05-19)
Verified signaturePosted by the course CI pipeline.9330090
-
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