[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
@@ -10,7 +10,7 @@ import torch
|
||||
import torch.nn as nn
|
||||
from transformers import (
|
||||
BatchFeature,
|
||||
PretrainedConfig,
|
||||
PreTrainedConfig,
|
||||
ProcessorMixin,
|
||||
SequenceFeatureExtractor,
|
||||
SiglipVisionConfig,
|
||||
@@ -123,7 +123,7 @@ class Phi4MMImageEncoder(nn.Module):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
config: PretrainedConfig,
|
||||
config: PreTrainedConfig,
|
||||
quant_config: QuantizationConfig | None,
|
||||
prefix: str = "",
|
||||
model_dir: str = "",
|
||||
|
||||
Reference in New Issue
Block a user