Skip to content

Commit

Permalink
Fixes conflicts with new upstream changes
Browse files Browse the repository at this point in the history
Signed-off-by: Flavia Beo <[email protected]>
  • Loading branch information
flaviabeo committed Nov 12, 2024
1 parent 5b75f4a commit 971acea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vllm/model_executor/models/bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,17 +305,17 @@ def forward(self, hidden_states: torch.Tensor,

class BertModel(nn.Module):

def __init__(self, *,
vllm_config: VllmConfig,
def __init__(self,
*,
config: BertConfig,
vllm_config: VllmConfig,
prefix: str = "",
embedding_class: type = BertEmbedding):
super().__init__()
self.embeddings = embedding_class(config)
config = vllm_config.model_config.hf_config
cache_config = vllm_config.cache_config
quant_config = vllm_config.quant_config

self.embeddings = BertEmbedding(config)
self.embeddings = embedding_class(config)
self.encoder = BertEncoder(config,
cache_config,
quant_config,
Expand Down

0 comments on commit 971acea

Please sign in to comment.