This commit is contained in:
Jaret Burkett
2024-08-04 11:07:19 -06:00
parent f321de7bdb
commit 0ea27011d5
2 changed files with 10 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
echo "Docker builds from the repo, not this dir. Make sure changes are pushed to the repo."
# wait 2 seconds
sleep 2
docker build --build-arg CACHEBUST=$(date +%s) -t aitoolkit:latest -f docker/Dockerfile .
docker tag aitoolkit:latest ostris/aitoolkit:latest
docker push ostris/aitoolkit:latest

View File

@@ -468,8 +468,8 @@ class StableDiffusion:
transformer_path, transformer_path,
subfolder=subfolder, subfolder=subfolder,
torch_dtype=dtype, torch_dtype=dtype,
low_cpu_mem_usage=False, # low_cpu_mem_usage=False,
device_map=None # device_map=None
) )
transformer.to(self.device_torch, dtype=dtype) transformer.to(self.device_torch, dtype=dtype)
flush() flush()