Text Generation
Transformers
Safetensors
English
qwen3
zerohero
crafter
reinforcement-learning
ppo
small-language-model
text-generation-inference
Instructions to use RLMM/zerohero-crafter-5m-ppo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RLMM/zerohero-crafter-5m-ppo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RLMM/zerohero-crafter-5m-ppo")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("RLMM/zerohero-crafter-5m-ppo") model = AutoModelForCausalLM.from_pretrained("RLMM/zerohero-crafter-5m-ppo", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use RLMM/zerohero-crafter-5m-ppo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RLMM/zerohero-crafter-5m-ppo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RLMM/zerohero-crafter-5m-ppo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/RLMM/zerohero-crafter-5m-ppo
- SGLang
How to use RLMM/zerohero-crafter-5m-ppo 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 "RLMM/zerohero-crafter-5m-ppo" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RLMM/zerohero-crafter-5m-ppo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "RLMM/zerohero-crafter-5m-ppo" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RLMM/zerohero-crafter-5m-ppo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use RLMM/zerohero-crafter-5m-ppo with Docker Model Runner:
docker model run hf.co/RLMM/zerohero-crafter-5m-ppo
Download checkpoint_complete.json from RLMM/zerohero-crafter-5m-ppo: direct link, hf CLI and curl.
- Browser
- Download file 2.38 kB
-
https://huggingface.co/RLMM/zerohero-crafter-5m-ppo/resolve/main/checkpoint_complete.json
- Command line
-
hf download hf://RLMM/zerohero-crafter-5m-ppo/checkpoint_complete.json
-
curl -L -o checkpoint_complete.json https://huggingface.co/RLMM/zerohero-crafter-5m-ppo/resolve/main/checkpoint_complete.json
2.38 kB
| { | |
| "iteration": 300, | |
| "rollout": { | |
| "episodes": 256, | |
| "steps": 52324, | |
| "seconds": 459.74597205221653, | |
| "steps_per_second": 113.81067628811591, | |
| "tokens": 6612757, | |
| "invalid": 114, | |
| "generation_cap_hits": 42, | |
| "mean_achievements": 8.703125, | |
| "max_sampling_logprob_mismatch": 0.00029170629568398, | |
| "max_value_mismatch": 2.980232238769531e-07, | |
| "initial_reset_seconds": 8.045299879275262, | |
| "initial_reset_width": 8, | |
| "prefix_tokenizer_setup_seconds": 0.009831060655415058, | |
| "decoder_setup_seconds": 1.2040159860625863, | |
| "decode_unroll": 8, | |
| "collector": "continuous", | |
| "prefix_graph_stats": { | |
| "graph_builds": 24, | |
| "graph_hits": 2990, | |
| "graph_evictions": 0, | |
| "graph_build_seconds": 34.0512573486194, | |
| "graph_batch_histogram": { | |
| "2": 464, | |
| "1": 1241, | |
| "4": 234, | |
| "7": 203, | |
| "5": 190, | |
| "3": 317, | |
| "8": 220, | |
| "6": 145 | |
| }, | |
| "graph_useful_suffix_tokens": 3869894, | |
| "graph_actual_padded_tokens": 4693767, | |
| "graph_executed_suffix_tokens": 6044333 | |
| }, | |
| "prefill_calls": 6082, | |
| "prefill_requests": 52324, | |
| "deferred_prefill_rounds": 0, | |
| "generation_seconds": 431.26506149210036, | |
| "decode_seconds": 177.38954700436443, | |
| "prefill_seconds": 138.905097682029, | |
| "rescore_seconds": 100.8239529542625, | |
| "environment_seconds": 9.009806718677282 | |
| }, | |
| "ppo": { | |
| "policy_loss": -0.002112735440289651, | |
| "value_loss": 0.0015407745989495759, | |
| "entropy": 0.0, | |
| "clip_fraction": 0.0002388961159798377, | |
| "approx_kl_to_previous_policy": 6.488668804028053e-05, | |
| "reference_kl": 0.0, | |
| "grad_norm": 7.252296447753906, | |
| "updates": 2, | |
| "samples": 52324, | |
| "positive_samples": 42849, | |
| "policy_update_skipped": false, | |
| "informative_groups": 0, | |
| "total_groups": 0, | |
| "kl_early_stop": false, | |
| "final_batch_kl": 0.0005845922335108598, | |
| "final_batch_clip_fraction": 0.01706673801697118, | |
| "rejected_attempts": 0, | |
| "update_rolled_back": false, | |
| "learning_rate": 3e-06, | |
| "max_rejected_kl": 0.0 | |
| }, | |
| "update_seconds": 272.64135958906263, | |
| "total_seconds": 209983.23963704426, | |
| "score_cache_hits": 15300624, | |
| "score_cache_misses": 31374741, | |
| "compile_stats": { | |
| "calls_captured": 1082, | |
| "unique_graphs": 2 | |
| }, | |
| "compile_graph_breaks": {}, | |
| "compile_unimplemented": {} | |
| } | |