refactor: abstract graph mode support into platform interface (#25161)

Signed-off-by: Yizhou Liu <liu_yizhou@outlook.com>
This commit is contained in:
Yizhou
2025-09-22 10:22:29 +00:00
committed by GitHub
parent 4cf71cc88a
commit b6f01bd9a7
5 changed files with 23 additions and 7 deletions
+4
View File
@@ -498,6 +498,10 @@ class CudaPlatformBase(Platform):
def support_hybrid_kv_cache(cls) -> bool:
return True
@classmethod
def support_static_graph_mode(cls) -> bool:
return True
# NVML utils
# Note that NVML is not affected by `CUDA_VISIBLE_DEVICES`,