Downloads · 30 days
31
17% of all-time downloads
cuong06/seamlessm4t-v2-Bahnar-Vietnamese
seamlessm4t-v2-Bahnar-Vietnamese is a machine learning model from cuong06. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-4.0.
This model is a fine-tuned version of facebook/seamless-m4t-v2-large for Speech-to-Text Translation (S2TT) from Bahnar to Vietnamese.
Downloads · 30 days
31
17% of all-time downloads
All-time downloads
179
Public
Parameters
1.5B
12.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors6 GB · 99%
From the Hugging Face model README
This model is a fine-tuned version of facebook/seamless-m4t-v2-large for Speech-to-Text Translation (S2TT) from Bahnar to Vietnamese.
facebook/seamless-m4t-v2-largebdq)vie)Note This model only supports the Speech-to-Text Translation (S2TT) task.
This model was trained on the Bahnar Speech Translation Dataset.
The dataset was curated from internet sources and processed using automatic alignment techniques. It contains Bahnar speech audio paired with Vietnamese translations.
For more details on the data creation process, please refer to the dataset README and repository below.
import torch
import soundfile as sf
from transformers import AutoProcessor, SeamlessM4Tv2ForSpeechToText
model_id = "cuong06/seamlessm4t-v2-Bahnar-Vietnamese"
processor = AutoProcessor.from_pretrained(model_id)
model = SeamlessM4Tv2ForSpeechToText.from_pretrained(model_id)
audio, sampling_rate = sf.read("sample.wav")
inputs = processor(
audio=audio,
sampling_rate=sampling_rate,
return_tensors="pt"
)
with torch.no_grad():
predicted_ids = model.generate(
**inputs,
tgt_lang="vie"
)
translation = processor.batch_decode(
predicted_ids,
skip_special_tokens=True
)[0]
print(translation)
Results on the test set using beam search (beam_size=5):
| Metric | Score |
|---|---|
| BLEU | 24.58 |
nrefs:1|case:lc|eff:no|tok:13a|smooth:exp|version:2.6.
If you use this model or the dataset, please cite the repository and dataset.
@misc{bahnar_vietnamese_s2tt,
author = {Dam Cuong},
title = {Bahnar-Vietnamese Speech-to-Text Translation},
year = {2026},
howpublished = {\url{https://github.com/damcuong8/Bahnar-Vietnamese-S2TT}}
}