mirror of
https://github.com/huggingface/lerobot.git
synced 2026-08-08 17:39:44 +00:00
1834f819a6
Second module of Wave 4 (training & eval): brings src/lerobot/rl/ to 100% public docstring coverage, following the standard in docs/source/writing_docstrings.mdx. - Documents the remaining gaps across the SAC algorithm (SACAlgorithm.__init__, CriticHead, CriticEnsemble.__init__/forward, get_optimizers), the RLAlgorithm/RLAlgorithmConfig base contract (optimization_step setter, from_pretrained), SACAlgorithmConfig (converts inline `#` field comments to a proper Args: block), ReplayBuffer/BatchTransition, OnlineOfflineMixer, TrainRLServerPipelineConfig (documents every inherited TrainPipelineConfig field, since the base class itself is undocumented and out of scope), and the actor/learner gRPC entry points (actor_cli, train_cli, transitions_stream/interactions_stream, LearnerService's 5 servicer methods) and their smaller helpers (queue.get_last_item_from_queue, crop_dataset_roi.mouse_callback, eval_policy). - Also documents 3 dunder methods (RLTrainer's _PreprocessedIterator.__iter__/ __next__, ReplayBuffer.__len__) that a naive "skip all underscore-prefixed names" gap scan misses but interrogate's ignore-magic=false requires. - Removing the D-ignore surfaced ~30 pre-existing docstrings with D205/D415/ D417 issues (missing blank line after summary, missing punctuation, stale Args entries that didn't match the real signature) across actor.py, crop_dataset_roi.py, gym_manipulator.py, learner.py, and learner_service.py — all fixed as part of this PR. - Removes "src/lerobot/rl/**" = ["D"] from pyproject.toml's ruff ignore list; the whole module is now checked (no per-family split to narrow, unlike policies). - Adds lerobot.rl to check_docstrings.py's MODULES_TO_CHECK ratchet. - Creates docs/source/api/rl.mdx from scratch (algorithm base contract, SAC, replay buffer, data mixers, trainer, actor/learner CLIs and gRPC service) and wires it into _toctree.yml, cross-linked from the existing hilserl.mdx/ hilserl_sim.mdx guides. Verified via a full doc-builder build — no dead cross-references, no leftover placeholder text. - Ratchets interrogate's fail-under from 55 to 55.5 (measured 55.9% with this PR). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
221 lines
5.2 KiB
YAML
221 lines
5.2 KiB
YAML
- sections:
|
|
- local: index
|
|
title: LeRobot
|
|
- local: installation
|
|
title: Installation
|
|
- local: cheat-sheet
|
|
title: Cheat sheet
|
|
title: Get started
|
|
- sections:
|
|
- local: il_robots
|
|
title: Imitation Learning for Robots
|
|
- local: lelab
|
|
title: LeLab - Lerobot GUI
|
|
- local: bring_your_own_policies
|
|
title: Adding a Policy
|
|
- local: integrate_hardware
|
|
title: Bring Your Own Hardware
|
|
- local: hilserl
|
|
title: Train a Robot with RL
|
|
- local: hilserl_sim
|
|
title: Train RL in Simulation
|
|
- local: multi_gpu_training
|
|
title: Multi GPU training
|
|
- local: hil_data_collection
|
|
title: Human In the Loop Data Collection
|
|
- local: peft_training
|
|
title: Training with PEFT (e.g., LoRA)
|
|
- local: rename_map
|
|
title: Using Rename Map and Empty Cameras
|
|
title: "Tutorials"
|
|
- sections:
|
|
- local: hardware_guide
|
|
title: Compute Hardware Guide
|
|
- local: torch_accelerators
|
|
title: PyTorch accelerators
|
|
title: "Compute & Hardware"
|
|
- sections:
|
|
- local: lerobot-dataset-v3
|
|
title: Using LeRobotDataset
|
|
- local: porting_datasets_v3
|
|
title: Porting Large Datasets
|
|
- local: using_dataset_tools
|
|
title: Using the Dataset Tools
|
|
- local: language_and_recipes
|
|
title: Language Columns and Recipes
|
|
- local: tools
|
|
title: Tools
|
|
- local: annotation_pipeline
|
|
title: Annotation Pipeline
|
|
- local: video_encoding_parameters
|
|
title: Video encoding parameters
|
|
- local: streaming_video_encoding
|
|
title: Streaming Video Encoding
|
|
title: "Datasets"
|
|
- sections:
|
|
- local: act
|
|
title: ACT
|
|
- local: smolvla
|
|
title: SmolVLA
|
|
- local: pi0
|
|
title: π₀ (Pi0)
|
|
- local: pi0fast
|
|
title: π₀-FAST (Pi0Fast)
|
|
- local: pi05
|
|
title: π₀.₅ (Pi05)
|
|
- local: molmoact2
|
|
title: MolmoAct2
|
|
- local: vla_jepa
|
|
title: VLA-JEPA
|
|
- local: eo1
|
|
title: EO-1
|
|
- local: lingbot_va
|
|
title: LingBot-VA
|
|
- local: fastwam
|
|
title: FastWAM
|
|
- local: evo1
|
|
title: EVO1
|
|
- local: groot
|
|
title: NVIDIA GR00T
|
|
- local: xvla
|
|
title: X-VLA
|
|
- local: multi_task_dit
|
|
title: Multitask DiT Policy
|
|
- local: walloss
|
|
title: WALL-OSS
|
|
title: "Policies"
|
|
- sections:
|
|
- local: sarm
|
|
title: SARM
|
|
- local: robometer
|
|
title: ROBOMETER
|
|
- local: topreward
|
|
title: TOPReward
|
|
title: "Reward Models"
|
|
- sections:
|
|
- local: inference
|
|
title: Policy Deployment (lerobot-rollout)
|
|
- local: async
|
|
title: Use Async Inference
|
|
- local: rtc
|
|
title: Real-Time Chunking (RTC)
|
|
title: "Inference"
|
|
- sections:
|
|
- local: envhub
|
|
title: Environments from the Hub
|
|
- local: envhub_leisaac
|
|
title: Control & Train Robots in Sim (LeIsaac)
|
|
title: "Simulation"
|
|
- sections:
|
|
- local: adding_benchmarks
|
|
title: Adding a New Benchmark
|
|
- local: libero
|
|
title: LIBERO
|
|
- local: libero_plus
|
|
title: LIBERO-plus
|
|
- local: metaworld
|
|
title: Meta-World
|
|
- local: robotwin
|
|
title: RoboTwin 2.0
|
|
- local: robocasa
|
|
title: RoboCasa365
|
|
- local: robocerebra
|
|
title: RoboCerebra
|
|
- local: robomme
|
|
title: RoboMME
|
|
- local: envhub_isaaclab_arena
|
|
title: NVIDIA IsaacLab Arena Environments
|
|
- local: vlabench
|
|
title: VLABench
|
|
title: "Benchmarks"
|
|
- sections:
|
|
- local: introduction_processors
|
|
title: Introduction to Robot Processors
|
|
- local: debug_processor_pipeline
|
|
title: Debug your processor pipeline
|
|
- local: implement_your_own_processor
|
|
title: Implement your own processor
|
|
- local: processors_robots_teleop
|
|
title: Processors for Robots and Teleoperators
|
|
- local: env_processor
|
|
title: Environment Processors
|
|
- local: action_representations
|
|
title: Action Representations
|
|
title: "Robot Processors"
|
|
- sections:
|
|
- local: so101
|
|
title: SO-101
|
|
- local: so100
|
|
title: SO-100
|
|
- local: koch
|
|
title: Koch v1.1
|
|
- local: lekiwi
|
|
title: LeKiwi
|
|
- local: hope_jr
|
|
title: Hope Jr
|
|
- local: reachy2
|
|
title: Reachy 2
|
|
- local: unitree_g1
|
|
title: Unitree G1
|
|
- local: earthrover_mini_plus
|
|
title: Earth Rover Mini
|
|
- local: omx
|
|
title: OMX
|
|
- local: openarm
|
|
title: OpenArm
|
|
- local: rebot_b601
|
|
title: reBot B601-DM
|
|
- local: third_party_robots
|
|
title: Third-Party Robots & Teleoperators
|
|
title: "Robots"
|
|
- sections:
|
|
- local: phone_teleop
|
|
title: Phone
|
|
- local: isaac_teleop
|
|
title: Isaac Teleop
|
|
title: "Teleoperators"
|
|
- sections:
|
|
- local: cameras
|
|
title: Cameras
|
|
- local: third_party_sensors
|
|
title: Third-Party Cameras & Sensors
|
|
title: "Sensors"
|
|
- sections:
|
|
- local: notebooks
|
|
title: Notebooks
|
|
- local: feetech
|
|
title: Updating Feetech Firmware
|
|
- local: damiao
|
|
title: Damiao Motors and CAN Bus
|
|
title: "Resources"
|
|
- sections:
|
|
- local: contributing
|
|
title: Contribute to LeRobot
|
|
- local: writing_docstrings
|
|
title: Writing docstrings
|
|
- local: backwardcomp
|
|
title: Backward compatibility
|
|
title: "About"
|
|
- sections:
|
|
- local: api/robots
|
|
title: Robots
|
|
- local: api/teleoperators
|
|
title: Teleoperators
|
|
- local: api/cameras
|
|
title: Cameras
|
|
- local: api/motors
|
|
title: Motors
|
|
- local: api/datasets
|
|
title: Datasets
|
|
- local: api/policies
|
|
title: Policies
|
|
- local: api/processor
|
|
title: Processors
|
|
- local: api/envs
|
|
title: Environments
|
|
- local: api/configs
|
|
title: Configuration
|
|
- local: api/rl
|
|
title: Reinforcement Learning
|
|
title: "API Reference"
|