/ Модель

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

Контекст
4 096 токенов
Параметры
20,3 млн
Лицензия
MIT
Архитектура
moonshine_streaming · dense
Библиотека
transformers
Опубликована
6 янв 2026

moonshine-streaming-tiny

Распознавание речиАудио → текст3 профессии

Компактная модель Useful Sensors для потоковой транскрипции английской речи с низкой задержкой на устройствах с ограниченными ресурсами.

61 508скачиваний за 30 дней17лайковвеса обновлены10 фев 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Распознавание речи» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

  • hf-audio/open-asr-leaderboard

    score · ниже — лучше

    Результат

    12

    librispeech_clean_wer 4,5tedlium_wer 6,1spgispeech_wer 6,16
    Hugging Face Leaderboards

    Публичная таблицаревизия не подтверждена

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

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

Moonshine Streaming Tiny — модель автоматического распознавания речи, разработанная Useful Sensors для потоковой транскрипции на устройствах с ограниченными ресурсами. Она принимает аудио и генерирует текст на английском языке; модель предназначена для субсекундных задержек и работы примерно в пределах 0,1–1 TOPS и менее 1 ГБ памяти.

Это последовательная encoder-decoder Transformer-модель: лёгкий аудиофронтенд формирует признаки с частотой 50 Гц, скользящий оконный энкодер использует локальное внимание, а авторегрессионный декодер выводит транскрипт. В карточке Tiny описана как вариант на 34 млн параметров с шестью слоями энкодера и декодера; метаданные репозитория указывают 20,3 млн параметров. Контекст в метаданных — 4096 токенов. Модель обучалась и оценивалась для английской речи.

Основные сценарии — субтитры в реальном времени, голосовые команды и транскрипция на периферийных устройствах. Декодирование авторегрессионное, поэтому задержка полного вывода растёт с длиной транскрипта; реализация Transformers пока не обеспечивает полностью эффективную потоковую обработку. На коротких или шумных фрагментах возможны повторы и слова, отсутствующие в аудио. Лицензия — MIT. Разработчик не рекомендует применять модель для несогласованного наблюдения, идентификации говорящих и решений с высокими последствиями.

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

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

Ограничения

Авторегрессионный декодер увеличивает задержку полного вывода по мере удлинения транскрипта, а реализация Transformers пока не обеспечивает полностью эффективную потоковую обработку. На коротких или шумных аудиофрагментах возможны повторы и галлюцинации; модель не прошла надёжную оценку для языков, отличных от английского.

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

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

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

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

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

Открыть на Hugging Face

Moonshine Streaming

[Paper]

This is the model card for the Moonshine Streaming automatic speech recognition (ASR) models trained and released by Useful Sensors. Moonshine Streaming pairs a lightweight 50~Hz audio frontend with a sliding-window Transformer encoder to deliver low-latency streaming ASR on edge-class hardware. The encoder uses bounded local attention and no positional embeddings (an "ergodic" encoder), while an adapter injects positional information before a standard autoregressive decoder.

This model card follows the recommendations from Model Cards for Model Reporting (Mitchell et al.). See the paper draft in this repository for full details.

Usage

Moonshine Streaming is supported in Hugging Face Transformers. The following example matches the standard seq2seq ASR API and uses the streaming model checkpoint:

pip install --upgrade pip
pip install --upgrade git+https://github.com/huggingface/transformers.git#egg=transformers datasets[audio]
from transformers import MoonshineStreamingForConditionalGeneration, AutoProcessor
from datasets import load_dataset, Audio
import torch

device = "cuda:0" if torch.cuda.is_available() else "cpu"
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32

model = MoonshineStreamingForConditionalGeneration.from_pretrained(
    "usefulsensors/moonshine-streaming-small"
).to(device).to(torch_dtype)
processor = AutoProcessor.from_pretrained("usefulsensors/moonshine-streaming-small")

dataset = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
dataset = dataset.cast_column("audio", Audio(processor.feature_extractor.sampling_rate))
sample = dataset[0]["audio"]

inputs = processor(
    sample["array"],
    return_tensors="pt",
    sampling_rate=processor.feature_extractor.sampling_rate,
)
inputs = inputs.to(device, torch_dtype)

# Limit max output length to avoid hallucination loops.
token_limit_factor = 6.5 / processor.feature_extractor.sampling_rate
seq_lens = inputs.attention_mask.sum(dim=-1)
max_length = int((seq_lens * token_limit_factor).max().item())

generated_ids = model.generate(**inputs, max_length=max_length)
print(processor.decode(generated_ids[0], skip_special_tokens=True))

Note: the current Transformers code path does not yet implement fully efficient streaming for these models. It uses the flash-attention backend's sliding-window attention when available.

Model Details

Model type

Sequence-to-sequence ASR model with a streaming, sliding-window Transformer encoder and an autoregressive Transformer decoder.

Supported languages

English (trained and evaluated on English datasets).

Model sizes

SizeParametersEncoder / Decoder layersEncoder dimDecoder dim
Tiny34M6 / 6320320
Small123M10 / 10620512
Medium245M14 / 14768640

Architecture summary

  • Audio frontend: 50~Hz features using simple time-domain operations, CMVN, and two causal stride-2 convolutions.
  • Encoder: sliding-window self-attention with no positional embeddings (ergodic encoder). Windowing uses $(16,4)$ for the first two and last two layers and $(16,0)$ for intermediate layers, giving an 80~ms lookahead in the lookahead layers.
  • Adapter: adds learned positional embeddings and aligns dimensions before the decoder.
  • Decoder: causal Transformer with RoPE, autoregressively generating text.

Model Use

Intended use

These models are intended for low-latency, on-device English speech transcription on memory- and compute-constrained platforms (roughly 0.1--1TOPS and sub-1GB memory budgets). Typical applications include live captioning, voice commands, and real-time transcription.

Out-of-scope use

These models are not intended for non-consensual surveillance, speaker identification, or high-stakes decision-making contexts. They have not been robustly evaluated for tasks outside English ASR.

Training Data

Moonshine Streaming was trained on roughly 300K hours of speech data. This includes the original Moonshine training sources (about 200K hours of public web data and open datasets) plus an additional 100K hours of internally prepared speech data. See the paper for details and dataset sources.

Performance and Limitations

Open ASR benchmark results (WER %)

DatasetTiny (34M)Small (123M)Medium (245M)
AMI19.0312.5410.68
Earnings-2220.2713.5311.90
GigaSpeech13.9010.419.46
LibriSpeech (clean)4.492.492.08
LibriSpeech (other)12.096.785.00
SPGISpeech6.163.192.58
TED-LIUM6.123.772.99
VoxPopuli14.029.988.54
Average12.017.846.65

Known limitations

  • The decoder is autoregressive, so full-output latency grows with transcript length even when TTFT is low.
  • The Transformers implementation does not yet perform fully efficient streaming; it relies on the flash-attention backend for sliding-window attention.
  • Like other seq2seq ASR models, Moonshine Streaming can hallucinate words that are not present in the audio, and may repeat phrases, especially on short or noisy segments.

Broader Implications

Moonshine Streaming enables low-cost, low-latency transcription, which benefits accessibility and user interaction on edge devices. At the same time, ASR capabilities can be misused for surveillance or other harmful purposes. Users should consider consent, privacy, and domain-specific evaluation before deployment.

Citation

TBD

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Ревизия весов
f8e9dfd

0 моделей