Instructions to use allenai/Olmo-3-7B-RL-Zero-Code 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-Code 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-Code") 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-Code") model = AutoModelForCausalLM.from_pretrained("allenai/Olmo-3-7B-RL-Zero-Code", 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-Code 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-Code" # 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-Code", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/allenai/Olmo-3-7B-RL-Zero-Code
- SGLang
How to use allenai/Olmo-3-7B-RL-Zero-Code 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-Code" \ --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-Code", "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-Code" \ --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-Code", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use allenai/Olmo-3-7B-RL-Zero-Code with Docker Model Runner:
docker model run hf.co/allenai/Olmo-3-7B-RL-Zero-Code
Duplicate weight files across branches: step_100==step_1000, step_200==step_2000, step_300==main
Duplicate weight files across branches: step_100==step_1000, step_200==step_2000, step_300==main
Summary
Three pairs of branches contain identical model weight files (verified via LFS SHA-256):
| Branch A | Branch B | LFS SHA-256 (shard 1, first 16 chars) |
|---|---|---|
step_100 |
step_1000 |
e5f78246eb9773f0 |
step_200 |
step_2000 |
53d993f3c56a3ec1 |
step_300 |
main |
7714e11a8d367ebc |
Reproduction
from huggingface_hub import HfApi
from collections import defaultdict
api = HfApi()
shard1_hashes = {}
branches = [f'step_{i}' for i in range(100, 3001, 100)] + ['main']
for rev in branches:
try:
files = api.list_repo_tree('allenai/Olmo-3-7B-RL-Zero-Code', revision=rev)
for f in files:
name = getattr(f, 'rfilename', getattr(f, 'path', ''))
if 'model-00001' in name and hasattr(f, 'lfs') and f.lfs:
shard1_hashes[rev] = f.lfs.sha256[:16]
except:
pass
groups = defaultdict(list)
for rev, h in shard1_hashes.items():
groups[h].append(rev)
for h, revs in groups.items():
if len(revs) > 1:
print(f'DUPLICATE: {revs} -> {h}')
Output:
DUPLICATE: ['step_100', 'step_1000'] -> e5f78246eb9773f0
DUPLICATE: ['step_200', 'step_2000'] -> 53d993f3c56a3ec1
DUPLICATE: ['step_300', 'main'] -> 7714e11a8d367ebc
The pattern suggests a labeling error during upload: each X00 step was duplicated as X000 (100→1000, 200→2000, 300→main). Researchers using these checkpoints to study how representations evolve during RL training will see false patterns.
- Are the correct step_1000 and step_2000 weights available? Could they be re-uploaded to the correct branches?
- Which training step does
maincorrespond to, is it intended to be step_300, or should it be the final checkpoint (step_3000)?
Environment
- Verified with
huggingface_hubversion 0.36.2 - Also confirmed via local
md5sumaftersnapshot_downloadwithforce_download=True
Thank you for releasing intermediate checkpoints, they are extremely valuable for research.
The shared files are the later checkpoints, so step_100, step_200 and step_300 are the overwritten branches and main is the final checkpoint.
Whole rows of every .weight tensor (0.005% of the elements, the same rows in every revision) were read from the base allenai/Olmo-3-1025-7B and from every step_* branch. Squared displacement from the base, relative to step_2900:
| branch | squared displacement / step_2900 |
|---|---|
step_400 |
0.059 |
step_900 |
0.164 |
step_100 = step_1000 |
0.192 |
step_1100 |
0.225 |
step_1900 |
0.671 |
step_200 = step_2000 |
0.699 |
step_2100 |
0.735 |
step_2900 |
1.000 |
step_300 = main |
1.053 |
From step_400 to step_2900 the displacement grows at every branch. Each duplicate sits where its larger step number belongs, and step_300 = main sits one checkpoint beyond step_2900. This fits checkpoints of steps 1000, 2000 and 3000 uploaded under names that lost one trailing zero: the true checkpoints of steps 100, 200 and 300 are the missing ones, and main holds step 3000. allenai/Olmo-3-7B-RL-Zero-IF has the same pattern, step_100 = step_1000 and step_400 beyond step_1900 (https://huggingface.co/allenai/Olmo-3-7B-RL-Zero-IF/discussions/3).
Until the branches are fixed, dropping step_100, step_200 and step_300 leaves a consistent path from step 400 to step 2900.
Thanks for the follow-up measurement — the displacement table settles the ordering: step_100 = step_1000 sits where step 1000 belongs, and step_300 = main sits one checkpoint beyond step_2900 at 1.053. The trailing-zero reading fits every duplicate, and dropping step_100, step_200 and step_300 leaves a consistent path from step 400 to step 2900 until the branches are fixed. We appreciate the careful cross-check.