[SOT] Add sot warmup (NVIDIA GPU Only) (#2929)
Some checks failed
Deploy GitHub Pages / deploy (push) Has been cancelled

* add sot warmup

* fix code style

* change batch_size list

* add param to config

* rm free_list settings && set sot_warmup_sizes

* finish debug with dynamic dims by type annotations

* add profile_run guard

* rm sth useless
This commit is contained in:
Ryan
2025-07-22 21:36:14 +08:00
committed by GitHub
parent 7c5e34e72d
commit 95b5af24db
7 changed files with 71 additions and 18 deletions

View File

@@ -189,6 +189,8 @@ class GpuWorker(WorkerBase):
"""
Perform the warm-up and the graph optimization
"""
if self.model_runner.graph_opt_level >= 1:
self.model_runner.sot_warmup()
# Triger cuda grpah capture
self.model_runner.capture_model()