Views
No views yet
optimum-cli export onnx --task automatic-speech-recognition-with-past --opset 14
(optimum 1.21.4 · transformers 4.41.2 · torch 2.2.2). No training, no fine-tuning,
no change to the weights' values.[vocab, d_model] for the embedding Gather and once, transposed,
as [d_model, vocab] for the output projection — which alone costs ~80 MB in fp32.
The duplicate is removed and the Gather reads the surviving matrix along axis=1
followed by a Transpose. Verified numerically to be the exact transpose before
rewiring, and measured to give bit-identical accuracy to the untied graph on our
benchmark.onnxruntime.quantization.quantize_dynamic, including the embedding Gather —
which is what makes the shared matrix pay off twice.generation_config.json is taken from openai/whisper-tiny (Apache-2.0), since the
fine-tuned repo ships none and the exporter's default lacks the multilingual tokens.transformers.js fetches, for dtype: "int8":
onnx/encoder_model_int8.onnx, onnx/decoder_model_merged_int8.onnx,
config.json, generation_config.json, preprocessor_config.json,
tokenizer.json, tokenizer_config.json.openai/whisper-tiny and
tarteel-ai/whisper-tiny-ar-quran. The full text is in LICENSE.
An ONNX export creates no new right in the weights; this repository redistributes a
derivative work under the same terms and attributes the original authors above.