Instructions to use tsilva/NES-SuperMarioBros_Level1-2_gray84-hudcrop-stack4-simple_ppo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use tsilva/NES-SuperMarioBros_Level1-2_gray84-hudcrop-stack4-simple_ppo with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="tsilva/NES-SuperMarioBros_Level1-2_gray84-hudcrop-stack4-simple_ppo", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
| {"checkpoint":{"algorithm_id":"ppo","filename":"model.zip","kind":"checkpoint","model_class":"stable_baselines3.ppo.ppo.PPO","sha256":"031cad88ae2a0a12064e1459601bfa51fbe5e7aa69e0c39aefbd1ba0f4cfd483","size_bytes":21054227,"step":7500000},"document_type":"rlab.model","format_version":1,"policy":{"algorithm_id":"ppo","model_class":"stable_baselines3.ppo.ppo.PPO","training_backend_config_hash":"4a6293118b258140c5a2285db3a2d4e49bdf370706890b27bb462191edf67380","training_backend_id":"sb3.ppo"},"provenance":{"goal_slug":"Level1-2","kind":"checkpoint","metadata_version":2,"queue_train_job_id":4,"recipe_slug":"base","repo_git_commit":"40b8613743e41d36489701888cafcee24306604e","run_description":"Seed 1 runs the Level1-2 transfer of the successful Level1-1 B55 low-KL late-decay recipe, created to test whether that policy recipe transfers without changing PPO or reward hyperparameters while overriding only Level1-2 identity and reporting metadata.","run_name":"Level1-2_base_s1_20260704T072752Z","runtime_image_ref":"docker:ghcr.io/tsilva/rlab/rlab-train@sha256:c4177f738fe275e9758d60a883f48a143d8b8ed9a2d4814788e298151e05daa1","seed":1,"training_metadata":{"env_config":{"action_set":"simple","clip_rewards":false,"completion_reward":0.0,"death_penalty":25.0,"done_on_events":["life_loss","level_change"],"env_provider":"supermariobrosnes-turbo","env_threads":4,"env_wrappers":[{"id":"SuperMarioBrosNesProgressInfoWrapper","kwargs":{}},{"id":"SuperMarioBrosNesRewardEnvWrapper","kwargs":{"completion_reward":0.0,"death_penalty":25.0,"progress_reward_scale":1.0,"reward_mode":"score","reward_scale":10.0,"score_progress_clipped":false,"terminal_reward":50.0}}],"frame_skip":4,"game":"SuperMarioBros-Nes-v0","hud_crop_top":-1,"info_events":{},"max_episode_steps":4500,"max_pool_frames":false,"no_progress_min_delta":0,"no_progress_timeout_steps":0,"obs_crop":[32,0,0,0],"obs_resize_algorithm":"area","observation_size":84,"progress_reward_cap":30.0,"progress_reward_scale":1.0,"reward_mode":"score","reward_scale":10.0,"score_progress_clipped":false,"state":"Level1-2","state_distribution":[],"state_probs":[],"state_sampling_mode":"single","states":[],"sticky_action_prob":0.0,"task_conditioning":false,"task_conditioning_info_values":[],"task_conditioning_info_vars":[],"terminal_reward":50.0,"time_penalty":0.0,"use_retro_reward":false},"environment":{"env_id":"supermariobrosnes-turbo:SuperMarioBros-Nes-v0","preprocessing":{"frame_skip":4,"frame_stack":4,"max_pool_frames":false,"obs_copy":"safe_view","obs_crop":[32,0,0,0],"obs_crop_fill":0,"obs_crop_mode":"remove","obs_grayscale":true,"obs_resize":[84,84],"obs_resize_algorithm":"area","pipeline":"supermariobrosnes_turbo_native_vec_env","policy_observation_layout":"channel_first","sticky_action_prob":0.0},"provider_args":{"frame_stack":4,"info":"data","info_filter":"all","inttype":"stable","noop_reset_max":0,"obs_copy":"safe_view","obs_grayscale":true,"obs_layout":"chw","obs_type":"image","players":1,"record":false,"render_mode":"rgb_array","reward_clip":false,"rom_path":null,"scenario":"scenario","use_restricted_actions":"filtered"},"schema_version":2,"state":"Level1-2","task":{"action":{"set":"simple"},"events":{"level_change":{"operation":"change","signal":"level"},"life_loss":{"operation":"decrease","signal":"lives"}},"id":"mario","reward":{"clip_rewards":false,"completion_reward":0.0,"death_penalty":25.0,"progress_reward_cap":30.0,"progress_reward_scale":1.0,"reward_mode":"score","reward_scale":10.0,"score_progress_clipped":false,"terminal_reward":50.0,"time_penalty":0.0,"use_native_reward":false},"signals":{"level":["levelHi","levelLo"],"lives":"lives","score":"score","x":["xscrollHi","xscrollLo"]},"termination":{"failure":["life_loss"],"max_episode_steps":4500,"success":["level_change"]}}},"environment_hash":"sha256:3ed482a01669b9e31884d67157ab5724d1bd45f97a1db19ae2515331e4387f73","preprocessing":{"frame_skip":4,"frame_stack":4,"max_pool_frames":false,"obs_copy":"safe_view","obs_crop":[32,0,0,0],"obs_crop_fill":0,"obs_crop_mode":"remove","obs_grayscale":true,"obs_resize":[84,84],"obs_resize_algorithm":"area","pipeline":"supermariobrosnes_turbo_native_vec_env","policy_observation_layout":"channel_first","sticky_action_prob":0.0},"versions":{"stable_baselines3":"2.8.0","stable_retro_turbo":"1.0.1.post4","supermariobrosnes_turbo":"0.2.4"}},"training_metadata_hash":"f2b1c76473d3e40258b4620e2fb43ad54e5954d4a403dee1ebe02737976075f4","wandb_project":"SuperMarioBros-Nes-v0","wandb_run_id":"dtpvaqq2","wandb_run_path":"tsilva/SuperMarioBros-Nes-v0/dtpvaqq2"},"recipe":{"document_type":"rlab.recipe","filename":"recipe.json","format_version":1,"sha256":"672a9d4cffa41c1c59bf7e7d6087e3050ec69c91f06d54232e597d132127b28b","size_bytes":10826}} | |