Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Commit 2d7ab9e

Browse files
fix dbrx weight loader (#212)
Co-authored-by: Charlie Fu <[email protected]>
1 parent 956b831 commit 2d7ab9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/model_executor/models/dbrx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def sample(
392392
def load_weights(self, weights: Iterable[Tuple[str, torch.Tensor]]):
393393

394394
expert_params_mapping = [(
395-
"w13_weight" if weight_name in ["w1", "v1"] else "w2_weight",
395+
"w13_" if weight_name in ["w1", "v1"] else "w2_",
396396
f"mlp.{weight_name}.",
397397
) for weight_name in ["w1", "v1", "w2"]]
398398
params_dict = dict(self.named_parameters(remove_duplicate=False))

0 commit comments

Comments
 (0)