Add disk cache slider

This commit is contained in:
Gnome Ann
2022-06-19 22:53:30 -04:00
parent efed44ac8d
commit 47a58a36b8
4 changed files with 63 additions and 18 deletions

View File

@ -230,7 +230,8 @@ logger = logging.get_logger(__name__)
breakmodel = True
gpu_blocks = []
primary_device = 0
disk_blocks = 0
primary_device = 0 if torch.cuda.device_count() > 0 else "cpu"
# Copied from transformers.models.bart.modeling_bart._expand_mask