Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is stable fast support aingdiffusion_v12 ? #163

Open
youthbupt opened this issue Oct 3, 2024 · 0 comments
Open

Is stable fast support aingdiffusion_v12 ? #163

youthbupt opened this issue Oct 3, 2024 · 0 comments

Comments

@youthbupt
Copy link

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)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant