mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-10 03:44:54 +00:00
[python] fix: Fix embedding mapping for deepspeed chat
This commit is contained in:
parent
895c5f1562
commit
f6ba71f60f
@ -255,7 +255,7 @@ class BLOOMSharded(BLOOM):
|
||||
raise ValueError(f"Unexpected quantize `{quantize}`")
|
||||
|
||||
module._parameters[param_name] = tensor
|
||||
if name == "word_embeddings.weight":
|
||||
if "word_embeddings.weight" in name:
|
||||
model.lm_head._parameters["weight"] = tensor
|
||||
|
||||
def forward(
|
||||
|
Loading…
Reference in New Issue
Block a user