Skip to content

Commit fe470ae

Browse files
authored
[Minor] Fix code style for baichuan (#2003)
1 parent 3a8c238 commit fe470ae

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

vllm/model_executor/models/baichuan.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ def load_weights(self,
366366
weight_loader(param, loaded_weight)
367367

368368

369-
class BaichuanForCausalLM(BaiChuanBaseForCausalLM
370-
): # baichuan 13b, baichuan2 13b, baichuan2 7b
369+
class BaichuanForCausalLM(BaiChuanBaseForCausalLM):
370+
"""Baichuan 13B and Baichuan2 7B/13B."""
371371

372372
def __init__(self,
373373
config,
@@ -378,7 +378,8 @@ def __init__(self,
378378
super().__init__(config, "ALIBI", linear_method)
379379

380380

381-
class BaiChuanForCausalLM(BaiChuanBaseForCausalLM): # baichuan 7b
381+
class BaiChuanForCausalLM(BaiChuanBaseForCausalLM):
382+
"""Baichuan 7B."""
382383

383384
def __init__(self,
384385
config,

0 commit comments

Comments
 (0)