Add model index config for transformer to make format uniform

#11
by a-r-r-o-w HF Staff - opened
No description provided.

Hi @cai-qi ! I'm Aryan from the diffusers team. Thanks for releasing such a powerful model to the open source community!

This PR is to add a config mapping to allow certain diffusers utilities and custom functionality to fetch the class from the model_index.json file.

For example, I'm trying to add training support in finetrainers (https://github.com/a-r-r-o-w/finetrainers) with this PR. It requires resolving the model class for configuration attributes here. The changes in this PR make that possible.

Similarly, there are other utilities and methods that may rely on such an attribute existing. LMK if this makes sense πŸ€—

HiDream.ai org

Hi @a-r-r-o-w , thanks for the PR! This looks helpful and makes sense. Merging this PR.

cai-qi changed pull request status to merged
HiDream.ai org

I have added this attribute for both Dev and Fast model.

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment