Skip to content

Commit

Permalink
Allow token timestamps for distil-large-v3
Browse files Browse the repository at this point in the history
  • Loading branch information
atiorh committed Apr 3, 2024
1 parent 5cfec57 commit 0999a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def cli():

# FIXME(atiorh): Remove this once distil-whisper-* models are updated
args.disable_token_timestamps = False
if "distil-whisper" in args.model_version:
if "distil" in args.model_version and "distil-large-v3" not in args.model_version:
logger.info(
"Disabling token-level timestamps due to missing alignment_heads in distil-whisper-* models"
)
Expand Down

0 comments on commit 0999a61

Please sign in to comment.