mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-16 00:33:34 +08:00
Fix weights loading for Apertus (#24100)
Signed-off-by: Nathan Ranchin <nranchin@student.ethz.ch>
This commit is contained in:
parent
2417798471
commit
598bd74cf8
@ -415,6 +415,12 @@ class ApertusModel(nn.Module):
|
|||||||
(".qkv_proj", ".v_proj", "v"),
|
(".qkv_proj", ".v_proj", "v"),
|
||||||
]
|
]
|
||||||
params_dict = dict(self.named_parameters())
|
params_dict = dict(self.named_parameters())
|
||||||
|
|
||||||
|
# we need to load the buffers for beta and eps (XIELU)
|
||||||
|
for name, buffer in self.named_buffers():
|
||||||
|
if name.endswith(".beta") or name.endswith(".eps"):
|
||||||
|
params_dict[name] = buffer
|
||||||
|
|
||||||
loaded_params: set[str] = set()
|
loaded_params: set[str] = set()
|
||||||
for name, loaded_weight in weights:
|
for name, loaded_weight in weights:
|
||||||
if "rotary_emb.inv_freq" in name:
|
if "rotary_emb.inv_freq" in name:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user