[Debug] Clean code in Qwen 3 Omni and add warning for talker temperature. (#688)
Signed-off-by: tzhouam <tzhouam@connect.ust.hk> Co-authored-by: root <root@hk01dgx028.cm.cluster>
This commit is contained in:
1 parent
8c7f704c23
commit
2e13bddf87
5 files changed
+86
-91
No files matched your search
@@ -223,7 +223,9 @@ class GPUARModelRunner(OmniGPUModelRunner):
|
||||
return output
|
||||
|
||||
sample_hidden_states = hidden_states[logits_indices]
|
||||
logits = self.model.compute_logits(sample_hidden_states)
|
||||
logits = self.model.compute_logits(
|
||||
sample_hidden_states, sampling_metadata=self.input_batch.sampling_metadata
|
||||
)
|
||||
else:
|
||||
assert not self.is_pooling_model
|
||||
|
||||
@@ -239,7 +241,9 @@ class GPUARModelRunner(OmniGPUModelRunner):
|
||||
logits = None
|
||||
else:
|
||||
sample_hidden_states = hidden_states[logits_indices]
|
||||
logits = self.model.compute_logits(sample_hidden_states)
|
||||
logits = self.model.compute_logits(
|
||||
sample_hidden_states, sampling_metadata=self.input_batch.sampling_metadata
|
||||
)
|
||||
|
||||
model_output_broadcast_data: dict[str, Any] = {}
|
||||
if logits is not None:
|
||||
|
||||
Reference in new issue
Block a user