Mindket

SPEAR XLarge v2

Newversion 1 · updated

Overview

Turns 16 kHz speech and general audio into 1280-number frame-level features, as a pretrained Zipformer encoder with about 600M parameters. For researchers who fine-tune it for speech recognition or audio tagging.

SPEAR XLarge v2 is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python and pip
  • PyTorch and transformers
  • About 2.4 GB of free disk space
Runs in
  • Python with PyTorch and the transformers library
  • A CPU or a CUDA GPU, which the example chooses automatically
  • Research pipelines on Windows, macOS or Linux
Start with
pip install -U huggingface_hub
hf download marcoyang/spear-xlarge-speech-audio-v2

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

SPEAR XLarge v2 is a pretrained audio encoder that learns from speech and general sounds in one model. It turns a 16 kHz waveform into 1280-number features at about 50 per second. It uses a Zipformer backbone with 13 stacks, and version 2 adds token mixing for overlapped speech, noise and mixed sound scenes.

Who it suits

Researchers and engineers who need a starting point for speech recognition, audio tagging or other audio tasks, and who can fine-tune on labeled data.

IndustryWho uses itHow they use itExample
Speech technologyASR engineersFine-tune the encoder for speech recognitionAn encoder tuned on LibriSpeech
Audio analysisSound researchersFine-tune it to tag audio eventsA tagger tuned on AudioSet
AcademiaStudentsExtract features for experiments on speech and audioHidden states from each layer for a probe
MediaAudio engineersStudy mixed scenes with speech, noise and musicFeatures from a noisy recording

Skip it if you need a ready transcriber, because it was pretrained on unlabeled audio only and needs fine-tuning for supervised tasks.

Where to use it

  • Python with PyTorch and the transformers library
  • A CPU or a CUDA GPU, which the example chooses automatically
  • Research pipelines on Windows, macOS or Linux
Use caseWhoWhat they get back
Feature extractionResearchersFrame-level features with shape batch, frames, 1280
Intermediate layersProbing studiesA list of hidden states, 13 layers in all
Fine-tuning baseASR and tagging teamsA pretrained encoder to train on labeled data

How to set it up

You need Python with pip, PyTorch, the transformers library and about 2.4 GB of disk space for the F32 weights. Your audio must be resampled to 16 kHz before it goes in.

  • Python and pip
  • PyTorch and transformers
  • About 2.4 GB of free disk space
  1. Install the Hugging Face hub tool.
  2. Download the repository's files, or let transformers fetch them on first load.
  3. Resample any audio to 16 kHz.
pip install -U huggingface_hub
hf download marcoyang/spear-xlarge-speech-audio-v2

How to use it

Load the model with transformers, passing the option that allows the repository's own code to run. Then give it a mono or batched 16 kHz waveform and its length. The result holds the top-layer features, their lengths and all hidden states.

from transformers import AutoModel
import torch

model = AutoModel.from_pretrained(
    "marcoyang/spear-xlarge-speech-audio-v2",
    trust_remote_code=True,
)

device = "cuda" if torch.cuda.is_available() else "cpu"
model = model.to(device).eval()

# Dummy 10-second waveform at 16 kHz.
audio = torch.randn(1, 160000, device=device)
audio_len = torch.tensor([audio.shape[1]], device=device)

with torch.no_grad():
    outputs = model(audio, audio_len)

encoder_out = outputs["encoder_out"]       # (batch, frames, 1280)
encoder_out_lens = outputs["encoder_out_lens"]
hidden_states = outputs["hidden_states"]   # list of intermediate states

print(encoder_out.shape)
print(encoder_out_lens)
print(len(hidden_states))                  # 13 layers
print(hidden_states[-1].shape)
ToolWhat it does
AutoModel.from_pretrainedLoads the encoder from the repository
encoder_outThe top-layer features for each frame
hidden_statesA list of the intermediate layer outputs

Example

You pass a ten-second clip at 16 kHz and its length to the model. It returns frame features with 1280 numbers each, their lengths, and a list of 13 hidden states you can inspect.

For newcomers and experts

If you are new to this, run the example with the dummy waveform first and print the shapes. Then try a real recording that you resampled to 16 kHz.

If you know the field, this is a self-supervised encoder, pretrained on 197k hours of English speech and general audio. It is meant as a base for tasks such as speech recognition and audio tagging. After fine-tuning, the card reports a LibriSpeech test-clean error rate of 1.6 and a test-other rate of 2.9.

  1. 16 kHz waveform goes in
  2. Zipformer encoder processes it
  3. Frame features come out
  4. Fine-tune for ASR or tagging

Good to know

The card states results as the maker's own. After fine-tuning on AudioSet it reports 50.0 mAP on the full set and 39.4 on the balanced set.

Audio tagging mAP after fine-tuning
AudioSet Balanced39.4
AudioSet Full50.0
  • Remote code: loading uses the option that runs the repository's own code, so read it first
  • Pretraining data: about 197k hours of unlabeled English speech and general audio
  • License: Apache 2.0
  • Cost to run: none named
  • Data it reaches: the audio you feed it locally, plus files downloaded from Hugging Face
  • Not for: out-of-the-box transcription or tagging, since it needs labeled fine-tuning

README and files

README

SPEAR XLarge v2

Turns 16 kHz speech and general audio into 1280-number frame-level features, as a pretrained Zipformer encoder with about 600M parameters. For researchers who fine-tune it for speech recognition or audio tagging.

Made by marcoyang on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: SPEAR XLarge v2 is a pretrained audio encoder that learns from speech and general sounds in one model. It turns a 16 kHz waveform into 1280-number features at about 50 per second. It uses a Zipformer backbone with 13 stacks, and version 2 adds token mixing for overlapped speech, noise and mixed sound scenes.

Who it suits: Researchers and engineers who need a starting point for speech recognition, audio tagging or other audio tasks, and who can fine-tune on labeled data.

Industry | Who uses it | How they use it | Example
Speech technology | ASR engineers | Fine-tune the encoder for speech recognition | An encoder tuned on LibriSpeech
Audio analysis | Sound researchers | Fine-tune it to tag audio events | A tagger tuned on AudioSet
Academia | Students | Extract features for experiments on speech and audio | Hidden states from each layer for a probe
Media | Audio engineers | Study mixed scenes with speech, noise and music | Features from a noisy recording

Skip it if you need a ready transcriber, because it was pretrained on unlabeled audio only and needs fine-tuning for supervised tasks.

Where to use it:

  • Python with PyTorch and the transformers library
  • A CPU or a CUDA GPU, which the example chooses automatically
  • Research pipelines on Windows, macOS or Linux
Use case | Who | What they get back
Feature extraction | Researchers | Frame-level features with shape batch, frames, 1280
Intermediate layers | Probing studies | A list of hidden states, 13 layers in all
Fine-tuning base | ASR and tagging teams | A pretrained encoder to train on labeled data

How to set it up: You need Python with pip, PyTorch, the transformers library and about 2.4 GB of disk space for the F32 weights. Your audio must be resampled to 16 kHz before it goes in.

  • Python and pip
  • PyTorch and transformers
  • About 2.4 GB of free disk space
  1. Install the Hugging Face hub tool.
  2. Download the repository's files, or let transformers fetch them on first load.
  3. Resample any audio to 16 kHz.
pip install -U huggingface_hub
hf download marcoyang/spear-xlarge-speech-audio-v2

How to use it: Load the model with transformers, passing the option that allows the repository's own code to run. Then give it a mono or batched 16 kHz waveform and its length. The result holds the top-layer features, their lengths and all hidden states.

from transformers import AutoModel
import torch

model = AutoModel.from_pretrained(
    "marcoyang/spear-xlarge-speech-audio-v2",
    trust_remote_code=True,
)

device = "cuda" if torch.cuda.is_available() else "cpu"
model = model.to(device).eval()

# Dummy 10-second waveform at 16 kHz.
audio = torch.randn(1, 160000, device=device)
audio_len = torch.tensor([audio.shape[1]], device=device)

with torch.no_grad():
    outputs = model(audio, audio_len)

encoder_out = outputs["encoder_out"]       # (batch, frames, 1280)
encoder_out_lens = outputs["encoder_out_lens"]
hidden_states = outputs["hidden_states"]   # list of intermediate states

print(encoder_out.shape)
print(encoder_out_lens)
print(len(hidden_states))                  # 13 layers
print(hidden_states[-1].shape)
Tool | What it does
AutoModel.from_pretrained | Loads the encoder from the repository
encoder_out | The top-layer features for each frame
hidden_states | A list of the intermediate layer outputs

Example: You pass a ten-second clip at 16 kHz and its length to the model. It returns frame features with 1280 numbers each, their lengths, and a list of 13 hidden states you can inspect.

For newcomers and experts: If you are new to this, run the example with the dummy waveform first and print the shapes. Then try a real recording that you resampled to 16 kHz.

If you know the field, this is a self-supervised encoder, pretrained on 197k hours of English speech and general audio. It is meant as a base for tasks such as speech recognition and audio tagging. After fine-tuning, the card reports a LibriSpeech test-clean error rate of 1.6 and a test-other rate of 2.9.

16 kHz waveform goes in
Zipformer encoder processes it
Frame features come out
Fine-tune for ASR or tagging

Good to know: The card states results as the maker's own. After fine-tuning on AudioSet it reports 50.0 mAP on the full set and 39.4 on the balanced set.

Title: Audio tagging mAP after fine-tuning
AudioSet Balanced: 39.4
AudioSet Full: 50.0
  • Remote code: loading uses the option that runs the repository's own code, so read it first
  • Pretraining data: about 197k hours of unlabeled English speech and general audio
  • License: Apache 2.0
  • Cost to run: none named
  • Data it reaches: the audio you feed it locally, plus files downloaded from Hugging Face
  • Not for: out-of-the-box transcription or tagging, since it needs labeled fine-tuning

On Hugging Face, 13 November 2026

  • Task: feature extraction
  • Library: transformers
  • Parameters: 597M
  • Weights: about 2.4 GB in F32; about 298 MB at 4-bit (estimate)
  • Formats: Safetensors
  • Downloads in the last 30 days: 1,668
  • Likes: 10
  • License: apache-2.0
  • Tags: transformers, safetensors, spear, feature-extraction, huggingface, speech, audio, speech-representation-learning, audio-representation-learning, self-supervised-learning, automatic-speech-recognition, audio-tagging

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download marcoyang/spear-xlarge-speech-audio-v2

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  6 KB

1 file, 6 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
SPEAR XLarge v2 This page1,66810597Mapache-2.0
parakeet-tdt-0.6b-v3Shares speech · automatic-speech-recognition · audio529,5941,272627Mcc-by-4.0
Ming-3.0-audio-flashShares speech · automatic-speech-recognition · audio2,12287128Bmit
Parakeet RNNT 1.1BShares speech · automatic-speech-recognition · audio8,7091891.1Bcc-by-4.0
ARK-ASR-3BShares speech · automatic-speech-recognition · audio1,6551154.1Bapache-2.0
Realtime-VenusShares speech · audio · transformers2,101135—apache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Bonsai-27B-GGUF

lmstudio-community · Kit

A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…

New

Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…

New

MusicGen Small

facebook · Kit

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…

New

Similar in Developer

See all in Developer

Lexnet

alpindale · Kit

Tags every character of C source code for syntax highlighting with a tiny neural network of about 984 weights, run through a small C program. For developers an…

New

FLUX.2 Klein LoRA Studio

prithivMLmods · Kit

Try a set of LoRAs for the FLUX.2 Klein image model in a Gradio app that runs in your browser or on your own computer. Made for people who make or test AI imag…

New

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New