Skip to content

Commit

Permalink
fix dbrx weight loader (#212)
Browse files Browse the repository at this point in the history
Co-authored-by: Charlie Fu <Charlie.Fu@amd.com>
  • Loading branch information
divakar-amd and charlifu authored Oct 1, 2024
1 parent 956b831 commit 2d7ab9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/model_executor/models/dbrx.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def sample(
def load_weights(self, weights: Iterable[Tuple[str, torch.Tensor]]):

expert_params_mapping = [(
"w13_weight" if weight_name in ["w1", "v1"] else "w2_weight",
"w13_" if weight_name in ["w1", "v1"] else "w2_",
f"mlp.{weight_name}.",
) for weight_name in ["w1", "v1", "w2"]]
params_dict = dict(self.named_parameters(remove_duplicate=False))
Expand Down

0 comments on commit 2d7ab9e

Please sign in to comment.