[CI/Build] Update CPU tests to include all "standard" tests (#5481)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2024-11-08 23:30:04 +08:00
committed by GitHub
parent 208ce622c7
commit b489fc3c91
14 changed files with 63 additions and 48 deletions

View File

@@ -134,9 +134,9 @@ def input_mapper_for_ultravox(ctx: InputContext, data: object):
if sr != feature_extractor.sampling_rate:
try:
import librosa
except ImportError:
except ImportError as exc:
raise ImportError(
"Please install vllm[audio] for audio support.") from None
"Please install vllm[audio] for audio support.") from exc
audio = librosa.resample(audio,
orig_sr=sr,
target_sr=feature_extractor.sampling_rate)