[Model] Support every Decision 3.0 size (d3-flash, d3-mini, d3-nano, d3-lite, d3-edge) (#61778)

Signed-off-by: Xunzhuo Liu <xunzhuo.liu@amd.com>
This commit is contained in:
Xunzhuo
2026-10-15 13:29:24 +00:00
committed by GitHub
parent 9cede34a67
commit 766c837bd5
4 changed files with 27 additions and 10 deletions
+5
View File
@@ -81,3 +81,8 @@ class D3ForSequenceClassification(_D3ForSequenceClassificationBase):
allow_patterns_overrides=[READOUT_WEIGHTS],
)
]
def is_unused_checkpoint_weight(self, name: str) -> bool:
# The readout's only tensor, loaded through `secondary_weights`. A
# checkpoint without a weight index lists its file with the backbone's.
return name == "weight"