Automatic Speech Recognition
PEFT
Safetensors
Thai
whisper
thai
asr
speech-recognition
lora
lotusdis
Instructions to use Kanompung/whisper-th-lotusdis-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Kanompung/whisper-th-lotusdis-lora with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Add model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: th
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
tags:
|
| 5 |
+
- whisper
|
| 6 |
+
- thai
|
| 7 |
+
- asr
|
| 8 |
+
- speech-recognition
|
| 9 |
+
- lora
|
| 10 |
+
- peft
|
| 11 |
+
- lotusdis
|
| 12 |
+
datasets:
|
| 13 |
+
- custom
|
| 14 |
+
base_model: nectec/Pathumma-whisper-th-large-v3
|
| 15 |
+
pipeline_tag: automatic-speech-recognition
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# 🇹🇭 Whisper Thai - LOTUSDIS Fine-tuned (LoRA)
|
| 19 |
+
|
| 20 |
+
Fine-tuned **nectec/Pathumma-whisper-th-large-v3** for Thai distant meeting transcription.
|
| 21 |
+
|
| 22 |
+
## Training Details
|
| 23 |
+
- **Task:** LOTUSDIS Distant Meeting Transcription Challenge
|
| 24 |
+
- **Method:** LoRA (rank=64, alpha=128)
|
| 25 |
+
- **Training data:** Multi-microphone (6 mic types) ≈ 95K samples
|
| 26 |
+
- **Epochs:** 1
|
| 27 |
+
- **Effective batch size:** 48
|
| 28 |
+
- **Precision:** BF16
|
| 29 |
+
- **Trainable params:** ~2.4% of total
|
| 30 |
+
|
| 31 |
+
## Usage
|
| 32 |
+
|
| 33 |
+
```python
|
| 34 |
+
from transformers import pipeline
|
| 35 |
+
|
| 36 |
+
asr = pipeline(
|
| 37 |
+
"automatic-speech-recognition",
|
| 38 |
+
model="Kanompung/whisper-th-lotusdis-lora",
|
| 39 |
+
device="cuda",
|
| 40 |
+
chunk_length_s=30,
|
| 41 |
+
)
|
| 42 |
+
|
| 43 |
+
result = asr("audio.mp3", generate_kwargs={"language": "thai", "task": "transcribe"})
|
| 44 |
+
print(result["text"])
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
## LoRA Adapter Only
|
| 48 |
+
If you want just the adapter (~150 MB):
|
| 49 |
+
```python
|
| 50 |
+
from peft import PeftModel
|
| 51 |
+
from transformers import WhisperForConditionalGeneration
|
| 52 |
+
|
| 53 |
+
base = WhisperForConditionalGeneration.from_pretrained("nectec/Pathumma-whisper-th-large-v3")
|
| 54 |
+
model = PeftModel.from_pretrained(base, "Kanompung/whisper-th-lotusdis-lora-adapter")
|
| 55 |
+
```
|