How luo-jingw/flashrt works
FlashRT is a realtime inference engine for small-batch, latency-sensitive AI, built around hand-composed model pipelines and specialized kernels. The main user-to-result pattern is a request entering a model or serving frontend, running model-specific inference, and yielding generated text, images, video, or robot actions. The repository also documents VLM, audio, and multiple hardware paths. Several of those implementations are not present in the supplied tree, so their documented capability nodes are shown without speculative internal call chains; sampled-source relationships are cited where available.
Main entry points: sm90_pipeline.hpp CUTLASS SM90 pipeline · mma_pipelined.h CUTLASS GEMM pipeline · sm100_pipeline.hpp SM100 GEMM pipeline · pipeline_thor.py ImageWAM policy
Components 30
Interfaces and serving
- C++ runtime API
cpp/runtime/include/flashrt/cpp/runtime.h - Qwen serving adapter
serving/qwen36_agent/qwen36_engine.py
Robot policies
- Pi0.5 RTX policy
flash_rt/models/pi05/pipeline_rtx.py - Pi0.5 AMD policy
flash_rt/amd/models/pi05/pipeline.py - GROOT policy
flash_rt/models/groot/pipeline_thor.py - GROOT N1.7 policy
flash_rt/models/groot_n17/pipeline_thor.py - Pi0-FAST policy
flash_rt/models/pi0fast/pipeline.py - ImageWAM policy
flash_rt/models/imagewam/pipeline_thor.py - ImageWAM quantization
flash_rt/models/imagewam/quant_linear.py
Generative models
- BAGEL image generation
flash_wm/src/bagel_fp8_engine.py - Motus video policy
flash_rt/models/motus/pipeline_rtx.py - Higgs Audio serving
serving/higgs_audio_agent/server.py - OmniVoice serving
serving/omnivoice_agent/server.py - Qwen3.6 inference
serving/qwen36_agent/qwen36_engine.py - Qwen3-VL inference
Runtime and kernels
- ImageWAM native pipeline
cpp/models/imagewam/src/native_pipeline.cpp - ImageWAM C API
cpp/models/imagewam/include/flashrt/cpp/models/imagewam/c_api.h - CUTLASS SM90 pipeline
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/pipeline/sm90_pipeline.hpp - CUTLASS GEMM pipeline
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/gemm/threadblock/mma_pipelined.h - SM100 GEMM pipeline
csrc/gemm/mega/cutlass/pipeline/sm100_pipeline.hpp - CUTLASS tensor layouts
csrc/attention/flash_attn_2_src/cutlass/include/cute/layout.hpp - CUTLASS barriers
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/arch/barrier.h - CUTLASS cluster ops
csrc/attention/flash_attn_2_src/cutlass/include/cute/arch/cluster_sm90.hpp - CUTLASS constants
csrc/attention/flash_attn_2_src/cutlass/include/cute/numeric/integral_constant.hpp - CUTLASS arrays
csrc/attention/flash_attn_2_src/cutlass/include/cute/container/array.hpp - CUTLASS core
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/cutlass.h - CUTLASS sync logging
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/arch/synclog.hpp - CUTLASS arrays
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/array.h - Numeric conversion
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/numeric_conversion.h
Other components
- Application
Connections 31
- Application → Qwen serving adapter: submits request
- Qwen serving adapter → Qwen3.6 inference: adapts requests
serving/qwen36_agent/qwen36_engine.py - Application → Pi0.5 RTX policy: requests action
- Application → Pi0.5 AMD policy: requests action
- Application → GROOT policy: requests action
- Application → GROOT N1.7 policy: requests action
- Application → Pi0-FAST policy: requests action
- Application → ImageWAM policy: requests action
- ImageWAM policy → ImageWAM quantization: uses quantization
flash_rt/models/imagewam/pipeline_thor.py - ImageWAM policy → ImageWAM native pipeline: native execution
- ImageWAM native pipeline → ImageWAM C API: implements interface
cpp/models/imagewam/src/native_pipeline.cpp - Application → BAGEL image generation: requests image
- Application → Motus video policy: requests video
- Application → Higgs Audio serving: requests audio
serving/higgs_audio_agent/server.py - Application → OmniVoice serving: requests audio
- Application → Qwen3-VL inference: submits image prompt
- Application → C++ runtime API: opens runtime
- CUTLASS SM90 pipeline → CUTLASS tensor layouts: uses layouts
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/pipeline/sm90_pipeline.hpp - CUTLASS SM90 pipeline → CUTLASS cluster ops: uses cluster ops
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/pipeline/sm90_pipeline.hpp - CUTLASS SM90 pipeline → CUTLASS arrays: uses arrays
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/pipeline/sm90_pipeline.hpp - CUTLASS SM90 pipeline → CUTLASS constants: uses constants
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/pipeline/sm90_pipeline.hpp - CUTLASS SM90 pipeline → CUTLASS barriers: uses barriers
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/pipeline/sm90_pipeline.hpp - CUTLASS SM90 pipeline → CUTLASS core: uses core
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/pipeline/sm90_pipeline.hpp - CUTLASS SM90 pipeline → CUTLASS sync logging: uses sync logging
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/pipeline/sm90_pipeline.hpp - CUTLASS GEMM pipeline → CUTLASS core: uses core
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/gemm/threadblock/mma_pipelined.h - CUTLASS GEMM pipeline → CUTLASS arrays: uses arrays
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/gemm/threadblock/mma_pipelined.h - CUTLASS GEMM pipeline → Numeric conversion: uses conversion
csrc/attention/flash_attn_2_src/cutlass/include/cutlass/gemm/threadblock/mma_pipelined.h - SM100 GEMM pipeline → CUTLASS constants: uses constants
csrc/gemm/mega/cutlass/pipeline/sm100_pipeline.hpp - SM100 GEMM pipeline → CUTLASS cluster ops: uses cluster ops
csrc/gemm/mega/cutlass/pipeline/sm100_pipeline.hpp - SM100 GEMM pipeline → CUTLASS barriers: uses barriers
csrc/gemm/mega/cutlass/pipeline/sm100_pipeline.hpp - Application → CUTLASS SM90 pipeline: runs kernels