Repository navigation
Add validated RTX SM89 support for GROOT N1.7 routing - #96
LiangSu8899 merged 2 commits into
Conversation
|
Thanks for doing this and documenting this limitation! I think the I just reproduced a very similar case on our SM120 path:
Also, in the same native environment where For the SM89 fused-epilogue failure in this PR, I would suggest checking and recording the exact cuBLASLt runtime version, not just the CUDA toolkit version: import ctypes, ctypes.util
lib = ctypes.CDLL(ctypes.util.find_library("cublasLt"))
lib.cublasLtGetVersion.restype = ctypes.c_size_t
print("cublasLt version:", lib.cublasLtGetVersion())If the current RTX 4090 stack is CUDA 12.4 / PyTorch 2.6 / an older cuBLASLt, it is worth retrying the same minimal fused-epilogue descriptor on a newer NGC/PyTorch container, ideally the 25.10-family stack or anything with newer cuBLASLt. Based on the SM120 result above, there is a good chance the code=15 is resolved by the cuBLASLt update rather than by changing FlashRT code. Useful references: |
|
Thanks, that makes sense. I checked the local RTX 4090 validation stack and the cuBLASLt runtime is:
I agree the For this PR I will keep the known-good SM89 path ( |
Summary
groot_n17RTX SM89 registrationuse_fp16=True, use_fp8=Falseload_model()routing, public docs, and focused tests with the actual RTX SM120/SM89 behaviorWhat changed
Runtime:
flash_rt/frontends/torch/groot_n17_rtx_sm89.pyflash_rt/frontends/torch/groot_n17_rtx_sm89_fp16.pyflash_rt/models/groot_n17/pipeline_rtx_sm89.pyRouting:
flash_rt/api.pyflash_rt/hardware/__init__.pyDocs:
README.mdUSAGE.mddocs/stable_api.mdFocused tests:
tests/test_load_model_use_fp8_kwarg.pyBehavior / routing contract
On RTX,
load_model(config="groot_n17", framework="torch", hardware=...)now behaves as follows:hardware="rtx_sm120"_PIPELINE_MAPload_model()refines the default route to the explicit FP8 production frontendhardware="rtx_sm89"use_fp16=True, use_fp8=FalseFor
groot_n17on RTX/Thor, bareuse_fp8=Falseis rejected. There is no separate BF16-only fallback; the non-quantized reference path isuse_fp16=True, use_fp8=False.Validation environment
NVIDIA GeForce RTX 4090(sm89)550.54.1412.4(nvcc 12.4.99)/data/home/tianjianyang/miniconda3/envs/flashrt2.6.0+cu1240.21.0+cu1244.57.3FA2_ARCH_NATIVE_ONLY=ONFA2_DTYPES=fp16;bf16FA2_HDIMS=96;128;256/data/pretrained_models/GR00T-N1.7-3B/data/home/tianjianyang/models/vla/gr00t_n17/fixtures/gr00t_n17_ref_oxe_droid_relative_eef_relative_joint_2v_traj1_step0_seed0.pt/data/home/tianjianyang/models/vla/gr00t_n17/fixtures/gr00t_n17_ref_oxe_droid_relative_eef_relative_joint_2v_traj1_step0_seed0_llm_aux.ptPYTHONPATH=/data/home/tianjianyang/code/Isaac-GR00TGROOT_HF_LOCAL_FIRST=1GROOT_PATCH_MISTRAL=1PJRT_DEVICE=CUDAValidation commands
Focused API / routing coverage:
Result:
27 passed in 1.85sLocal runtime validation used during development:
Kernel binding / CMake applicability
csrc/bindings.cpp, pybind ownership, CMake target ownership, orGPU_ARCH-gated source listsCONTRIBUTING.mdcross-GPU_ARCHbuild/import validation requirement for binding/CMake changes is therefore not applicable to this PRPrecision results
GrootN17TorchFrontendRtxSm89)0.9999350.0364460.006404GrootN17TorchFrontendRtxSm89FP16)0.9999740.0274340.003748Note:
gripper_positionper-head cosine is noisy on this fixture because the reference norm is extremely small; the combined flattened cosine and absolute error are the more representative headline metricsLatency results
These are warm graph-replay
infer()measurements, not wall-clock quickstart numbers.GrootN17TorchFrontendRtxSm89)set_prompt:629.24 msinfer():p50 10.61 ms,mean 10.42 ms,p90 10.62 msGrootN17TorchFrontendRtxSm89FP16)set_prompt:132.09 msinfer():p50 13.83 ms,mean 13.99 ms,p90 14.34 msObserved warm-
infer()speedup on this machine:13.83 / 10.61 = 1.30xFP8 vs FP16Limitations / unverified areas
rtx_sm89on a local RTX 4090 fixture path only; it does not claim cross-SM89-card latency paritycuBLASLtFP8ntfused epilogues were not viable on this local SM89 + CUDA/cuBLASLt stack (cublasLtMatmulAlgoGetHeuristic(...), code=15)pipeline_rtx_fp16DiT compute path; this PR does not further split that shared FP16 pathgroot_n17onrtx_sm120still keeps the historical shared RTX registration and relies onload_model()to refine the default route to the explicit FP8 production frontend