Skip to content

runtime(pi05): route Thor fp16 through Thor producer - #133

Merged
LiangSu8899 merged 1 commit into
mainfrom
fix/pi05-thor-precision-runtime
Jul 5, 2026
Merged

LiangSu8899 merged 1 commit into
mainfrom
fix/pi05-thor-precision-runtime

Conversation

@LiangSu8899

@LiangSu8899 LiangSu8899 commented Jul 5, 2026 •

Copy link
Copy Markdown
Member

Summary

Fix Pi0.5 Thor fp16 routing in load_model.

Thor Pi0.5 already supports the non-quantized fp16 path inside
Pi05TorchFrontendThor / Pi05ThorPipeline via use_fp8=False, but the
load_model(... use_fp16=True) support matrix did not include
("pi05", "torch", "thor"). As a result, callers such as Nexus serve could not
select precision=fp16 on Thor even though the producer path exists.

This change:

  • allows Pi0.5 Torch Thor in the use_fp16=True API support matrix
  • keeps fp16 Thor on the Thor producer instead of routing to the RTX fp16 frontend
  • updates Pi0.5 C++ runtime gates so they do not assume RTX-private frontend fields

Validation

On Thor:

  • gate_pi05_model_runtime_export.py fp16: pass
    • py vs full action: True
    • full vs split action: True
    • rtc prefix exact: True
    • model-runtime full p50: 83.013 ms
  • gate_pi05_c_api_export.py fp16: pass
    • robot action allclose: True
    • C++ hot tick p50: 82.665 ms
  • gate_pi05_model_runtime_export.py --fp8: pass
    • model-runtime full p50: 50.353 ms

@LiangSu8899
LiangSu8899 merged commit fed4828 into main Jul 5, 2026
hypertseng added a commit to hypertseng/FlashRT that referenced this pull request Jul 10, 2026
Include:
- Qwen3 prefill fast path optimization (flashrt-project#134)
- SM89 Qwen3-VL FP8 decode-path optimization (flashrt-project#139)
- VLASH async runner (flashrt-project#138)
- RTC temporal fusion runtime (flashrt-project#137)
- GRoot N17 latency stats and fixes (flashrt-project#132)
- Thor fp16 routing through Thor producer (flashrt-project#133)
- Qwen3-VL improvements and fixes

Co-Authored-By: Claude Fable 5 <[email protected]>
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.

1 participant