Skip to content

refactor(lerobot_act): migrate to Task SDK - #1941

Merged
chaofengw-nv merged 1 commit into
NVIDIA:mainfrom
chaofengw-nv:refactor/lerobot-act-task-sdk
Nov 3, 2026
Merged

chaofengw-nv merged 1 commit into
NVIDIA:mainfrom
chaofengw-nv:refactor/lerobot-act-task-sdk

Conversation

@chaofengw-nv

Copy link
Copy Markdown
Collaborator

Background

Closes #1470 (epic #1430). This migrates lerobot_act to the semantic Task SDK introduced by #1226.

The family declared the retired robot_control mode and implemented IRobotControl from trtmc/task.h. predict_action_chunk() returned one 100-step chunk, and act()/reset() drove a per-step queue over that chunk. The CLI control command, the recorded-control example and the benchmark control workload reached it through the legacy task path. lerobot_pi05 and lerobot_groot already implement the action Tasks this PR maps to.

Exit Criteria

  • New bundles declare image_state_to_action_chunk. The runtime binds it as the primary Task and image_state_action_queue as a secondary Task on the same bundle, both without runtime Config fields.
  • Every retired capability is preserved:
    • one-shot chunk prediction, with actions, schema, training-bounds flag and inference time;
    • per-step replay with automatic refill;
    • reset.
  • The recorded-checkpoint E2E keeps its PyTorch oracle and thresholds, and its CLI, qualification and SDK outputs agree exactly.
  • The shared CLI, example and benchmark paths work on a rebuilt bundle.
  • tests/test_support.py asserts the default Task, as tools/tests/test_architecture.py requires.
  • Non-goals:
    • graph, precision or preprocessing changes;
    • new action Tasks;
    • retiring IRobotControl and its remaining shared callers (see Notes).

Implementation

Task mapping

Retired IRobotControl Semantic Task Behavior
predict_action_chunk() image_state_to_action_chunk (IImageStateToActionChunk::run) Engine I/O is unchanged. The result owns the 100x14 chunk, the schema (domain lerobot.act, normalization unnormalized), within_training_bounds and inference_ms.
act() / reset() image_state_action_queue (IImageStateActionQueue::create_action_session, then the session's act/reset) A session replays the chunk one row per step and refills it when spent. started_new_chunk and inference_ms are set only on the refilling step. reset() clears the queue and the policy's execution context. Each session owns its queue, so a chunk run neither consumes nor replaces a live session.

Changes

  • runtime/pipeline.h, pipeline.cpp
    • Pipeline implements internal::IModel, IImageStateToActionChunk and IImageStateActionQueue.
    • task_bindings() binds both Tasks without Config fields. Any Config is rejected with internal::ConfigError.
    • Observations are validated before inference: shape, image format, byte size and state size.
    • Images may be Float32 in [0, 1] or UInt8 in [0, 255]. UInt8 is divided by 255, as the CLI's image reader does.
  • runtime/plugin.cpp: a bundle whose header declares any other Task is refused with "rebuild it for image_state_to_action_chunk".
  • support.py, model.py, tests/manifests/act-aloha-sim-transfer-cube.json: the primary Task is image_state_to_action_chunk, and build() refuses robot_control.
  • tests/cpp/test_task_contract.cpp replaces test_pipeline.cpp. It is a CPU contract test with a recording fake engine and covers:
    • bindings;
    • the chunk contract, schema and bounds;
    • UInt8 scaling;
    • queue replay, refill and reset, separate sessions, and a chunk run while a session is live;
    • per-row bounds;
    • invalid observations, Config rejection and invalid construction.
  • tests/sdk_consumer.c (UInt8 image) and tests/sdk_consumer.cpp (Float32 image) are public C and C++ SDK consumers. Each one:
    • checks that neither Task exposes Config fields;
    • runs the chunk;
    • drives a queue session for rows + 2 steps (full replay, refill, reset) and requires every step to equal its chunk row exactly;
    • runs a second chunk while the session is live;
    • reads the first chunk after the session and model are released.
  • tests/test_e2e.py:
    • builds both consumers and adds an SDK stage;
    • the compare stage requires the SDK, CLI and qualification actions to be equal, and checks the CLI's Task and schema;
    • thresholds are unchanged.
  • tests/cpp/qualification.cpp uses the public C++ SDK (trtmc::Model::load, ImageStateToActionChunk) instead of the internal task loader. Its metrics output is unchanged.
  • tests/test_model.py, tests/test_support.py (new): support and build() Task checks, and dependency-free identity resolution.

Outside the family:

  • examples/models/lerobot_act/recorded_control/README.md: the example code is unchanged, because it already chooses the SDK path from the bundle's primary Task. The README no longer says ACT keeps IRobotControl until it migrates, and it tells owners of robot_control bundles to rebuild.
  • apps/aiperf_qual/config/tasks.yaml: image_state_to_action_chunk reuses the robot_control defaults (action_parity). Without this alias, AIPerf qualification of the ACT catalog entry stops with "no Task defaults".

Compatibility

Bundles built before this change declare robot_control. This family refuses them with a rebuild hint, so they must be rebuilt. The bundle format is otherwise unchanged.

Change categories

  • Model or runtime behavior
  • Public API
  • ABI
  • Bundle or artifact format
  • Dependencies
  • Documentation only
  • CI or developer tooling

Validation

Commands and Results

Build. Against TensorRT 11.4.0.106 and, separately, 11.1.0.106:

cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release "-DCMAKE_CUDA_ARCHITECTURES=103-real;120-real" \
  -DTRTMC_BUILD_BACKEND_RTX=OFF -DTRTMC_BUILD_TESTS=ON -DTRTMC_BUILD_EXAMPLES=ON
cmake --build build --target trtmc trtmc_c trtmc_backend_trt trtmc_model_lerobot_act \
  test_lerobot_act_task_contract test_lerobot_act_sdk_c test_lerobot_act_sdk_cpp \
  lerobot_act_qualification trtmc_example_recorded_control trtmc_benchmark_worker
# built; 0 warnings from families/lerobot_act (the contract test and SDK consumers use -Werror)

CPU tests. Run with both TensorRT versions:

build/families/lerobot_act/test_lerobot_act_task_contract            # passed
ctest --test-dir build -R "lerobot_act|example_recorded_control_sdk"  # 2/2 passed
python3 -m pytest families/lerobot_act/tests -q                       # 25 passed, 1 skipped (E2E not selected)

Source quality. The Community CPU source-quality stage, reproduced with the CI image's ruff 0.16.4 and clang-format 22.1.8:

python tools/legal_headers.py --check                      # 0 findings
python -m tools.model_ci validate                          # valid
ruff check --config ruff.toml <5 changed Python files>     # clean; ruff format --check also clean
clang-format --dry-run --Werror <7 changed C/C++ files>    # clean
python -m pytest tools/tests/test_architecture.py tools/tests/test_family_impact.py \
  tools/tests/test_community_ci.py tools/tests/test_public_source_hygiene.py \
  tools/tests/test_new_ci.py tools/tests/test_pr_metadata.py -q   # 307 passed

GPU E2E. Offline, on the selected premerge case:

TRTMC_BINARY=build/trtmc TRTMC_RUNTIME_ROOT=build TRTMC_NATIVE_BUILD_DIR=build \
TRTMC_REFERENCE_SOURCE_DIR=<huggingface/lerobot checkout> TRTMC_LEROBOT_ACT_MODEL_DIR=<checkpoint snapshot> \
python3 -m pytest families/lerobot_act/tests/test_e2e.py \
  --e2e-testcase act-aloha-sim-transfer-cube-recorded-episode-0-frame-0 -q
# 13 passed on TensorRT 11.4 and on 11.1
E2E metric TensorRT 11.4 TensorRT 11.1 Gate
Max abs error vs PyTorch reference 1.25e-6 1.55e-6 <= 5e-5
Mean abs error / RMSE 9.9e-8 / 1.59e-7 1.1e-7 / 1.83e-7 <= 5e-6 / <= 1e-5
Chunk inference p50 / p95 1.90 / 1.91 ms 1.94 / 1.95 ms existing E2E limits
50 Hz control loop p99 jitter 0.009 ms, 0 missed deadlines p99 jitter 0.002 ms, 0 missed deadlines existing E2E limits
GPU memory delta / peak RSS / startup 200 MiB / 648 MiB / 72 ms 200 MiB / 792 MiB / 79 ms existing E2E limits

In both runs:

  • The bundle header declares image_state_to_action_chunk, and the TensorRT 11.4 bundle records tensorrt_version 11.4.0.106.
  • The C SDK (UInt8 image) and C++ SDK (Float32 image) actions equal the CLI and qualification-binary actions bit for bit.
  • Each consumer ran 102 queue steps.
  • The TensorRT 11.4 and 11.1 actions differ by at most 3.7e-7.

Shared applications. Run on the E2E bundle:

build/trtmc_example_recorded_control <bundle> \
  --image families/lerobot_act/tests/data/recorded_observation/observation.images.top.png \
  --state families/lerobot_act/tests/data/recorded_observation/observation.state.f32 --control-hz 50
# exit 0, 100 actions, without --runtime-root; max |example - CLI| 5.0e-6 at the example's printed precision

python3 -m trtmc_benchmark run --manifest-root families --model act-aloha-sim-transfer-cube \
  --bundle act-aloha-sim-transfer-cube=<bundle> --no-build --runtime-root build \
  --worker build/trtmc_benchmark_worker --warmup 2 --iterations 10
# completed; selected_task image_state_to_action_chunk; p50 2.84 ms (TensorRT 11.4), 2.82 ms (11.1)

AIPerf configuration. CPU only:

  • The ACT catalog entry resolves image_state_to_action_chunk to the action_parity defaults.
  • python -m pytest apps/aiperf_qual/tests --ignore apps/aiperf_qual/tests/test_accuracy_alignment.py gives 433 passed and 19 failed. That file is skipped because it needs the aiperf package, which the image lacks.
  • All 19 failures also occur on the base revision, which has 20, so the branch adds no failure.

Hardware, Environment, and Revisions

  • Head: this PR's commit. Every run above used a tree identical to it, on base 7680cbd7f.
  • GPU: NVIDIA RTX PRO 6000 Blackwell Max-Q (SM 12.0) in an aarch64 GB300 system, driver 595.58.03 (CUDA 13.2). The GPU was idle and reserved for each run.
  • TensorRT 11.4: a container built from this repository's Dockerfile, the image CI builds: CUDA 13.4.3, TensorRT 11.4.0.106, torch 2.12.0+cu130, transformers 5.2.0.
  • TensorRT 11.1: an earlier build of the same Dockerfile: CUDA 13.3, TensorRT 11.1.0.106, torch 2.12.0+cu130. It predates the ICU build dependency, so ICU 74 was supplied with -DICU_ROOT.
  • CUDA compatibility: both images require a newer CUDA than the driver provides, so the GPU runs used NVIDIA_DISABLE_REQUIRE=1 and CUDA minor-version compatibility.
  • Checkpoint: lerobot/act_aloha_sim_transfer_cube_human @ ba73b2766f1371cdc133ca4efb97eb090d744625, FP32, batch 1.
  • Reference: huggingface/lerobot @ 3c0a209f9fac4d2a57617e686a7f2a2309144ba2, the pinned tests/reference-source.json, run in PyTorch on the same GPU.

Not Run / Remaining Gaps

  • There was no GB300 (SM 10.3) GPU run, because none was free during this work. Internal premerge runs this family's E2E on GB300.
  • The driver is older than either image's CUDA, so neither GPU run reproduces the CI environment exactly.
  • The AIPerf Acc/Perf qualification itself was not run, only its configuration resolution and unit tests.
  • The checked-in example qualification record (qualification/gb300-trt11.1-fp32.json) was not regenerated. The README says that it predates the migration.

Contributor Self-Review

  • I have completed a self-review of this change.

Notes For Future Readers

  • Suggested review order:
    1. the Task mapping above;
    2. runtime/pipeline.h/.cpp (bindings, the session queue, observation validation);
    3. plugin.cpp;
    4. the tests: test_task_contract.cpp, the SDK consumers, then test_e2e.py.
  • Existing ACT bundles that declare robot_control must be rebuilt, and the plugin's error says so.
  • After this PR no family declares robot_control. To keep this migration family-scoped, its remaining shared callers are left to the epic's retirement step:
    • IRobotControl in core/runtime/include/trtmc/task.h;
    • the robot_control branch in examples/models/lerobot_act/recorded_control/main.cpp;
    • the benchmark's robot_control adapter;
    • the website inventory label;
    • the AIPerf robot_control defaults, which this PR aliases.

Risk level

  • Low
  • Medium
  • High

The change stays inside families/lerobot_act/, apart from one README paragraph and a one-line configuration alias. The engine graph and numerics are unchanged:

  • parity against the reference is at the same level as before;
  • the CLI, SDK and qualification outputs agree bit for bit on two TensorRT versions.

Old bundles fail closed with a rebuild message instead of loading.

LeRobot ACT implemented the retired robot_control interface. It now
implements the semantic Task SDK: bundles declare
image_state_to_action_chunk, which predicts one action chunk, and the
runtime also binds image_state_action_queue, whose sessions replace the
retired act() and reset() queue. Images may be Float32 in [0, 1] or
UInt8 in [0, 255]. The engine graph, preprocessing and postprocessing
are unchanged.

Bundles that declare robot_control are refused with a rebuild hint. The
family E2E adds public C and C++ SDK consumers whose actions must equal
the CLI and qualification actions exactly, and the qualification binary
now uses the public C++ SDK. Thresholds are unchanged.

Outside the family, the recorded-control example README drops its
pending-migration note, and the AIPerf Task defaults map
image_state_to_action_chunk to the robot_control defaults so ACT
qualification keeps resolving.

Closes NVIDIA#1470

Signed-off-by: chaofengw <[email protected]>
@chaofengw-nv chaofengw-nv self-assigned this Nov 2, 2026
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 7680cbd and f80b680.

Files selected for processing: 17
  • apps/aiperf_qual/config/tasks.yaml
  • examples/models/lerobot_act/recorded_control/README.md
  • families/lerobot_act/model.py
  • families/lerobot_act/runtime/CMakeLists.txt
  • families/lerobot_act/runtime/pipeline.cpp
  • families/lerobot_act/runtime/pipeline.h
  • families/lerobot_act/runtime/plugin.cpp
  • families/lerobot_act/support.py
  • families/lerobot_act/tests/cpp/qualification.cpp
  • families/lerobot_act/tests/cpp/test_pipeline.cpp
  • families/lerobot_act/tests/cpp/test_task_contract.cpp
  • families/lerobot_act/tests/manifests/act-aloha-sim-transfer-cube.json
  • families/lerobot_act/tests/sdk_consumer.c
  • families/lerobot_act/tests/sdk_consumer.cpp
  • families/lerobot_act/tests/test_e2e.py
  • families/lerobot_act/tests/test_model.py
  • families/lerobot_act/tests/test_support.py
Files with no reviewable changes: 1
  • families/lerobot_act/tests/cpp/test_pipeline.cpp

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

Summary

Summary

This change migrates lerobot_act from robot_control to image_state_to_action_chunk as its supported and default Task. The runtime also exposes image_state_action_queue for per-step playback, refill, and reset. Chunk prediction and the existing engine graph and preprocessing/postprocessing remain unchanged.

The family rejects bundles that declare the old robot_control Task and directs users to rebuild them. The recorded-control README documents the new Task and the rebuild requirement.

The change adds CPU Task-contract tests and public C and C++ SDK consumers. The reported E2E retains the PyTorch oracle and thresholds. The author reports bit-for-bit agreement for C and C++ SDK, CLI, and qualification actions on TensorRT 11.4 and 11.1, and reports that the recorded-control example and benchmark ran with the rebuilt bundle.

Reported validation gaps include no GB300 run, GPU drivers older than the CUDA versions in the test images, no AIPerf Acc/Perf qualification, and no regenerated checked-in example qualification record. AIPerf unit tests had 19 failures reported on both this branch and the base revision; one test file was skipped because aiperf was not installed.

Architecture impact

  • Family-owned changes: Runtime Task bindings and action queue, build and support declarations, manifest, runtime plugin, contract and SDK tests, E2E tests, and qualification consumer.
  • Shared surface: apps/aiperf_qual/config/tasks.yaml changes shared Task qualification configuration. The supplied change summary says robot_control defines the shared control configuration and image_state_to_action_chunk aliases it.
  • Dependency direction: The family’s qualification executable and new C/C++ SDK consumers depend on the public trtmc_c SDK. The family runtime implements semantic Task interfaces. No new cross-family dependency is identified in the supplied change summary.
  • Affected consumers: Existing robot_control LeRobot ACT bundles must be rebuilt. The recorded-control example now uses the chunk Task. Benchmark infrastructure still contains a robot_control adapter, and the recorded-control example’s source and checker still reference robot_control; whether those references are intentional compatibility paths or stale consumers is unresolved.
  • Unresolved blast radius: The supplied evidence does not establish the impact of the shared qualification-config change on other control Task users. It also does not resolve the remaining example and benchmark references, or provide current-head CI results and qualification-record regeneration.

HUMAN REVIEW REQUIRED — REVIEW.md requires this outcome when material ownership, compatibility, measurement, or blast-radius questions remain unresolved. This is not a claim that an implementation violation was found.

LeRobot ACT now uses image_state_to_action_chunk instead of robot_control. Its runtime implements chunk inference and queued action sessions, and the tests and SDK consumers validate those interfaces.

Changes: LeRobot ACT task migration

Layer / File(s) Summary
Task declaration and bundle acceptance
apps/aiperf_qual/config/tasks.yaml, families/lerobot_act/model.py, families/lerobot_act/support.py, families/lerobot_act/runtime/plugin.cpp, families/lerobot_act/tests/manifests/*, families/lerobot_act/tests/test_model.py, families/lerobot_act/tests/test_support.py, examples/models/lerobot_act/recorded_control/README.md
Support, build validation, and the manifest use image_state_to_action_chunk. The plugin rejects bundles with another declared task. The README describes the SDK path and states that older robot_control bundles must be rebuilt.
Chunk inference and action queue
families/lerobot_act/runtime/pipeline.h, families/lerobot_act/runtime/pipeline.cpp, families/lerobot_act/runtime/CMakeLists.txt, families/lerobot_act/tests/cpp/test_pipeline.cpp, families/lerobot_act/tests/cpp/test_task_contract.cpp
Pipeline implements image-state chunk inference and queued action sessions. It validates image and state inputs, supports Float32 and UInt8 images, and returns action chunks with schema and training-bound status. The task-contract tests cover queue behavior, resets, configuration rejection, and invalid inputs.
SDK consumers and qualification
families/lerobot_act/runtime/CMakeLists.txt, families/lerobot_act/tests/sdk_consumer.c, families/lerobot_act/tests/sdk_consumer.cpp, families/lerobot_act/tests/cpp/qualification.cpp
The C and C++ consumers exercise chunk inference and action queues. The qualification executable uses the typed task API and reads action values and dimensions from the returned matrix.
End-to-end SDK comparison
families/lerobot_act/tests/test_e2e.py
The E2E test runs both SDK consumers and compares their action arrays and training-bound results with native CLI output. It also checks task, image format, action shape, schema, and queue replay count.

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Refactor

Sequence Diagram(s)

sequenceDiagram
  participant SDKConsumer
  participant ImageStateToActionChunk
  participant Pipeline
  participant ACTModule
  SDKConsumer->>ImageStateToActionChunk: submit image and state request
  ImageStateToActionChunk->>Pipeline: run chunk request
  Pipeline->>ACTModule: infer from image and state tensors
  ACTModule-->>Pipeline: return action tensor
  Pipeline-->>ImageStateToActionChunk: return action chunk
  ImageStateToActionChunk-->>SDKConsumer: provide chunk result
Loading

Suggested reviewers: yifeif-nv

Merge Risk: Minimal · up to f80b6

No actionable issue remains from this review. The migration is mergeable after normal checks.

Pre-merge checks: Passed 8 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 19.05% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 8 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: migrating the lerobot_act family to the Task SDK.
Description check Passed The description is complete and follows the required template. It covers background, exit criteria, implementation, change categories, validation commands and results, environment, remaining gaps, sel…
Linked Issues check Passed Issue #1470 coding requirements are met. The family binds image_state_to_action_chunk as the primary Task and image_state_action_queue as the secondary Task. The implementation preserves chunk res…
Out of Scope Changes check Passed The changes remain connected to issue #1470. The README update documents the new Task path and the rebuild requirement for old bundles. The AIPerf configuration alias supplies the existing `action_par…
Family Ownership Boundary Passed No cross-family ownership violation is introduced. The changed implementation and validation code remains under families/lerobot_act/; its references are to shared Task SDK headers such as `trtmc/in…
Shared Semantic Neutrality Passed PASS. The only changed shared configuration adds image_state_to_action_chunk: *control in apps/aiperf_qual/config/tasks.yaml. It reuses the existing generic action_parity and parity_numeric po…
Benchmark Validation Integrity Passed The PR changes the LeRobot ACT qualification and E2E paths, but the compared measurements retain equivalent accounting. The qualification still performs the same load timing, two warmups, ten inferenc…
Shared Change Blast Radius Passed PASS. The PR changes the shared AIPerf Task catalog in apps/aiperf_qual/config/tasks.yaml, so the check applies. The need is model-agnostic: AIPerf documents Task settings as non-model-specific, and…
Full details: Description check

Explanation

The description is complete and follows the required template. It covers background, exit criteria, implementation, change categories, validation commands and results, environment, remaining gaps, self-review, compatibility notes, and risk.

Full details: Linked Issues check

Explanation

Issue #1470 coding requirements are met. The family binds image_state_to_action_chunk as the primary Task and image_state_action_queue as the secondary Task. The implementation preserves chunk results, queue replay and refill, reset, observation validation, schema, bounds, and inference timing. Support, build checks, and the manifest use the new primary Task. The CPU contract test and public C/C++ consumers cover configuration rejection, invalid inputs, lifecycle behavior, independent sessions, and result lifetime. The reported E2E keeps the existing oracle and thresholds. The reported CLI, example, benchmark, and qualification paths run on a rebuilt bundle. The plugin rejects old robot_control bundles with a rebuild message, and the PR records tested revisions, commands, results, and known gaps.

Full details: Out of Scope Changes check

Explanation

The changes remain connected to issue #1470. The README update documents the new Task path and the rebuild requirement for old bundles. The AIPerf configuration alias supplies the existing action_parity and performance defaults for the new Task name, which supports validation of the migrated ACT catalog entry. The runtime, support, manifest, tests, and example changes directly implement or verify the migration. No unrelated behavior change is demonstrated.

Full details: Family Ownership Boundary

Explanation

No cross-family ownership violation is introduced. The changed implementation and validation code remains under families/lerobot_act/; its references are to shared Task SDK headers such as trtmc/internal/action.h and trtmc/action.hpp, shared trtmc_c, and shared third_party/stb/stb_image.h. The new validation and reference paths are family-owned. The only changes outside the family are the example README and the model-agnostic AIPerf task catalog alias at apps/aiperf_qual/config/tasks.yaml:256,261; neither is another family, a family registry, switch, source list, or strategy map. The root CMake setup confirms family targets are discovered by directory convention and does not require a central source or target-list edit (CMakeLists.txt:306-320). No changed file imports or links implementation, fixtures, comparators, or reference artifacts owned by another model family.

Full details: Shared Semantic Neutrality

Explanation

PASS. The only changed shared configuration adds image_state_to_action_chunk: *control in apps/aiperf_qual/config/tasks.yaml. It reuses the existing generic action_parity and parity_numeric policy with count_rtol: 0.01; it adds no family name, tensor name, topology, threshold, probe, dataset, or runtime strategy. The semantic Task contract supplies the specialization for affected consumers. The README change is family-specific documentation and adds no shared behavior.

Full details: Benchmark Validation Integrity

Explanation

The PR changes the LeRobot ACT qualification and E2E paths, but the compared measurements retain equivalent accounting. The qualification still performs the same load timing, two warmups, ten inference samples, p50/p95 calculation, chunk throughput, 50 Hz replay, jitter, deadlines, memory, and startup checks. The new Task SDK path copies the same 100x14 chunk and validates it against the CLI output and reference output. The AIPerf configuration aliases image_state_to_action_chunk to the existing robot_control policy, so absolute action_parity and performance parity_numeric checks with count_rtol: 0.01 remain unchanged. The benchmark adapters already provide the semantic action-chunk route and preserve its control operation and request shape.

Full details: Shared Change Blast Radius

Explanation

PASS. The PR changes the shared AIPerf Task catalog in apps/aiperf_qual/config/tasks.yaml, so the check applies. The need is model-agnostic: AIPerf documents Task settings as non-model-specific, and models.resolve_model() requires every manifest Task to exist in this central catalog before it merges family overrides. The manifest now declares image_state_to_action_chunk, so a family-only change could not register that Task for AIPerf. The PR description identifies the semantic Task migration, affected CLI/example/benchmark and SDK paths, preserved chunk/queue/reset behavior, rebuild impact for old bundles, and CPU, SDK, qualification, and recorded-checkpoint validation. The shared config aliases the new Task to the existing parity and performance policy while retaining robot_control, which limits compatibility impact. Repository evidence also shows the plugin rejects old bundles with a rebuild message and the README documents that migration.

Full details: Docstring Coverage

Explanation

Docstring coverage is 19.05% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 42 functions across 12 files. (4 skipped: 4 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

@chaofengw-nv chaofengw-nv added the run-internal-ci Maintainer-approved dispatch to internal CI label Nov 2, 2026
@github-actions github-actions Bot removed the run-internal-ci Maintainer-approved dispatch to internal CI label Nov 2, 2026
@chaofengw-nv
chaofengw-nv merged commit 35bc35a into NVIDIA:main Nov 3, 2026
35 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate lerobot_act to the semantic Task SDK

1 participant