mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Add disk cache slider
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user