Commit 8d971060 authored by 王敏's avatar 王敏
Browse files

暂时去掉profilling标志位,避免影响其他模型

parent 7a97637e
......@@ -2224,8 +2224,8 @@ class GPUModelRunner(LoRAModelRunnerMixin):
def profile_run(self) -> None:
# set profiling flag to avoid torch compile
set_profilling(True)
self._sync_device()
#set_profilling(True)
#self._sync_device()
# Profile with multimodal encoder & encoder cache.
# TODO: handle encoder-decoder models once we support them.
......@@ -2310,7 +2310,7 @@ class GPUModelRunner(LoRAModelRunnerMixin):
del hidden_states, output
self.encoder_cache.clear()
gc.collect()
set_profilling(False)
#set_profilling(False)
def capture_model(self) -> None:
if not self.use_cuda_graph:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment