-
Notifications
You must be signed in to change notification settings - Fork 30.7k
Fix dotted model names #40745
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
Fix dotted model names #40745
Conversation
Hi @August-murr, can you add a test that breaks on older versions, that we can use to verify that this works and is fixing the problem? |
@Rocketknight1 Also, Copilot suggested adding |
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.
Looks good now! I'm going to compact the docstring, just so it isn't 10X longer than the function itself, and also copy the repo to hf-internal-testing
, because it's quite risky to have a remote_code
test that's owned by an external user.
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
[For maintainers] Suggested jobs to run (before merge) run-slow: auto |
* Fix module loading for models with dots in names * quality check * added test * wrong import * Trigger CI rerun after making test model public * Update src/transformers/dynamic_module_utils.py * Update tests/utils/test_dynamic_module_utils.py * Update tests/utils/test_dynamic_module_utils.py * Move test * make fixup --------- Co-authored-by: Matt <[email protected]> Co-authored-by: Matt <[email protected]>
* Fix module loading for models with dots in names * quality check * added test * wrong import * Trigger CI rerun after making test model public * Update src/transformers/dynamic_module_utils.py * Update tests/utils/test_dynamic_module_utils.py * Update tests/utils/test_dynamic_module_utils.py * Move test * make fixup --------- Co-authored-by: Matt <[email protected]> Co-authored-by: Matt <[email protected]>
What does this PR do?
Fixes #40496
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
@Rocketknight1