-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Flax: ignore dtype for configuration #565
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
Conversation
This makes it possible to save models and configuration files.
|
The documentation is not available anymore as the PR was closed or merged. |
| config_name = CONFIG_NAME | ||
| _automatically_saved_args = ["_diffusers_version", "_class_name", "_name_or_path"] | ||
| _flax_internal_args = ["name", "parent"] | ||
| _flax_internal_args = ["name", "parent", "dtype"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you receive a warning while initializing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you receive a warning while initializing?
Not about dtype. In the case of the VAE, for example, I did the following tests:
- Loaded from the current configuration in
fusing. Then I got this warning:
The config attributes {'architectures': ['encoderKL'], 'double_z': True, 'transformers_version': '4.21.0.dev0'} were passed to FlaxAutoencoderKL, but are not expected and will be ignored. Please verify your config.json configuration file.
- Saved the configuration.
- Saved the pretrained weights.
- Loaded from the saved pretrained weights. No warning was emitted here.
patil-suraj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
Ok removing for now. Overall I was actually in favor of keeping it in because if someone trains a model with
@pcuenca could you maybe open a "Feature request" issue after merging this that reminds us to eventually save this param? |
Flax: ignore dtype for configuration. This makes it possible to save models and configuration files.
This makes it possible to save weights and configuration files.