Skip to content

Commit

Permalink
fix whisper config
Browse files Browse the repository at this point in the history
  • Loading branch information
mht-sharma committed Nov 1, 2023
1 parent 9a9a7bf commit 820e207
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion optimum/exporters/onnx/model_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,10 @@ def inputs(self) -> Dict[str, Dict[int, str]]:


class WhisperOnnxConfig(AudioToTextOnnxConfig):
NORMALIZED_CONFIG_CLASS = NormalizedSeq2SeqConfig
NORMALIZED_CONFIG_CLASS = NormalizedSeq2SeqConfig.with_args(
encoder_num_layers="encoder_layers",
decoder_num_layers="decoder_layers",
)
ATOL_FOR_VALIDATION = 1e-3

@property
Expand Down

0 comments on commit 820e207

Please sign in to comment.