GRM
Collection
Reasoning-focused models for general reasoning and agentic tasks. • 2 items • Updated • 2
How to use OrionLLM/GRM-7b with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="OrionLLM/GRM-7b")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("OrionLLM/GRM-7b")
model = AutoModelForCausalLM.from_pretrained("OrionLLM/GRM-7b")
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]:]))How to use OrionLLM/GRM-7b with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "OrionLLM/GRM-7b"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "OrionLLM/GRM-7b",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/OrionLLM/GRM-7b
How to use OrionLLM/GRM-7b with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "OrionLLM/GRM-7b" \
--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": "OrionLLM/GRM-7b",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "OrionLLM/GRM-7b" \
--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": "OrionLLM/GRM-7b",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use OrionLLM/GRM-7b with Docker Model Runner:
docker model run hf.co/OrionLLM/GRM-7b
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("OrionLLM/GRM-7b")
model = AutoModelForCausalLM.from_pretrained("OrionLLM/GRM-7b")
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]:]))
GRM-7b is a general-purpose reasoning-focused 7B model fine-tuned to improve multi-domain reasoning (math, logic, coding, and broad problem-solving). It is designed to be a strong, practical “daily driver” for general reasoning tasks and as a solid base for further fine-tuning.
| Model | Data | AIME24 | AIME25 | AMC23 | MATH500 | HMMT O2/25 | LCB 06/24-01/25 | CodeElo | CodeForces | GPQA-D | JEEBench |
|---|---|---|---|---|---|---|---|---|---|---|---|
| OpenThinker-7B | ✅ | 30.7 | 22.0 | 72.5 | 82.8 | 15.7 | 26.1 | 11.1 | 14.9 | 38.6 | 45.3 |
| GRM-7b | ✅ | 69.0 | 53.3 | 93.5 | 90.0 | 42.7 | 51.7 | 31.0 | 32.2 | 53.7 | 72.4 |
| DeepSeek-R1-Distill-Qwen-32B | ❌ | 51.3 | 38.0 | 92.0 | 88.0 | 25.0 | 34.5 | 19.9 | 21.1 | 33.2 | 50.4 |
| OpenR1-Distill-7B | ✅ | 57.7 | 39.7 | 87.0 | 88.0 | 25.7 | 30.7 | 30.1 | 29.3 | 58.9 | 68.7 |
| Llama-3.1-Nemotron-Nano-8B-v1 | ✅ | 62.0 | 48.0 | 94.0 | 89.4 | 26.7 | 50.9 | 30.9 | 32.9 | 52.9 | 70.7 |
| AceReason-Nemotron-7B | ✅ | 71.0 | 50.7 | 93.8 | 89.8 | 33.3 | 44.3 | 32.9 | 30.9 | 52.9 | 64.3 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OrionLLM/GRM-7b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)