Spaces:
Runtime error
Runtime error
Download modules/lowvram.py from fluxdev/stable-diffusion-webui-forge: direct link, hf CLI and curl.
- Browser
- Download file 323 Bytes
-
https://huggingface.co/spaces/fluxdev/stable-diffusion-webui-forge/resolve/main/modules/lowvram.py
- Command line
-
hf download hf://spaces/fluxdev/stable-diffusion-webui-forge/modules/lowvram.py
-
curl -L -o lowvram.py https://huggingface.co/spaces/fluxdev/stable-diffusion-webui-forge/resolve/main/modules/lowvram.py
323 Bytes
| import torch | |
| from modules import devices, shared | |
| module_in_gpu = None | |
| cpu = torch.device("cpu") | |
| def send_everything_to_cpu(): | |
| return | |
| def is_needed(sd_model): | |
| return False | |
| def apply(sd_model): | |
| return | |
| def setup_for_low_vram(sd_model, use_medvram): | |
| return | |
| def is_enabled(sd_model): | |
| return False | |