Fix: Change embeddings to embedding (#2738)
fix: change embeddings to embedding Co-authored-by: Ubuntu <ubuntu@ip-172-31-28-135.us-west-2.compute.internal>
This commit is contained in:
parent
f9ee46f740
commit
4f4857a4ac
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue