Skip to content

Commit

Permalink
Fix yapf detected format issue
Browse files Browse the repository at this point in the history
Signed-off-by: Chendi.Xue <chendi.xue@intel.com>
  • Loading branch information
xuechendi committed Sep 12, 2024
1 parent fb98cad commit 046cb25
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions vllm/model_executor/models/dbrx.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,15 @@ def __init__(

self.router = DbrxRouter(config, self.params_dtype)
self.ws = nn.Parameter(
torch.empty(
self.num_total_experts,
2 * self.intermediate_size,
self.d_model,
dtype=self.params_dtype))
torch.empty(self.num_total_experts,
2 * self.intermediate_size,
self.d_model,
dtype=self.params_dtype))
self.w2s = nn.Parameter(
torch.empty(
self.num_total_experts,
self.d_model,
self.intermediate_size,
dtype=self.params_dtype))
torch.empty(self.num_total_experts,
self.d_model,
self.intermediate_size,
dtype=self.params_dtype))

set_weight_attrs(
self.ws,
Expand Down

0 comments on commit 046cb25

Please sign in to comment.