[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
@@ -7,7 +7,7 @@ from typing import TypeVar
|
||||
import torch
|
||||
import torch.nn as nn
|
||||
import torch.nn.functional as F
|
||||
from transformers import PretrainedConfig
|
||||
from transformers import PreTrainedConfig
|
||||
|
||||
from vllm.config import ModelConfig
|
||||
from vllm.logger import init_logger
|
||||
@@ -17,7 +17,7 @@ logger = init_logger(__name__)
|
||||
|
||||
|
||||
def get_act_fn(
|
||||
config: PretrainedConfig,
|
||||
config: PreTrainedConfig,
|
||||
static_num_labels: bool = True,
|
||||
) -> "PoolerActivation":
|
||||
# get classification act_fn
|
||||
|
||||
Reference in New Issue
Block a user