Skip to content

Conversation

@Cyrilvallez
Copy link
Member

What does this PR do?

As per the title. This was a small overlook in modular logic, as imports inside functions should not be tracked (they should stay defined in the function).
Fixes #36208

Also updates the examples based on latest repo changes.

cc @ArthurZucker

@HuggingFaceDocBuilderDev

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.

@Cyrilvallez Cyrilvallez merged commit bc65f3f into main Feb 25, 2025
11 checks passed
@Cyrilvallez Cyrilvallez deleted the fix-modular branch February 25, 2025 09:29
@daniel-bogdoll daniel-bogdoll mentioned this pull request Feb 26, 2025
7 tasks
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

Successfully merging this pull request may close these issues.

modular_model_converter cannot handle local imports with return

4 participants