Skip to content

Add VLASH async runner - #138

Merged
LiangSu8899 merged 4 commits into
flashrt-project:mainfrom
diantoudedianshan:feat/vlash
Jul 7, 2026
Merged

LiangSu8899 merged 4 commits into
flashrt-project:mainfrom
diantoudedianshan:feat/vlash

Conversation

@diantoudedianshan

Copy link
Copy Markdown
Contributor

Summary

Add VLASh as an independent host-side runtime for action-chunk policies.

VLASh predicts the next chunk asynchronously while the foreground consumes the current chunk. Before launching the background prediction, it projects the measured robot state forward using the next lookahead_steps delta actions from the active chunk, injects that projected state into the observation, and starts the next trajectory from action index zero when ready.

This PR includes:

  • AsyncVLAShRunner and VLAShConfig
  • projected-state scheduling and deadline handling
  • optional additive action quantization
  • Pi0.5 vlash stage-plan registration
  • Pi0.5 subgraph enable helper
  • user-facing VLASh docs and stable API docs
  • CPU mechanism tests and a real Pi0.5 checkpoint gate

Validation

  • PYTHONPATH=. python -m pytest tests/test_vlash.py -q

    • 11 passed in 0.19s
  • python -m py_compile flash_rt/runtime/vlash.py flash_rt/subgraphs/pi05/vlash.py tests/test_vlash.py tests/test_vlash_pi05.py

    • passed
  • Real Pi0.5 checkpoint gate on RTX 4090 / SM89, CUDA 12.4:

    • PYTHONPATH=$PWD python -m pytest tests/test_vlash_pi05.py -q -s
    • 1 passed, 2 warnings in 22.57s
  • Pi0.5 RTX SM89 quickstart, CUDA 12.4:

    • PYTHONPATH=$PWD python examples/quickstart.py --checkpoint "$PI05_CKPT" --config pi05 --framework torch --hardware rtx_sm89 --num_views 2 --benchmark 20 --warmup 20
    • actions: shape=(10, 7)
    • sanity: PASS
    • reuse prompt: shape=(10, 7) OK
    • P50: 41.0 ms (24 Hz)
    • min: 38.4, mean: 41.8, max: 45.8 ms

@LiangSu8899

Copy link
Copy Markdown
Member

Thanks! my thinking here is similar to #137, so I updated #138 in the same direction: close() waits by default, failed worker futures are cleaned up, observations are snapshotted before async submission, and the related async tests are passing. What do you think of this change?

@diantoudedianshan

Copy link
Copy Markdown
Contributor Author

Thanks, this makes sense to me. The wait-by-default close behavior and clearing failed worker futures address the lifecycle issue cleanly, and snapshotting before async submission is a good addition for mutable observations. I’m good with this change.

@LiangSu8899

Copy link
Copy Markdown
Member

cool!

# Conflicts:
#	docs/stable_api.md
#	flash_rt/runtime/__init__.py
@LiangSu8899
LiangSu8899 merged commit 71d463d into flashrt-project:main Jul 7, 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.

2 participants