webui.bat(userじゃない方)に
set PYTORCH_CUDA_ALLOC_CONF=garbage_collection_threshold:0.6, max_split_size_mb:128
これを追加するとメモリ断片化から来るOOMを軽減するらしい