Upload handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -18,7 +18,7 @@ def compile_pipeline(pipe) -> Any:
|
|
| 18 |
pipe.transformer.fuse_qkv_projections()
|
| 19 |
pipe.transformer.to(memory_format=torch.channels_last)
|
| 20 |
#pipe.transformer = torch.compile(pipe.transformer, mode="reduce-overhead", fullgraph=False, dynamic=False, backend="inductor")
|
| 21 |
-
pipe.transformer = torch.compile(pipe.transformer, mode="max-autotune", fullgraph=
|
| 22 |
return pipe
|
| 23 |
|
| 24 |
class EndpointHandler:
|
|
|
|
| 18 |
pipe.transformer.fuse_qkv_projections()
|
| 19 |
pipe.transformer.to(memory_format=torch.channels_last)
|
| 20 |
#pipe.transformer = torch.compile(pipe.transformer, mode="reduce-overhead", fullgraph=False, dynamic=False, backend="inductor")
|
| 21 |
+
pipe.transformer = torch.compile(pipe.transformer, mode="max-autotune", fullgraph=False, dynamic=False, backend="inductor")
|
| 22 |
return pipe
|
| 23 |
|
| 24 |
class EndpointHandler:
|