Instructions to use allenai/Olmo-3-7B-RL-Zero-Math with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use allenai/Olmo-3-7B-RL-Zero-Math with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="allenai/Olmo-3-7B-RL-Zero-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("allenai/Olmo-3-7B-RL-Zero-Math") model = AutoModelForCausalLM.from_pretrained("allenai/Olmo-3-7B-RL-Zero-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 allenai/Olmo-3-7B-RL-Zero-Math with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "allenai/Olmo-3-7B-RL-Zero-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": "allenai/Olmo-3-7B-RL-Zero-Math", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/allenai/Olmo-3-7B-RL-Zero-Math
- SGLang
How to use allenai/Olmo-3-7B-RL-Zero-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 "allenai/Olmo-3-7B-RL-Zero-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": "allenai/Olmo-3-7B-RL-Zero-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 "allenai/Olmo-3-7B-RL-Zero-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": "allenai/Olmo-3-7B-RL-Zero-Math", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use allenai/Olmo-3-7B-RL-Zero-Math with Docker Model Runner:
docker model run hf.co/allenai/Olmo-3-7B-RL-Zero-Math
Commit History
-
Update the number of parameters (#3)
- Update the number of parameters (90f7ce9fcadb4b01435b3c86dc7942bd7e4d7bd4) Co-authored-by: Mishig Davaadorj <mishig@users.noreply.huggingface.co>dee26a4
-
Update README.md
Verified signaturebdcbd11
-
Add OLMo 3 citation
Verified signature4a32e35
-
Update README.md
Verified signature91213e2
-
Update README.md
Verified signature1971daf
-
Update README.md
Verified signatureefc8236 -
Update README.md
Verified signaturea6fba39 -
Upload olmo-rl-zero.png
Verified signature4655ee9
-
Add `transformers` as the library name (#1)
Verified signature- Add `transformers` as the library name (39a81a692f5671b45505dcf53e32f8b8b3f1198a) Co-authored-by: Aritra Roy Gosthipaty <ariG23498@users.noreply.huggingface.co>8b78fa3
-
Update README.md
Verified signaturec06c419 -
Update README.md
Verified signature3ce5220 -
Update README.md
Verified signature0653c7a -
Update README.md
Verified signature292f1e1 -
Initial README
Verified signature490801a
-
Update config.json on branch main
Verified signaturee9756de
-
Upload checkpoint from step 2000
Verified signature22e0bf7 -
initial commit
Verified signature8bb6a8b