Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
fe470ae5
Unverified
Commit
fe470ae5
authored
Dec 09, 2023
by
Woosuk Kwon
Committed by
GitHub
Dec 09, 2023
Browse files
[Minor] Fix code style for baichuan (#2003)
parent
3a8c2381
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
vllm/model_executor/models/baichuan.py
vllm/model_executor/models/baichuan.py
+4
-3
No files found.
vllm/model_executor/models/baichuan.py
View file @
fe470ae5
...
@@ -366,8 +366,8 @@ class BaiChuanBaseForCausalLM(nn.Module):
...
@@ -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, b
aichuan2 7
b
"""Baichuan 13B and B
aichuan2 7
B/13B."""
def
__init__
(
self
,
def
__init__
(
self
,
config
,
config
,
...
@@ -378,7 +378,8 @@ class BaichuanForCausalLM(BaiChuanBaseForCausalLM
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment