mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
tied embeddings for qwe2
This commit is contained in:
parent
8642250602
commit
f73f57ca21
@ -959,6 +959,10 @@ def get_model(
|
||||
dtype=dtype,
|
||||
trust_remote_code=trust_remote_code,
|
||||
lora_adapter_ids=lora_adapter_ids,
|
||||
aliases={
|
||||
"lm_head.weight": ["model.word_embeddings.weight"],
|
||||
"model.word_embeddings.weight": ["lm_head.weight"],
|
||||
}
|
||||
)
|
||||
elif sharded:
|
||||
raise NotImplementedError(FLASH_ATT_ERROR_MESSAGE.format("Sharded Qwen2"))
|
||||
|
Loading…
Reference in New Issue
Block a user