Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

make basic layers an enum and work with subtyping - #8

Merged
limiteinductive merged 1 commit into
mainfrom
pr/make-basic-layers-work-with-subtyping
Aug 17, 2023
Merged

limiteinductive merged 1 commit into
mainfrom
pr/make-basic-layers-work-with-subtyping

Conversation

@limiteinductive

@limiteinductive limiteinductive commented Aug 17, 2023 •

Copy link
Copy Markdown
Contributor

Fixes this issue

With this commit, diffusers 19.x introduces subtyping of basic layers (e.g. LoRALinearLayer).

-> We solve this by storing basic layers as a type[Module] enum, and checking for type instead of __class__.__name__

Current conversion tool should work as is.

deltheil
deltheil previously approved these changes Aug 17, 2023
@limiteinductive
limiteinductive merged commit 17dc754 into main Aug 17, 2023
@limiteinductive
limiteinductive deleted the pr/make-basic-layers-work-with-subtyping branch August 17, 2023 13:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants