Skip to content

Fix GROOT N1.7 calibration public API signature - #101

Merged
LiangSu8899 merged 1 commit into
flashrt-project:mainfrom
heiheiha798:fix/groot-n17-calibrate-public-api
Jun 21, 2026
Merged

LiangSu8899 merged 1 commit into
flashrt-project:mainfrom
heiheiha798:fix/groot-n17-calibrate-public-api

Conversation

@heiheiha798

Copy link
Copy Markdown
Contributor

Summary

  • align GrootN17TorchFrontendThor.calibrate() with the public VLAModel.calibrate(..., max_samples=...) keyword set
  • apply max_samples before GROOT N1.7 calibration sample counting, matching the other calibration frontends
  • document VLAModel.calibrate(...) in docs/stable_api.md and refresh the public wrapper docstring
  • refresh the shared implicit_calibrate() message so it describes the shim as single-sample only instead of saying Thor multi-sample support is future work
  • add CPU-only calibration API contract tests

Validation

python -m py_compile \
  flash_rt/core/calibration_api.py \
  flash_rt/api.py \
  flash_rt/frontends/torch/groot_n17_thor.py \
  tests/test_calibration_api.py

/data/home/tianjianyang/miniconda3/envs/flashrt/bin/python -m pytest \
  tests/test_calibration_api.py \
  tests/test_calibration_helpers.py \
  -q

git diff --check

Result:

py_compile passed
22 passed in 1.59s
git diff --check passed

Notes

  • No kernel bindings, CMake files, CUDA sources, or build flags changed.
  • No calibration numerics, graph capture, precision path, or latency-sensitive runtime behavior changed.
  • Hardware GROOT N1.7 calibration was not rerun; this PR covers CPU-level public API routing and signature compatibility.

Align GrootN17TorchFrontendThor.calibrate with the public VLAModel.calibrate keyword set by accepting max_samples and applying it before sample counting. Refresh the implicit_calibrate shim wording now that native Thor multi-sample paths exist, and document VLAModel.calibrate in the stable API.

Add CPU-only calibration API contract tests for max_samples forwarding, GROOT N1.7 signature compatibility, and the single-sample shim error contract. Validation: py_compile targeted modules; pytest tests/test_calibration_api.py tests/test_calibration_helpers.py -q; git diff --check.
Copilot AI review requested due to automatic review settings June 21, 2026 16:10
@heiheiha798
heiheiha798 requested a review from LiangSu8899 as a code owner June 21, 2026 16:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@LiangSu8899
LiangSu8899 merged commit a5420c0 into flashrt-project:main Jun 21, 2026
@heiheiha798
heiheiha798 deleted the fix/groot-n17-calibrate-public-api branch June 21, 2026 16:34
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.

3 participants