From e455b307be123ce6573abb58c994fd84f47ace72 Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Wed, 11 Mar 2026 18:50:11 +0000 Subject: [PATCH] add fmpeg system support for linux and windows --- setup.ps1 | 26 ++++++++++++++++++- .../backend/utils/datasets/model_mappings.py | 8 ++++-- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/setup.ps1 b/setup.ps1 index 5a573126aa..1c05ac064b 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -526,7 +526,31 @@ if ($NeedNode) { Write-Host "[OK] Node $(node -v) | npm $(npm -v)" -ForegroundColor Green # ============================================ -# 1g. Python (>= 3.11 and < 3.14, matching setup.sh) +# 1g. FFmpeg (required for audio model support) +# ============================================ +$HasFFmpeg = $null -ne (Get-Command ffmpeg -ErrorAction SilentlyContinue) +if (-not $HasFFmpeg) { + Write-Host "FFmpeg not found -- installing via winget..." -ForegroundColor Yellow + $HasWinget = $null -ne (Get-Command winget -ErrorAction SilentlyContinue) + if ($HasWinget) { + try { + winget install -e --id Gyan.FFmpeg --source winget --accept-package-agreements --accept-source-agreements 2>&1 | Out-Null + Refresh-Environment + $HasFFmpeg = $null -ne (Get-Command ffmpeg -ErrorAction SilentlyContinue) + } catch { } + } + if (-not $HasFFmpeg) { + Write-Host "[WARN] FFmpeg could not be installed automatically." -ForegroundColor Yellow + Write-Host " Install FFmpeg from https://ffmpeg.org/download.html and re-run." -ForegroundColor Yellow + } else { + Write-Host "[OK] FFmpeg installed: $(ffmpeg -version | Select-Object -First 1)" -ForegroundColor Green + } +} else { + Write-Host "[OK] FFmpeg found: $(ffmpeg -version | Select-Object -First 1)" -ForegroundColor Green +} + +# ============================================ +# 1h. Python (>= 3.11 and < 3.14, matching setup.sh) # ============================================ $HasPython = $null -ne (Get-Command python -ErrorAction SilentlyContinue) $PythonOk = $false diff --git a/studio/backend/utils/datasets/model_mappings.py b/studio/backend/utils/datasets/model_mappings.py index 56e8ea70c1..b91c189c2b 100644 --- a/studio/backend/utils/datasets/model_mappings.py +++ b/studio/backend/utils/datasets/model_mappings.py @@ -419,9 +419,13 @@ TEMPLATE_TO_RESPONSES_MAPPER = { "instruction": "user\n", "response": "model\n", }, - "qwen3-instruct": { + "qwen3.5": { "instruction": "<|im_start|>user\n", - "response": "<|im_start|>assistant\n", + "response": "<|im_start|>assistant\n\n", + }, + "qwen3-instruct": { + "instruction": "1user\n", + "response": "1assistant\n", }, "qwen3-thinking": { "instruction": "<|im_start|>user\n",