transformers
fix(models): Fix dtype mismatch in SwitchTransformers and TimmWrapperModel
#45074
Merged

fix(models): Fix dtype mismatch in SwitchTransformers and TimmWrapperModel #45074

harshaljanjani
harshaljanjani fix: Cast inputs to match weight dtype
cd1a4c94
harshaljanjani new: Add test
e05bd6ad
harshaljanjani harshaljanjani marked this pull request as ready for review 5 days ago
github-actions github-actions requested a review from ArthurZucker ArthurZucker 5 days ago
github-actions github-actions requested a review from ydshieh ydshieh 5 days ago
harshaljanjani Merge branch 'main' into fix/switch-transformers-timm-wrapper-bf16-dtype
32817246
Rocketknight1
Rocketknight1 commented on 2026-03-30
harshaljanjani change: Upcast to float32 instead of downcasting
faa66b3b
harshaljanjani harshaljanjani requested a review from Rocketknight1 Rocketknight1 3 days ago
github-actions
harshaljanjani
harshaljanjani
Rocketknight1
Rocketknight1 approved these changes on 2026-04-02
HuggingFaceDocBuilderDev
harshaljanjani
Rocketknight1 Rocketknight1 merged 423f2a31 into main 1 hour ago
harshaljanjani harshaljanjani deleted the fix/switch-transformers-timm-wrapper-bf16-dtype branch 1 hour ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone