patrickvonplaten commited on
Commit
283c02d
1 Parent(s): a1d36ee

Correct long-form generation config parameters 'max_initial_timestamp_index' and 'prev_sot_token_id'.

Browse files

Hey distil-whisper 👋,

Your model repository seems to contain outdated generation config parameters, such as 'max_initial_timestamp_index' and is missing the 'prev_sot_token_id' parameter. These parameters need to be updated to correctly handle long-form generation as stated in as part of https://github.com/huggingface/transformers/pull/27658. This PR makes sure that everything is up to date and can be safely merged.

Best, the Transformers team.

Files changed (1) hide show
  1. generation_config.json +2 -1
generation_config.json CHANGED
@@ -123,10 +123,11 @@
123
  "<|zh|>": 50260
124
  },
125
  "language": "<|en|>",
126
- "max_initial_timestamp_index": 1,
127
  "max_length": 448,
128
  "no_timestamps_token_id": 50363,
129
  "pad_token_id": 50257,
 
130
  "return_timestamps": false,
131
  "suppress_tokens": [
132
  1,
 
123
  "<|zh|>": 50260
124
  },
125
  "language": "<|en|>",
126
+ "max_initial_timestamp_index": 50,
127
  "max_length": 448,
128
  "no_timestamps_token_id": 50363,
129
  "pad_token_id": 50257,
130
+ "prev_sot_token_id": 50361,
131
  "return_timestamps": false,
132
  "suppress_tokens": [
133
  1,