[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
@@ -17,7 +17,7 @@ from einops import rearrange
|
||||
from transformers import (
|
||||
BartConfig,
|
||||
BatchFeature,
|
||||
PretrainedConfig,
|
||||
PreTrainedConfig,
|
||||
)
|
||||
|
||||
from vllm.config import CacheConfig, VllmConfig
|
||||
@@ -440,7 +440,7 @@ class RadioWithNeck(nn.Module):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
config: PretrainedConfig,
|
||||
config: PreTrainedConfig,
|
||||
quant_config: QuantizationConfig | None = None,
|
||||
prefix: str = "",
|
||||
):
|
||||
@@ -480,7 +480,7 @@ class RadioWithNeck(nn.Module):
|
||||
|
||||
def get_vit_model_from_radio_config(
|
||||
self,
|
||||
hf_config: PretrainedConfig,
|
||||
hf_config: PreTrainedConfig,
|
||||
quant_config: QuantizationConfig | None = None,
|
||||
) -> RadioModel:
|
||||
hf_config_vision = hf_config.encoder
|
||||
|
||||
Reference in New Issue
Block a user