[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
@@ -8,7 +8,7 @@ from typing import Any, ClassVar
|
||||
import torch
|
||||
import torch.nn.functional as F
|
||||
from torch import nn
|
||||
from transformers import PretrainedConfig
|
||||
from transformers import PreTrainedConfig
|
||||
|
||||
from vllm.compilation.decorators import support_torch_compile
|
||||
from vllm.config import CacheConfig, ModelConfig, SpeechToTextConfig, VllmConfig
|
||||
@@ -1861,7 +1861,7 @@ class CohereASRModel(nn.Module):
|
||||
|
||||
|
||||
class CohereASRProcessingInfo(BaseProcessingInfo):
|
||||
def get_hf_config(self) -> PretrainedConfig:
|
||||
def get_hf_config(self) -> PreTrainedConfig:
|
||||
return self.ctx.get_hf_config()
|
||||
|
||||
def get_default_tok_params(self) -> TokenizeParams:
|
||||
|
||||
Reference in New Issue
Block a user