From 5612bc2ccd3173e855b719a85207c65b693c511f Mon Sep 17 00:00:00 2001 From: maybleMyers Date: Sat, 30 Aug 2025 04:39:48 -0700 Subject: [PATCH] remove debug --- backend/memory_management.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/memory_management.py b/backend/memory_management.py index b5cc7837..29e2389b 100644 --- a/backend/memory_management.py +++ b/backend/memory_management.py @@ -424,7 +424,10 @@ def build_module_profile(model, model_gpu_memory_when_using_cpu_swap): is_chromadct = True if is_chromadct: - print("Detected ChromaDCT model - using optimized module profiling...") + # Only print message once per session + if not hasattr(build_module_profile, '_chromadct_profiling_message_shown'): + print("Detected ChromaDCT model - using optimized module profiling...") + build_module_profile._chromadct_profiling_message_shown = True return build_chromadct_module_profile(model, all_modules, legacy_modules, model_gpu_memory_when_using_cpu_swap) except Exception as e: print(f"ChromaDCT detection failed: {e}")