ci: simplify multi-modality tests by using mixins (#9006)
This commit is contained in:
@@ -217,9 +217,9 @@ class BaseMultimodalProcessor(ABC):
|
||||
if videos:
|
||||
kwargs["videos"] = videos
|
||||
if audios:
|
||||
if self.arch in {
|
||||
"Gemma3nForConditionalGeneration",
|
||||
"Qwen2AudioForConditionalGeneration",
|
||||
if self._processor.__class__.__name__ in {
|
||||
"Gemma3nProcessor",
|
||||
"Qwen2AudioProcessor",
|
||||
}:
|
||||
# Note(Xinyuan): for gemma3n, ref: https://github.com/huggingface/transformers/blob/ccf2ca162e33f381e454cdb74bf4b41a51ab976d/src/transformers/models/gemma3n/processing_gemma3n.py#L107
|
||||
kwargs["audio"] = audios
|
||||
|
||||
Reference in New Issue
Block a user