From 809444eb5c61c32ce8718df07bddd6e3e3b561f9 Mon Sep 17 00:00:00 2001 From: xedis Date: Wed, 3 Jul 2024 23:11:08 -0700 Subject: [PATCH] fix typo --- modules/devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/devices.py b/modules/devices.py index 056e3a7a8..e703a0b50 100644 --- a/modules/devices.py +++ b/modules/devices.py @@ -166,7 +166,7 @@ def torch_gc(force=False): after = { 'gpu': mem.get('gpu', {}).get('used', 0), 'ram': mem.get('ram', {}).get('used', 0), 'retries': mem.get('retries', 0), 'oom': mem.get('oom', 0) } utilization = { 'gpu': used_gpu, 'ram': used_ram, 'threshold': threshold } results = { 'collected': collected, 'saved': saved } - log.debug(f'GC: utilization={utilization} gc={results} beofre={before} after={after} device={torch.device(get_optimal_device_name())} fn={sys._getframe(1).f_code.co_name} time={round(t1 - t0, 2)}') # pylint: disable=protected-access + log.debug(f'GC: utilization={utilization} gc={results} before={before} after={after} device={torch.device(get_optimal_device_name())} fn={sys._getframe(1).f_code.co_name} time={round(t1 - t0, 2)}') # pylint: disable=protected-access def set_cuda_sync_mode(mode):