fix: change embeddings to embedding

This commit is contained in:
Ubuntu 2024-11-10 21:39:49 +00:00
parent 97f7a22f0b
commit 9fc8adbc81

View File

@ -212,7 +212,7 @@ class MambaModel(nn.Module):
try: try:
self.lm_head = SpeculativeHead.load(config, f"{prefix}.embeddings", weights) self.lm_head = SpeculativeHead.load(config, f"{prefix}.embeddings", weights)
except RuntimeError: except RuntimeError:
self.lm_head = SpeculativeHead.load(config, f"{prefix}.embeddings", weights) self.lm_head = SpeculativeHead.load(config, f"{prefix}.embedding", weights)
self.config = config self.config = config
def forward( def forward(