"vllm/vscode:/vscode.git/clone" did not exist on "94870359cdce95cc1c56d7ae2730e8ac9be40049"
Unverified Commit b0dfa91d authored by 少年's avatar 少年 Committed by GitHub
Browse files

[Model] Add starcoder2 awq support (#3569)

parent 56a8652f
......@@ -141,8 +141,9 @@ class Starcoder2MLP(nn.Module):
bias=config.use_bias,
linear_method=linear_method,
)
self.act = get_act_fn(config.hidden_act,
intermediate_size=config.intermediate_size)
quant_config = getattr(linear_method, "quant_config", None)
self.act = get_act_fn(config.hidden_act, quant_config,
config.intermediate_size)
def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
hidden_states, _ = self.c_fc(hidden_states)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment