[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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user