From 5a759687a245cea5fa1fa9fd34868810df0fcb8f Mon Sep 17 00:00:00 2001 From: EyeDeck Date: Sun, 18 Sep 2022 17:10:32 -0400 Subject: Move memmon tooltip to hints.js Move memmon tooltip to hints.js so it's with the other tooltips, and doesn't have to be re-sent from the server every time. Also, allowed tooltips to be applied by matching a class name if all else fails. --- modules/ui.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/ui.py b/modules/ui.py index 0303e057..3a0c6ffb 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -151,11 +151,8 @@ def wrap_gradio_call(func): sys_peak = mem_stats['system_peak'] sys_total = mem_stats['total'] sys_pct = round(sys_peak/max(sys_total, 1) * 100, 2) - vram_tooltip = "Torch active: Peak amount of VRAM used by Torch during generation, excluding cached data. " \ - "Torch reserved: Peak amount of VRAM allocated by Torch, including all active and cached data. " \ - "Sys VRAM: Peak amount of VRAM allocation across all applications / total GPU VRAM (peak utilization%)." - vram_html = f"

Torch active/reserved: {active_peak}/{reserved_peak} MiB, Sys VRAM: {sys_peak}/{sys_total} MiB ({sys_pct}%)

" + vram_html = f"

Torch active/reserved: {active_peak}/{reserved_peak} MiB, Sys VRAM: {sys_peak}/{sys_total} MiB ({sys_pct}%)

" else: vram_html = '' -- cgit v1.2.3