You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Code:
config = CompilationConfig.Default()
if config.memory_format is not None:
self.unet = self.unet.to(memory_format=config.memory_format)
self.unet = torch.compile(self.unet, backend=functools.partial(
sfast_jit_trace,
ts_compiler=_build_ts_compiler(config)))
The text was updated successfully, but these errors were encountered:
I tried aingdiffusion_v12 follows the code,but it didn't work (The time cost is the same comparing to not compile it).
model_path: models/stable_diffusion/aingdiffusion_v12.safetensors, model_name_: sd_unet
The Code:
config = CompilationConfig.Default()
if config.memory_format is not None:
self.unet = self.unet.to(memory_format=config.memory_format)
self.unet = torch.compile(self.unet, backend=functools.partial(
sfast_jit_trace,
ts_compiler=_build_ts_compiler(config)))
The text was updated successfully, but these errors were encountered: