Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
|
@@ -21,10 +21,10 @@ class EndpointHandler:
|
|
| 21 |
# quantize_(self.pipe.text_encoder, float8_weight_only())
|
| 22 |
# quantize_(self.pipe.transformer, float8_dynamic_activation_float8_weight())
|
| 23 |
self.pipe.transformer = torch.compile(
|
| 24 |
-
self.pipe.transformer, mode="
|
| 25 |
)
|
| 26 |
self.pipe.vae = torch.compile(
|
| 27 |
-
self.pipe.vae, mode="
|
| 28 |
)
|
| 29 |
|
| 30 |
def __call__(self, data: Dict[str, Any]) -> Image.Image:
|
|
|
|
| 21 |
# quantize_(self.pipe.text_encoder, float8_weight_only())
|
| 22 |
# quantize_(self.pipe.transformer, float8_dynamic_activation_float8_weight())
|
| 23 |
self.pipe.transformer = torch.compile(
|
| 24 |
+
self.pipe.transformer, mode="max-autotune-no-cudagraphs",
|
| 25 |
)
|
| 26 |
self.pipe.vae = torch.compile(
|
| 27 |
+
self.pipe.vae, mode="max-autotune-no-cudagraphs",
|
| 28 |
)
|
| 29 |
|
| 30 |
def __call__(self, data: Dict[str, Any]) -> Image.Image:
|