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 69 days ago
github-actions github-actions requested a review from ArthurZucker ArthurZucker 69 days ago
github-actions github-actions requested a review from ydshieh ydshieh 69 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 67 days ago
github-actions
harshaljanjani
harshaljanjani
Rocketknight1
Rocketknight1 approved these changes on 2026-04-02
HuggingFaceDocBuilderDev
harshaljanjani
Rocketknight1 Rocketknight1 merged 423f2a31 into main 64 days ago
harshaljanjani harshaljanjani deleted the fix/switch-transformers-timm-wrapper-bf16-dtype branch 64 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone