transformers
[Dinov2] Enable device_map="auto" support
#38487
Merged

[Dinov2] Enable device_map="auto" support #38487

aryanchauhan31
aryanchauhan31 Fix: resolve import order and duplicate import (ruff I001, F811)
669f5268
aryanchauhan31 Format: clean up Dinov2 test file with ruff formatter
2a0605e1
aryanchauhan31
Rocketknight1
aryanchauhan31 Add _no_split_modules = ['Dinov2Layer'] to enable device_map='auto'
2b67df12
aryanchauhan31 Revert dinov2_with_registers _no_split_modules to original state
3346f366
aryanchauhan31
Rocketknight1
SunMarc
SunMarc approved these changes on 2025-06-03
aryanchauhan31 Remove redundant device_map test as suggested
1dfb0588
aryanchauhan31 Remove unused import after deleting test
ef13720e
SunMarc
SunMarc commented on 2025-06-03
aryanchauhan31 removed import torch and the redundant test function
a98f7be5
SunMarc
SunMarc commented on 2025-06-04
SunMarc Update tests/models/dinov2/test_modeling_dinov2.py
a91ba874
SunMarc SunMarc enabled auto-merge (squash) 338 days ago
SunMarc SunMarc merged b9c17c5d into main 338 days ago
HuggingFaceDocBuilderDev

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone