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
fe1ab618
Commit
fe1ab618
authored
Nov 19, 2025
by
guanyu1
Browse files
test2_强制修改为ALL
parent
3146b529
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
14 deletions
+15
-14
vllm/model_executor/models/adapters_custom/adapters_classify.py
...odel_executor/models/adapters_custom/adapters_classify.py
+11
-10
vllm/version.py
vllm/version.py
+4
-4
No files found.
vllm/model_executor/models/adapters_custom/adapters_classify.py
View file @
fe1ab618
...
...
@@ -322,7 +322,7 @@ def new_hy_05b_dense_official_classification(cls: _T) -> _T:
quant_config
=
quant_config
,
params_dtype
=
torch
.
float32
,
prefix
=
maybe_prefix
(
prefix
,
"pool_head2"
),
return_bias
=
Tru
e
,
return_bias
=
Fals
e
,
)
# 兼容 ForSequenceClassification:将 score 直接指向最终分类头
# 不再单独创建一层;pool_head2 即最终打分层
...
...
@@ -457,7 +457,7 @@ def hy_2b_dense_classification_official_hf_multihead_full_mask(cls: _T) -> _T:
quant_config
=
quant_config
,
params_dtype
=
torch
.
float32
,
prefix
=
maybe_prefix
(
prefix
,
"pool_head2"
),
return_bias
=
Tru
e
,
return_bias
=
Fals
e
,
)
self
.
qfeat_emb
=
ReplicatedLinear
(
2
,
...
...
@@ -514,9 +514,10 @@ def hy_2b_dense_classification_official_hf_multihead_full_mask(cls: _T) -> _T:
"PoolerConfig must be provided to use classification head"
)
# Determine pooling type (fallback to config.pool_type)
pooling_type_str
=
(
pooler_config
.
pooling_type
if
pooler_config
.
pooling_type
is
not
None
else
getattr
(
config
,
"pool_type"
,
"LAST"
)).
upper
()
# pooling_type_str = (pooler_config.pooling_type
# if pooler_config.pooling_type is not None
# else getattr(config, "pool_type", "LAST")).upper()
pooling_type_str
=
"ALL"
if
pooling_type_str
==
"LASTTOKEN"
:
pooling_type_str
=
"LAST"
pooling_type
=
PoolingType
[
pooling_type_str
]
...
...
@@ -552,10 +553,10 @@ def hy_2b_dense_classification_official_hf_multihead_full_mask(cls: _T) -> _T:
a_wei
=
self
.
qfeat_fc2
(
qhidden
)
a_bias
=
self
.
qfeat_fc3
(
qhidden
)
sat_logits
=
pooled_output_sat
[:,
-
1
]
auth_logits
=
pooled_output_auth
[:,
-
2
]
time_logits
=
pooled_output_time
[:,
-
3
]
rel_logits
=
pooled_output_rel
[:,
-
4
]
sat_logits
=
pooled_output_sat
[:,
-
1
,:
]
auth_logits
=
pooled_output_auth
[:,
-
2
,:
]
time_logits
=
pooled_output_time
[:,
-
3
,:
]
rel_logits
=
pooled_output_rel
[:,
-
4
,:
]
multii_logits
=
torch
.
concat
([
rel_logits
,
time_logits
,
auth_logits
],
dim
=
1
)
task_logits
=
(
a_wei
*
multii_logits
+
a_bias
).
sum
(
dim
=
1
,
keepdim
=
True
)
task_logits
=
torch
.
sigmoid
(
task_logits
)
...
...
@@ -586,7 +587,7 @@ def hy_2b_dense_classification_official_hf_multihead_full_mask(cls: _T) -> _T:
return
pooled_output
#
reward
return
reward
def
forward
(
self
,
...
...
vllm/version.py
View file @
fe1ab618
...
...
@@ -2,10 +2,10 @@
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
try
:
#
__version__ = "0.11.0"
#
__version_tuple__ = (0, 11, 0)
#
__hcu_version__ = f'0.11.0+das.opt1.alpha.c16e075.dtk25042'
#
from vllm.version import __version__, __version_tuple__, __hcu_version__
#__version__ = "0.11.0"
#__version_tuple__ = (0, 11, 0)
#__hcu_version__ = f'0.11.0+das.opt1.alpha.c16e075.dtk25042'
#from vllm.version import __version__, __version_tuple__, __hcu_version__
from
._version
import
__version__
,
__version_tuple__
except
Exception
as
e
:
import
warnings
...
...
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