transformers/docs/source
Xabier de Zuazo 606d90845f
Fix Whisper Conversion Script: Correct decoder_attention_heads and _download function (#26834)
* Fix error in convert_openai_to_hf.py: "_download() missing 1 required positional argument: root"

* Fix error in convert_openai_to_hf.py: "TypeError: byte indices must be integers or slices, not str"

* Fix decoder_attention_heads value in convert_openai_to_hf.py.

Correct the assignment for `decoder_attention_heads` in the conversion script for the Whisper model.

* Black reformat convert_openai_to_hf.py file.

* Fix Whisper model configuration defaults (for Tiny).

- Correct encoder/decoder layers and attention heads count.
- Update model width (`d_model`) to 384.

* Add docstring to the convert_openai_to_hf.py script with a doctest

* Add shebang and +x permission to the convert_openai_to_hf.py

* convert_openai_to_hf.py: reuse the read model_bytes in the _download() function

* Move convert_openai_to_hf.py doctest example to whisper.md

* whisper.md: Add an inference example to the Conversion section.

* whisper.md: remove `model.config.forced_decoder_ids` from examples (deprecated)

* whisper.md: Remove "## Format Conversion" section; not used by users

* whisper.md: Use librispeech_asr_dummy dataset and load_dataset()
2023-11-07 13:39:42 +01:00
..
de [i18n-DE] contribute chapter (#26481) 2023-10-02 09:56:40 -07:00
en Fix Whisper Conversion Script: Correct decoder_attention_heads and _download function (#26834) 2023-11-07 13:39:42 +01:00
es [docs] fixed links with 404 (#27327) 2023-11-06 19:45:03 +00:00
fr Fix typos (#25936) 2023-09-04 11:15:12 +01:00
hi Hindi translation of pipeline_tutorial.md (#26837) 2023-10-25 11:21:49 -07:00
it [docs] fixed links with 404 (#27327) 2023-11-06 19:45:03 +00:00
ja [docs] fixed links with 404 (#27327) 2023-11-06 19:45:03 +00:00
ko [docs] fixed links with 404 (#27327) 2023-11-06 19:45:03 +00:00
ms Remove broken links to s-JoL/Open-Llama (#27164) 2023-10-31 10:17:54 +00:00
pt [docs] fixed links with 404 (#27327) 2023-11-06 19:45:03 +00:00
te Added Telugu [te] translations (#26828) 2023-10-20 15:27:55 -07:00
zh [docs] fixed links with 404 (#27327) 2023-11-06 19:45:03 +00:00
_config.py Adding evaluate to the list of libraries required in generated notebooks (#20850) 2022-12-21 14:04:08 +01:00