Skip to content

[gemma4] Fix device map auto#45347

Merged
Cyrilvallez merged 1 commit intomainfrom
gemma4-device-map-auto
Apr 9, 2026
Merged

[gemma4] Fix device map auto#45347
Cyrilvallez merged 1 commit intomainfrom
gemma4-device-map-auto

Conversation

@Cyrilvallez
Copy link
Copy Markdown
Member

@Cyrilvallez Cyrilvallez commented Apr 9, 2026

What does this PR do?

As per the title. accelerate destroys the dict otherwise, if it's not BOTH passed as kwarg AND part of _skip_keys_device_placement..........
per_layer_input needs to stay as a positional arg, for gradient checkpointing.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 9, 2026

[For maintainers] Suggested jobs to run (before merge)

run-slow: gemma4

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

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 6546bec into main Apr 9, 2026
21 of 23 checks passed
@Cyrilvallez Cyrilvallez deleted the gemma4-device-map-auto branch April 9, 2026 15:45
Cyrilvallez added a commit that referenced this pull request Apr 9, 2026
sirzechs66 pushed a commit to sirzechs66/transformers that referenced this pull request Apr 18, 2026
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.

2 participants