mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-17 14:26:08 +08:00
[Minor] Fix code style for baichuan (#2003)
This commit is contained in:
parent
3a8c2381f7
commit
fe470ae5ad
@ -366,8 +366,8 @@ class BaiChuanBaseForCausalLM(nn.Module):
|
|||||||
weight_loader(param, loaded_weight)
|
weight_loader(param, loaded_weight)
|
||||||
|
|
||||||
|
|
||||||
class BaichuanForCausalLM(BaiChuanBaseForCausalLM
|
class BaichuanForCausalLM(BaiChuanBaseForCausalLM):
|
||||||
): # baichuan 13b, baichuan2 13b, baichuan2 7b
|
"""Baichuan 13B and Baichuan2 7B/13B."""
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
config,
|
config,
|
||||||
@ -378,7 +378,8 @@ class BaichuanForCausalLM(BaiChuanBaseForCausalLM
|
|||||||
super().__init__(config, "ALIBI", linear_method)
|
super().__init__(config, "ALIBI", linear_method)
|
||||||
|
|
||||||
|
|
||||||
class BaiChuanForCausalLM(BaiChuanBaseForCausalLM): # baichuan 7b
|
class BaiChuanForCausalLM(BaiChuanBaseForCausalLM):
|
||||||
|
"""Baichuan 7B."""
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
config,
|
config,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user