Text Generation
Transformers
Safetensors
qwen3
math
reasoning
open-r1
trl
grpo
conversational
text-generation-inference
Instructions to use G2RPO-A/Qwen3-1.7B-Math with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use G2RPO-A/Qwen3-1.7B-Math with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="G2RPO-A/Qwen3-1.7B-Math") 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("G2RPO-A/Qwen3-1.7B-Math") model = AutoModelForCausalLM.from_pretrained("G2RPO-A/Qwen3-1.7B-Math", 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 G2RPO-A/Qwen3-1.7B-Math with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "G2RPO-A/Qwen3-1.7B-Math" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "G2RPO-A/Qwen3-1.7B-Math", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/G2RPO-A/Qwen3-1.7B-Math
- SGLang
How to use G2RPO-A/Qwen3-1.7B-Math 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 "G2RPO-A/Qwen3-1.7B-Math" \ --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": "G2RPO-A/Qwen3-1.7B-Math", "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 "G2RPO-A/Qwen3-1.7B-Math" \ --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": "G2RPO-A/Qwen3-1.7B-Math", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use G2RPO-A/Qwen3-1.7B-Math with Docker Model Runner:
docker model run hf.co/G2RPO-A/Qwen3-1.7B-Math
Commit History
-
Update loading example after repository transfer
Verified signature4fedc9c -
Correct model identity to Qwen3-1.7B for math tasks
Verified signature8eb2239
-
Training in progress, step 36
Verified signature0e9118b -
Training in progress, step 36
Verified signature4da7567 -
Training in progress, step 36
Verified signature085332c -
Training in progress, step 36
Verified signature0952902
-
End of training
Verified signaturede97277 -
Model save
Verified signature1dcb3d0 -
Training in progress, step 35
Verified signature6ab119d -
Training in progress, step 30
Verified signature8796db9 -
Training in progress, step 25
Verified signaturef802044 -
Training in progress, step 20
Verified signaturea3f0e5c -
Training in progress, step 15
Verified signature5c569e8 -
Training in progress, step 10
Verified signature24957d4 -
Training in progress, step 5
Verified signature216d05a -
Training in progress, step 35
Verified signature16240d5 -
Training in progress, step 30
Verified signaturec1d65c8 -
Training in progress, step 25
Verified signaturefd3a8b2 -
Training in progress, step 20
Verified signature2dd21dc -
Training in progress, step 15
Verified signatureceb27c1 -
Training in progress, step 10
Verified signaturea752bd3 -
Training in progress, step 5
Verified signature68a34bd -
initial commit
Verified signature0cc45e5