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

Allow searching for .pt2 archives #6689

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

Slickytail
Copy link
Contributor

Pytorch 2.6 introduces a new format for AOTInductor modules, which uses the extension .pt2.

I've had good results compiling comfyui models to AOTInductor modules and then loading them back in ComfyUI: you get the same performance improvements as torch.compile, but without the overhead of compiling at runtime. At the moment there's no standardization for the metadata contained in an AOTInductor archive, and all the config/tensor name information is stripped, so to actually detect what kind of model is being loaded is a question for the future. For now, we can make it easier to load AOTI archives in custom nodes by adding the format as a known pytorch extension.

@ltdrdata ltdrdata added the Good PR This PR looks good to go, it needs comfy's final review. label Feb 3, 2025
@comfyanonymous comfyanonymous merged commit 8d88bfa into comfyanonymous:master Feb 3, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good PR This PR looks good to go, it needs comfy's final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants