[Misc] Add Qwen2.5-Omni-3B model support to Gradio demo (#1382)

Signed-off-by: UsamaKenway <usamakenway@gmail.com>
This commit is contained in:
UsamaKenway authored and GitHub committed 2026-02-22 21:17:09 +08:00
1 parent 6c85ddcb96
commit d8a32a6a87
1 file changed
+8 -3
@@ -15,9 +15,7 @@ from PIL import Image
SEED = 42 SEED = 42
SUPPORTED_MODELS: dict[str, dict[str, Any]] = { DEFAULT_SAMPLING_PARAMS = {
"Qwen/Qwen2.5-Omni-7B": {
"sampling_params": {
"thinker": { "thinker": {
"temperature": 0.0, "temperature": 0.0,
"top_p": 1.0, "top_p": 1.0,
@@ -46,7 +44,14 @@ SUPPORTED_MODELS: dict[str, dict[str, Any]] = {
"detokenize": True, "detokenize": True,
"repetition_penalty": 1.1, "repetition_penalty": 1.1,
}, },
}
SUPPORTED_MODELS: dict[str, dict[str, Any]] = {
"Qwen/Qwen2.5-Omni-3B": {
"sampling_params": DEFAULT_SAMPLING_PARAMS,
}, },
"Qwen/Qwen2.5-Omni-7B": {
"sampling_params": DEFAULT_SAMPLING_PARAMS,
}, },
} }
# Ensure deterministic behavior across runs. # Ensure deterministic behavior across runs.