Downloads · 30 days
9
19% of all-time downloads
jshrdt/lowhipa-base-thchs30
lowhipa-base-thchs30 is a automatic speech recognition model from jshrdt. Use it when you need speech turned into text. It is set up for peft. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
9
19% of all-time downloads
All-time downloads
48
Public
Repo size
579 MB
Likes
0
Public
Click a slice to open those files.
.safetensors219 MB · 96%
From the Hugging Face model README
This Whisper-for-IPA (WhIPA) model adapter is a PEFT LoRA fine-tuned version of openai/whisper-base on a subset (1k samples) of the Mandarin THCHS-30 database (https://arxiv.org/pdf/1512.01882) with IPA transcriptions by Taubert (2023, https://zenodo.org/records/7528596).
For deployment and description, please refer to https://github.com/jshrdt/whipa.
from transformers import WhisperForConditionalGeneration, WhisperTokenizer, WhisperProcessor
from peft import PeftModel
tokenizer = WhisperTokenizer.from_pretrained("openai/whisper-base", task="transcribe")
tokenizer.add_special_tokens({"additional_special_tokens": ["<|ip|>"] + tokenizer.all_special_tokens})
base_model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-base")
base_model.generation_config.lang_to_id["<|ip|>"] = tokenizer.convert_tokens_to_ids(["<|ip|>"])[0]
base_model.resize_token_embeddings(len(tokenizer))
whipa_model = PeftModel.from_pretrained(base_model, "jshrdt/lowhipa-base-thchs30")
whipa_model.generation_config.language = "<|ip|>"
whipa_model.generation_config.task = "transcribe"
whipa_processor = WhisperProcessor.from_pretrained("openai/whisper-base", task="transcribe")
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.7877 | 2.0323 | 126 | 0.5588 |
| 0.3438 | 4.0645 | 252 | 0.3379 |
| 0.2765 | 6.0968 | 378 | 0.3056 |
| 0.2425 | 8.1290 | 504 | 0.2966 |
| 0.2195 | 10.1613 | 630 | 0.2911 |