[Feature][Voxtral TTS] Support per-model extra sampling params & add cfg_alpha for Voxtral TTS (#2338)
Signed-off-by: Chen-Yo Sun <chenyo.sun@mistral.ai> Signed-off-by: Yueqian Lin <linyueqian@outlook.com> Co-authored-by: Yueqian Lin <linyueqian@outlook.com>
This commit is contained in:
1 parent
2903f528d2
commit
8e1bbc9ab5
13 files changed
+160
-37
No files matched your search
@@ -1038,6 +1038,15 @@ class OmniGPUModelRunner(GPUModelRunner):
|
||||
import traceback
|
||||
|
||||
traceback.print_exc()
|
||||
|
||||
if getattr(self.model_config, "has_sampling_extra_args", False):
|
||||
extra_args_list: list[dict] = []
|
||||
for req_id in self.input_batch.req_ids:
|
||||
req = self.requests[req_id]
|
||||
sp = req.sampling_params if req else None
|
||||
extra_args_list.append(sp.extra_args if sp and sp.extra_args else {})
|
||||
model_kwargs_extra["sampling_extra_args"] = extra_args_list
|
||||
|
||||
return model_kwargs_extra
|
||||
|
||||
def _process_additional_information_updates(
|
||||
|
||||
Reference in new issue
Block a user