Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def synthesize(
# Call the core model's generate method.
# autocast promotes float32 inputs to bfloat16 to match T3/S3Gen weights,
# keeping numerically sensitive ops (softmax, norms) in float32 automatically.
with torch.autocast("cuda", dtype=torch.bfloat16, enabled=BF16_ENABLED):
with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16, enabled=BF16_ENABLED):
if loaded_model_type == "multilingual":
wav_tensor = chatterbox_model.generate(
text=text,
Expand Down