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

catch Error if model_type is redefeined in model config #441

Open
redspottedbittern opened this issue Jan 6, 2025 · 1 comment
Open

Comments

@redspottedbittern
Copy link

redspottedbittern commented Jan 6, 2025

If either the key model_type or taskmodule_type (see here) are used as a parameter in the constructor of a model or taskmodule, respectively, it is not possible to instantiate the respective objects via .from_pretrained and this error message is displayed (dummy is the value of the redefined model_type):

Error in call to target 'pytorch_ie.auto.AutoPipeline.from_pretrained':
RegistrationError('dummy is not a registered name for PyTorchIEModel.')
@ArneBinder ArneBinder changed the title catch Error if model_type is redefeined in experiment config catch Error if model_type is redefeined in model config Jan 6, 2025
@ArneBinder
Copy link
Owner

Thanks for reporting! We should either prohibit overwriting these config entries or at least show a better error message.

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

2 participants