Skip to content

Commit

Permalink
Support for Stable LM 2 (vllm-project#2598)
Browse files Browse the repository at this point in the history
Co-authored-by: Zhuohan Li <[email protected]>
  • Loading branch information
dakotamahan-stability and zhuohan123 authored Jan 26, 2024
1 parent 6b7de1a commit 3a0e1fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/model_executor/models/stablelm.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def __init__(self,
self.scaling = self.head_dim**-0.5
self.q_size = self.num_heads * self.head_dim
self.kv_size = self.num_key_value_heads * self.head_dim

self.qkv_bias = getattr(config, "use_qkv_bias", False)
if (self.head_dim * self.num_heads * tp_size) != self.hidden_size:
raise ValueError(
f"hidden_size must be divisible by num_heads (got `hidden_size`: {self.hidden_size}"
Expand All @@ -108,7 +108,7 @@ def __init__(self,
self.head_dim,
self.total_num_heads,
self.total_num_key_value_heads,
bias=False,
self.qkv_bias,
linear_method=linear_method)
self.o_proj = RowParallelLinear(self.total_num_heads * self.head_dim,
self.hidden_size,
Expand Down

0 comments on commit 3a0e1fc

Please sign in to comment.