This repository was archived by the owner on Oct 11, 2024. It is now read-only.
File tree 10 files changed +0
-10
lines changed
vllm/model_executor/models 10 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,6 @@ def __init__(
139
139
4 * hidden_size ,
140
140
quant_config = quant_config ,
141
141
)
142
- quant_config = getattr (quant_config , "quant_config" , None )
143
142
self .gelu_impl = get_act_fn ("gelu" , quant_config , 4 * hidden_size )
144
143
self .dense_4h_to_h = RowParallelLinear (
145
144
4 * hidden_size ,
Original file line number Diff line number Diff line change @@ -203,7 +203,6 @@ def __init__(
203
203
bias = config .bias ,
204
204
skip_bias_add = True ,
205
205
quant_config = quant_config )
206
- quant_config = getattr (quant_config , "quant_config" , None )
207
206
self .act = get_act_fn ("gelu" , quant_config , 4 * hidden_size )
208
207
self .reduce_row_parallel_results = not (config .new_decoder_architecture
209
208
or config .parallel_attn )
Original file line number Diff line number Diff line change @@ -107,7 +107,6 @@ def __init__(
107
107
bias = True ,
108
108
quant_config = quant_config ,
109
109
)
110
- quant_config = getattr (quant_config , "quant_config" , None )
111
110
self .act = get_act_fn (config .activation_function , quant_config ,
112
111
intermediate_size )
113
112
Original file line number Diff line number Diff line change @@ -128,7 +128,6 @@ def __init__(
128
128
bias = True ,
129
129
quant_config = quant_config ,
130
130
)
131
- quant_config = getattr (quant_config , "quant_config" , None )
132
131
self .act = get_act_fn (config .activation_function , quant_config ,
133
132
intermediate_size )
134
133
Original file line number Diff line number Diff line change @@ -120,7 +120,6 @@ def __init__(
120
120
hidden_size ,
121
121
quant_config = quant_config ,
122
122
)
123
- quant_config = getattr (quant_config , "quant_config" , None )
124
123
self .act = get_act_fn (config .activation_function , quant_config ,
125
124
intermediate_size )
126
125
Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ def __init__(
119
119
config .hidden_size ,
120
120
quant_config = quant_config ,
121
121
)
122
- quant_config = getattr (quant_config , "quant_config" , None )
123
122
self .act = get_act_fn (config .hidden_act , quant_config ,
124
123
config .intermediate_size )
125
124
Original file line number Diff line number Diff line change @@ -146,7 +146,6 @@ def __init__(
146
146
bias = not config .no_bias ,
147
147
quant_config = quant_config ,
148
148
)
149
- quant_config = getattr (quant_config , "quant_config" , None )
150
149
self .act = get_act_fn ("gelu" , quant_config , intermediate_size )
151
150
self .down_proj = RowParallelLinear (
152
151
intermediate_size ,
Original file line number Diff line number Diff line change @@ -130,7 +130,6 @@ def __init__(
130
130
bias = config .enable_bias ,
131
131
quant_config = quant_config ,
132
132
)
133
- quant_config = getattr (quant_config , "quant_config" , None )
134
133
self .activation_fn = get_act_fn (config .activation_function ,
135
134
quant_config , config .ffn_dim )
136
135
self .fc2 = RowParallelLinear (
Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ def __init__(self,
142
142
config .hidden_size ,
143
143
quant_config = quant_config ,
144
144
)
145
- quant_config = getattr (quant_config , "quant_config" , None )
146
145
self .act = get_act_fn (config .hidden_act , quant_config , n_inner )
147
146
148
147
def forward (self , hidden_states ):
Original file line number Diff line number Diff line change @@ -136,7 +136,6 @@ def __init__(self,
136
136
bias = config .use_bias ,
137
137
quant_config = quant_config ,
138
138
)
139
- quant_config = getattr (quant_config , "quant_config" , None )
140
139
self .act = get_act_fn (config .hidden_act , quant_config ,
141
140
config .intermediate_size )
142
141
You can’t perform that action at this time.
0 commit comments