Evaluation And Sharing
Use this sub-skill when a task is about evaluating a trained CleanRL model, finding the right evaluation entry point, inspecting a saved run artifact, or explaining how CleanRL's Hugging Face model zoo upload/download path works.
Route Here For
- Local artifact checks for
runs/<run_name>/<exp_name>.cleanrl_model, TensorBoard event hints, and relatedvideos/<run_name>orvideos/<run_name>-evalfolders. - CleanRL model-zoo loading through
cleanrl_utils.enjoyand its--exp-name,--env-id,--seed,--hf-entity,--hf-repository, and--eval-episodesarguments. - Mapping an experiment name to the correct
cleanrl_utils.evalsfunction, model class tuple, serialization format, and optional dependencies. - Explaining
--save-model,--upload-model,--hf-entity,push_to_hub, and model card/upload behavior without performing network or credential actions by default. - Diagnosing missing models, wrong Hugging Face repository names, env/script/eval mismatches, video capture failures, and optional Atari/JAX/MuJoCo/EnvPool dependency gaps.
Do Not Use For
- Choosing or configuring training algorithms; route to
training-scripts. - W&B benchmark reproduction, sweeps, or experiment orchestration; route to
experiment-operations. - Pull requests, documentation contribution, or repository maintenance work; route to
repo-maintenance.
Safe Default Workflow
- Read
references/model-zoo-and-artifacts.mdfor artifact layout, save/upload flags, and network side effects. - Read
references/evaluation-api.mdto choosecleanrl_utils.enjoyversus a localcleanrl_utils.evalsfunction. - Run
python sub-skills/evaluation-and-sharing/scripts/check_cleanrl_artifact.py --run-dir <run-dir> --exp-name <exp-name>orpython sub-skills/evaluation-and-sharing/scripts/check_cleanrl_artifact.py --runs-dir runs --exp-name <exp-name> --env-id <env-id> --seed <seed>before attempting evaluation. - Keep all Hugging Face downloads, uploads, repository creation, logins, and token use behind explicit user approval.
- Use
references/troubleshooting.mdwhen an artifact, repository name, optional dependency, video backend, or eval function does not match the model.
Guardrails
- Do not run
cleanrl_utils.enjoyunless the user accepts Hugging Face network download behavior. - Do not run
--upload-model,push_to_hub, orhuggingface-cli loginunless the user explicitly requests credential-backed sharing. - Prefer local inspection and direct eval-function calls for already downloaded or locally trained
.cleanrl_modelfiles. - Treat
--trackas W&B tracking and--upload-modelas Hugging Face sharing; they are separate network integrations.
