nvidia/OpenMathReasoning
Viewer • Updated • 5.68M • 26.4k • 468
How to use Harsha901/Qwen3_4B_GRPO_GGUF with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Harsha901/Qwen3_4B_GRPO_GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Harsha901/Qwen3_4B_GRPO_GGUF:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Harsha901/Qwen3_4B_GRPO_GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Harsha901/Qwen3_4B_GRPO_GGUF:Q4_K_M
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Harsha901/Qwen3_4B_GRPO_GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Harsha901/Qwen3_4B_GRPO_GGUF:Q4_K_M
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Harsha901/Qwen3_4B_GRPO_GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Harsha901/Qwen3_4B_GRPO_GGUF:Q4_K_M
docker model run hf.co/Harsha901/Qwen3_4B_GRPO_GGUF:Q4_K_M
How to use Harsha901/Qwen3_4B_GRPO_GGUF with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Harsha901/Qwen3_4B_GRPO_GGUF"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Harsha901/Qwen3_4B_GRPO_GGUF",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/Harsha901/Qwen3_4B_GRPO_GGUF:Q4_K_M
How to use Harsha901/Qwen3_4B_GRPO_GGUF with Ollama:
ollama run hf.co/Harsha901/Qwen3_4B_GRPO_GGUF:Q4_K_M
How to use Harsha901/Qwen3_4B_GRPO_GGUF with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Harsha901/Qwen3_4B_GRPO_GGUF to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Harsha901/Qwen3_4B_GRPO_GGUF to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Harsha901/Qwen3_4B_GRPO_GGUF to start chatting
How to use Harsha901/Qwen3_4B_GRPO_GGUF with Docker Model Runner:
docker model run hf.co/Harsha901/Qwen3_4B_GRPO_GGUF:Q4_K_M
How to use Harsha901/Qwen3_4B_GRPO_GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Harsha901/Qwen3_4B_GRPO_GGUF:Q4_K_M
lemonade run user.Qwen3_4B_GRPO_GGUF-Q4_K_M
lemonade list
Harsha901/Qwen3_4B_GRPO_GGUF is a GGUF-format, quantized inference model derived from Qwen/Qwen3-4B-Base, fine-tuned using Unsloth with GRPO (Generalized Reinforcement Preference Optimization) to improve mathematical reasoning performance.
Base Model:
Evaluation Dataset:
| Model | Correct | Total | Accuracy |
|---|---|---|---|
| Qwen/Qwen3-4B-Base | 701 | 1000 | 70.10% |
| Harsha901/Qwen3_4B_GRPO_GGUF | 850 | 1000 | 85.00% |
temperature=0.0) used during evaluation./main \
-m Qwen3-4B-Base.Q8_0.gguf \
-p "Solve: If a car travels 180 miles in 3 hours, what is its speed?" \
-n 128 \
--temp 0.0
from llama_cpp import Llama
llm = Llama(
model_path="Qwen3-4B-Base.Q8_0.gguf",
n_ctx=4096,
n_threads=8,
)
prompt = "Q: A train travels 120 miles in 2 hours. What is its speed?\nA:"
out = llm(prompt, max_tokens=64, temperature=0.0)
print(out["choices"][0]["text"])
4-bit
5-bit
8-bit
Base model
Qwen/Qwen3-4B-Base