Run this model with HF Jobs
Run kimjunhan/kookmin-residual-rl on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/kimjunhan/kookmin-residual-rl. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/kimjunhan/kookmin-residual-rl on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use kimjunhan/kookmin-residual-rl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use kimjunhan/kookmin-residual-rl with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="kimjunhan/kookmin-residual-rl", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
Kookmin campus residual-RL checkpoints
PPO / SAC / α-RPO residual policies on top of a PID base controller for 8 campus pop-out & construction scenarios
(occluded pedestrian/bicycle, scooter cut-in, pedestrian dart-out, motorcycle crossing, construction, lane closure, parked-car pass).
Environment and training code: GitHub repo rl/scenario_env.py, rl/train_compare.py (stable-baselines3 2.3.2, gymnasium 0.29.1).
Layout: rl/runs_v6/<variant>_s<seed>/{model.zip, eval.json, train_log.json} (reward v6, 1.5 M steps); rl/runs_v5/ algorithm comparison (reward v5).
| variant | modules | seeds | success | collision |
|---|---|---|---|---|
ppo |
PPO residual | 5 | 53.4 % | 2.3 % |
ppo+lag |
+ PPO-Lagrangian (TTC cost, budget 2) | 3 | 67.3 % | 2.0 % |
ppo+occl+rlag |
+ occlusion features + RSS oncoming cost + reference-normalised budget | 3 | 68.2 % | 1.6 % |
from stable_baselines3 import PPO
from scenario_env import ScenarioEnv
env = ScenarioEnv(mode="residual", reward_v=6, occl=True, cost_v="rss", cost_scale={"construction": 0.1, "construction_closure": 0.1})
m = PPO.load("rl/runs_v6/ppo+occl+rlag_s0/model.zip")
Recommended deployment configuration (2026-12-01): hybrid planner
CARLA closed loop on the Kookmin 3D world (3 routes × 8 scenarios × 5 episodes, held-out seeds) with a HiP-AD-like perception error model (0.1 s latency, distance-dependent temporally-correlated misses, 2 % range noise, 0.15 m lateral noise):
| configuration | CARLA success | collision |
|---|---|---|
| PID base controller | 45.8 % | 33.3 % |
ppo+occl+post+rlag (original, trained without curbs) |
49.4 % | 2.2 % |
ppo+dr+occl+post+rlag+road (curb-aware road + steering randomisation) |
70.3 % | 1.4 % |
hybrid: ppo+dr+ft+occl+perc+post+rlag+road_s0/s4 + rule-based work-zone planner + occlusion speed cap + road-edge shield |
91.2 % (s0 92.5, s4 90.0) | 1.2 % |
road: lane edge = curb;dr: steering gain 0.75–1.0, lag 0–0.15 s;perc: perception error model;ft: fine-tuned from theroadrun.- The work-zone planner, occlusion speed cap and creep rule are in
rl/expert.py(Hybrid); cones are assumed to be detected at 30 m (LiDAR fusion). - Per-scenario results:
hybrid_eval_c30_perc_cap.json(2D) and the dataset repoexperiments/carla_rl_final/(CARLA).
from expert import Hybrid
H = Hybrid(PPO.load("rl/runs_v6/ppo+dr+ft+occl+perc+post+rlag+road_s0/model.zip"), cap={})
env = ScenarioEnv(reward_v=6, occl=True, post=True, road=True, perc=True, det_cone=30, cost_v="rss", cost_scale={"construction": 0.1, "construction_closure": 0.1})
action = H(env, obs)
Note: earlier α-RPO / lag / curriculum runs affected by an SB3 set_attr bug are not included.
License
Apache-2.0 (see LICENSE).
- Downloads last month
- 1,519