/ Модель

Характеристики

Лицензия
CC BY-NC 4.0
Базовая модель
mms-1b
Библиотека
espnet
Опубликована
19 авг 2025

geolid_vl107only_independent_trainable

Классификация аудиоАудио → label7 профессий

Модель ESPnet GeoLID определяет язык речи по аудиозаписи и классифицирует её по одному из 107 языков.

26скачиваний за 30 дней0лайковвеса обновлены28 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

ESPnet GeoLID vl107onlyindependenttrainable — это модель определения языка речи по аудио, разработанная для ESPnet. Она использует стандартные компоненты S3prlFrontend и ESPnetLIDModel, а также SSL-слои 32, 36, 40 и 44 с предсказанием и остаточной подачей признаков lang2vec. Модель дообучена на основе facebook/mms-1b и содержит классификатор на 107 языков.

Контрольная точка была преобразована без повторного обучения: ключи параметров переименовали и удалили дублирующие псевдонимы, сохранив значения всех обученных тензоров. На 1609 аудиозаписях тестовой части VoxLingua107 достигнута точность 93,78%. Модель принимает аудио и выдаёт метку языка; в метаданных перечислены языки от абхазского до латышского, но полный список 107 классов в предоставленных данных отсутствует.

Для запуска нужны ESPnet и связанные библиотеки; удалённый пользовательский код не требуется. Лицензия CC BY-NC 4.0 разрешает использование с указанием авторства, но некоммерческое. Результаты зависят от пакетной обработки: выравнивание признаков и временные свёртки могут приводить к различиям для коротких записей при наличии дополнения до длины пакета.

Сценарии применения

  • определение языка в короткой аудиозаписи
  • маршрутизация аудиозаписей по языку
  • языковая разметка аудиоколлекций
  • предварительная классификация аудио перед распознаванием речи

Ограничения

В предоставленных метаданных перечислены коды только части из 107 языков. При пакетной обработке результаты для коротких записей могут отличаться от запуска по одной записи из-за выравнивания признаков, временных свёрток и обработки дополненных последовательностей.

Для каких профессий подходит7

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

ESPnet2 GeoLID: vl107only_independent_trainable

This is a normal ESPnet language identification model using the stock S3prlFrontend and ESPnetLIDModel (model: espnet) with optional lang2vec conditioning. GeoLID wraps SSL layers 32, 36, 40 and 44 with lang2vec prediction and residual conditioning. The model code is maintained in ESPnet; no checkpoint-local Python modeling files or trust_remote_code=True are needed.

The checkpoint was converted, not retrained. local/convert_checkpoint.py renamed the original parameter keys and removed checked duplicate aliases. All learned tensor values are unchanged. The auxiliary linear head now belongs to the model; classification uses the standard aamsoftmax_sc_topk loss. Runtime uses current ESPnet pooling and normalization, without legacy compatibility code. Measured accuracy of this converted checkpoint is reported separately from historical paper results below.

Evaluation

DatasetHistorical paper accuracy (%)Converted-model accuracy (%)Correct / total
VoxLingua107 dev93.793.781509 / 1609

The converted checkpoint was evaluated again on all 1,609 VoxLingua107 dev utterances after integrating lang2vec into the standard ESPnetLIDModel. This full evaluation used the unmodified espnet2.bin.lid_inference CLI at ESPnet revision 301372e4da311d2a3d9574a5a43b3037ae6e67c1: GPU float32, batch size 1, 8 data-loading workers, full-length waveforms, --use_preprocessor false and --fix_duration false. The input wav.scp was sorted by utterance ID. The environment used PyTorch 2.11.0+cu128, Transformers 5.14.1 and espnet-s3prl 2026.5.14. Accuracy is the fraction of correctly classified utterances.

Evaluation report and reproduction command, all 1,609 predictions with reference labels, inference log, and evaluation metadata provide the results, runtime settings, input revision and checkpoint SHA-256. All 1,609 predicted labels match the earlier full-dev evaluation at ca777d59eb49519e3827e40cc34997f2123d6682. The previous evaluation metadata is preserved in evaluation_previous.json.

These are batch-size-1 results. utterance_mvn and final chn_attn_stat pooling do mask padding. The remaining batch dependence comes earlier: S3PRL aligns features to ceil(samples / 320), so the extra frames of a shorter utterance can differ from its single-utterance run, and ECAPA's temporal convolutions and unmasked SE global means depend on padded sequence length. Final masked pooling cannot undo those feature changes. Historical paper scores for other datasets are not new measurements of this checkpoint.

The configuration selects the standard ESPnetLIDModel; lang2vec prediction and conditioning are optional features of that model. The refactor preserved the converted parameter names and weight file. The earlier strict-loading and six-utterance checks remain recorded at their original revisions in validation.json. Its separate full_dev_model_integration record describes this new complete evaluation with the stock CLI loader; the full evaluation did not instrument that loader to force strict loading.

Installation

Install the upstream ESPnet revision containing the merged GeoLID recipe:

pip install 'espnet @ git+https://github.com/espnet/espnet.git@c9fde840770adc76100b781044abe160e38124bd'
pip install espnet-s3prl transformers espnet-model-zoo soundfile

S3PRL's hf_wav2vec2_custom upstream imports Transformers; espnet-s3prl does not install it automatically. With an ESPnet tools checkout, the equivalent installers are make s3prl.done transformers.done in tools/. The lang2vec package is used only by recipe target preparation and is not needed for inference.

Inference

import soundfile as sf
import torch
from espnet_model_zoo.downloader import ModelDownloader
from espnet2.tasks.lid import LIDTask

files = ModelDownloader().download_and_unpack("espnet/geolid_vl107only_independent_trainable")
model, args = LIDTask.build_model_from_file(
    files["train_config"], files["model_file"], device="cpu"
)
model.eval()
audio, sample_rate = sf.read("speech.wav", dtype="float32")
assert sample_rate == 16000 and audio.ndim == 1
with torch.inference_mode():
    embeddings, prediction = model(
        torch.from_numpy(audio)[None],
        torch.tensor([len(audio)]),
        extract_embd=True,
    )
with open(args.lang2utt) as stream:
    languages = [line.split()[0] for line in stream]
print(languages[prediction.item()])

The backbone is initialized through the stock hf_wav2vec2_custom upstream from facebook/mms-1b, then the complete converted checkpoint loads the trained SSL, conditioning and classifier parameters. This repository contains 107 language classes. languages.txt preserves classifier-index order recovered from the original model card and the original sorted recipe label construction; it is not a copy of the missing original training utterance manifest.

conversion.json records the source checkpoint revision and label provenance. validation.json preserves the historical strict-loading and layout-migration checks, and separately records the complete evaluation after model integration. evaluation.json records the latest measured accuracy, with per-utterance results in evaluation_predictions.jsonl. The metadata targets are used only for training; inference uses speech and predicts its own conditioning vectors. The old training logs and figures retained under exp_* describe the original training run. Earlier checkpoint layouts remain available in repository history.

License

Derived from facebook/mms-1b, these model weights are licensed CC-BY-NC-4.0, including the non-commercial restriction. The previous CC-BY-4.0 metadata was incorrect and has been corrected.

Citation

@inproceedings{wang2025geolid,
  title={Geolocation-Aware Robust Spoken Language Identification},
  author={Qingzheng Wang and Hye-jin Shim and Jiancheng Sun and Shinji Watanabe},
  booktitle={2025 IEEE Automatic Speech Recognition and Understanding Workshop (ASRU)},
  year={2025},
  organization={IEEE},
  url={https://arxiv.org/abs/2508.17148}
}

Recipe and evaluation results

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · espnet

Нельзя запустить

Модели ESPnet требуют отдельного рантайма.

Ревизия весов
703a6ca

0 моделей