[Chore] Use Transformers v5 names and drop redundant processor use_fast (#58550)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
484c211fe8
commit
d881812500
@@ -3,7 +3,7 @@
|
||||
|
||||
|
||||
import torch
|
||||
from transformers import PretrainedConfig
|
||||
from transformers import PreTrainedConfig
|
||||
|
||||
from vllm.config.lora import LoRAConfig
|
||||
from vllm.platforms import current_platform
|
||||
@@ -16,7 +16,7 @@ class ClassificationHeadWithLoRA(ReplicatedLinearWithLoRA):
|
||||
self,
|
||||
max_loras: int,
|
||||
lora_config: LoRAConfig,
|
||||
model_config: PretrainedConfig | None = None,
|
||||
model_config: PreTrainedConfig | None = None,
|
||||
) -> None:
|
||||
# Preserve ordinary LoRA A/B support for classification heads.
|
||||
super().create_lora_weights(max_loras, lora_config, model_config)
|
||||
|
||||
Reference in New Issue
Block a user