[Voxtral Realtime] Introduce global log mel max (#33574)

Signed-off-by: Patrick von Platen <patrick.v.platen@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Patrick von Platen
2026-02-02 17:01:47 -05:00
committed by GitHub
co-authored by gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
parent 089cd4f002
commit 5019c59dd2
4 changed files with 19 additions and 11 deletions
@@ -248,6 +248,9 @@ def _remap_mistral_audio_args(config: dict) -> dict:
sliding_window=encoder_args.get("sliding_window", None),
block_pool_size=block_pool_size,
pos_embed=encoder_args.get("pos_embed", "sinusoidal"),
global_log_mel_max=encoder_args["audio_encoding_args"].get(
"global_log_mel_max"
),
# only needed for RoPE
max_position_embeddings=block_pool_size * config["max_position_embeddings"],
),