[qwen-omni] fix processor (#37493)
Some checks failed
Release - Conda / build_and_package (push) Has been cancelled
Secret Leaks / trufflehog (push) Has been cancelled

* fix

* delete print

* accept kwargs in overriden models as well

* remove duplicate
This commit is contained in:
Raushan Turganbay
2025-04-14 17:30:31 +02:00
committed by GitHub
parent d228f50acc
commit cb39f7dd5b
4 changed files with 13 additions and 6 deletions

View File

@@ -228,6 +228,10 @@ class GenerationTesterMixin:
"video_token_index",
"video_token_id",
"vision_start_token_id",
"audio_token_index",
"audio_start_token_id",
"audio_end_token_id",
"vision_end_token_id",
]:
token_index = getattr(config, key, None)
if token_index is None and hasattr(self, "model_tester"):