Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
d5ca2110
Unverified
Commit
d5ca2110
authored
Feb 22, 2025
by
Kyle Sayers
Committed by
GitHub
Feb 22, 2025
Browse files
[Quant] BaiChuan SupportsQuant (#13710)
parent
2c5e637b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/model_executor/models/baichuan.py
vllm/model_executor/models/baichuan.py
+3
-2
No files found.
vllm/model_executor/models/baichuan.py
View file @
d5ca2110
...
...
@@ -46,7 +46,7 @@ from vllm.model_executor.model_loader.weight_utils import default_weight_loader
from
vllm.model_executor.sampling_metadata
import
SamplingMetadata
from
vllm.sequence
import
IntermediateTensors
from
.interfaces
import
SupportsLoRA
,
SupportsPP
from
.interfaces
import
SupportsLoRA
,
SupportsPP
,
SupportsQuant
from
.utils
import
(
is_pp_missing_parameter
,
make_empty_intermediate_tensors_factory
,
make_layers
)
...
...
@@ -334,7 +334,8 @@ class BaiChuanModel(nn.Module):
return
hidden_states
class
BaiChuanBaseForCausalLM
(
nn
.
Module
,
SupportsLoRA
,
SupportsPP
):
class
BaiChuanBaseForCausalLM
(
nn
.
Module
,
SupportsLoRA
,
SupportsPP
,
SupportsQuant
):
packed_modules_mapping
=
{
"W_pack"
:
[
"W_pack"
],
"gate_up_proj"
:
[
...
...
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