[Misc]Remove redundant hidden_size property in ModelConfig (#29749)

Signed-off-by: Xingyu Liu <charlotteliu12x@gmail.com>
Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Xingyu Liu
2025-12-01 01:14:23 +08:00
committed by GitHub
parent 39d28108f4
commit 21c2627934
2 changed files with 2 additions and 9 deletions

View File

@@ -301,7 +301,7 @@ def as_seq_cls_model(cls: _T) -> _T:
quant_config = vllm_config.quant_config
self.score = ReplicatedLinear(
model_config.hidden_size,
model_config.get_hidden_size(),
text_config.num_labels,
bias=False,
params_dtype=vllm_config.model_config.head_dtype,