Unverified Commit 085a5253 authored by hwhaokun's avatar hwhaokun Committed by GitHub
Browse files

[Model] Fix lmhead init bug of bailing_moe (#28777)


Signed-off-by: default avatarhwhaokun <haokun0405@163.com>
Co-authored-by: default avatarzhaozx-cn <zhaozx2116@163.com>
Co-authored-by: default avatarJee Jee Li <pandaleefree@gmail.com>
parent 89d36792
......@@ -599,7 +599,7 @@ class BailingMoeForCausalLM(nn.Module, SupportsPP, SupportsLoRA):
config.vocab_size,
config.hidden_size,
quant_config=quant_config,
prefix=f"{prefix}.lm_head",
prefix=maybe_prefix(prefix, "lm_head"),
)
self.logits_processor = LogitsProcessor(config.vocab_size)
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment