Views
No views yet
SpeechEncoderDecoderModel: Hausa waveform → XLS-R encoder → internal cross-attention → mBART English decoder. It does not call an external Hausa ASR or machine-translation system.571430cc00b0321b997bde01e98f1a3fc9e093c7, with one decoding change: no_repeat_ngram_size=3. No additional trained weights are claimed.tsuxalo/Spoken-Language-Translation-Model,
but it is not a drop-in Whisper/PEFT adapter. C1 uses an XLS-R encoder and mBART decoder,
so consumers must load the standalone model and processor as shown below.| Metric | C1 | Baseline | Paired C1−baseline 95% CI |
|---|---|---|---|
| chrF++ | 16.6682 | 16.2896 | +0.2412 to +0.5316 |
| SacreBLEU | 0.4992 | 0.5008 | −0.1040 to +0.0600 |
| SSA-COMET | 0.2101 | 0.1885 | +0.01745 to +0.02548 |
McGill-NLP/ssa-comet-mtl@6e64e0a56ce69524c67f304b092725687a362ef8 with pinned Davlan/afro-xlmr-large-76L@14a5ee38911f7f9992cf7a1c5fcd1588d9d14319.1{
2 "num_beams": 5,
3 "max_new_tokens": 128,
4 "early_stopping": true,
5 "no_repeat_ngram_size": 3,
6 "repetition_penalty": 1.0,
7 "length_penalty": 1.0
8}1import soundfile as sf
2import torch
3from scipy.signal import resample_poly
4from transformers import SpeechEncoderDecoderModel, Wav2Vec2Processor
5
6model_id = "lEtoileNoir/Hausa_English_Direct_S2TT"
7processor = Wav2Vec2Processor.from_pretrained(model_id)
8device = "cuda" if torch.cuda.is_available() else "cpu"
9model = SpeechEncoderDecoderModel.from_pretrained(model_id).to(device).eval()
10audio, sampling_rate = sf.read("hausa.wav", dtype="float32", always_2d=True)
11audio = audio.mean(axis=1)
12if sampling_rate != 16_000:
13 audio = resample_poly(audio, 16_000, sampling_rate)
14 sampling_rate = 16_000
15inputs = processor(audio, sampling_rate=sampling_rate, return_tensors="pt").to(device)
16with torch.inference_mode():
17 tokens = model.generate(**inputs)
18print(processor.batch_decode(tokens, skip_special_tokens=True)[0])language="hausa" or task="translate", and do
not wrap this release with PeftModel. The merged weights and C1 generation defaults load
directly from this repository. For a stable project integration, pin the immutable Hub commit
reported for the release instead of following main indefinitely.facebook/wav2vec2-xls-r-300m-21-to-en@0e06afa94bacd448b178007cb85b95a92a59a0daMcGill-NLP/NaijaS2ST@898f51582750fe244693794f22e3f4b32c5baf95ea34c4f539e260807438c150cea330833d60d281d773590695345ab12d40080027f1a0179990cc718485ccaf95c1cb863badc382a031b30a11ea170822d8c9b8e4c8be2aec56609d0aaf57189528a7019ea359c0f08a00974ba710c8d2cb6a3e5b2698adf98a883a5399a00e8253abd36ae0054d89cdb13a03fbfef0dfeb7f76McGill-NLP/NaijaS2ST, which is
released under CC BY 4.0 and requires attribution. Dataset authors describe it as the African
Celtic Speech Dataset; use the citation and attribution information in its dataset card. No
NaijaS2ST audio or row-level translations are redistributed in this model repository.frozen_evidence.json is an immutable selection-time snapshot, so its pre-publication upload
status describes the moment of freezing rather than the current Hub state.