Upload 2 files
Browse files- handler.py +2 -2
- requirements.txt +1 -1
handler.py
CHANGED
|
@@ -24,8 +24,8 @@ class EndpointHandler:
|
|
| 24 |
).to("cuda")
|
| 25 |
self.pipe.enable_vae_slicing()
|
| 26 |
self.pipe.enable_vae_tiling()
|
| 27 |
-
self.pipe.transformer.fuse_qkv_projections()
|
| 28 |
-
self.pipe.vae.fuse_qkv_projections()
|
| 29 |
self.pipe.transformer.to(memory_format=torch.channels_last)
|
| 30 |
self.pipe.vae.to(memory_format=torch.channels_last)
|
| 31 |
apply_cache_on_pipe(self.pipe, residual_diff_threshold=0.12)
|
|
|
|
| 24 |
).to("cuda")
|
| 25 |
self.pipe.enable_vae_slicing()
|
| 26 |
self.pipe.enable_vae_tiling()
|
| 27 |
+
#self.pipe.transformer.fuse_qkv_projections()
|
| 28 |
+
#self.pipe.vae.fuse_qkv_projections()
|
| 29 |
self.pipe.transformer.to(memory_format=torch.channels_last)
|
| 30 |
self.pipe.vae.to(memory_format=torch.channels_last)
|
| 31 |
apply_cache_on_pipe(self.pipe, residual_diff_threshold=0.12)
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
--extra-index-url https://download.pytorch.org/whl/cu126
|
| 2 |
-
torch==2.6.0
|
| 3 |
torchvision
|
| 4 |
torchaudio
|
| 5 |
huggingface_hub
|
|
|
|
| 1 |
--extra-index-url https://download.pytorch.org/whl/cu126
|
| 2 |
+
torch==2.6.0+cu126
|
| 3 |
torchvision
|
| 4 |
torchaudio
|
| 5 |
huggingface_hub
|