AI SeedbankHelp preserve open and free AI for humanity's future

← All models

facebook_w2v-bert-2.0

facebook · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: mit language:

  • af
  • am
  • ar
  • as
  • az
  • be
  • bn
  • bs
  • bg
  • ca
  • cs
  • zh
  • cy
  • da
  • de
  • el
  • en
  • et
  • fi
  • fr
  • or
  • om
  • ga
  • gl
  • gu
  • ha
  • he
  • hi
  • hr
  • hu
  • hy
  • ig
  • id
  • is
  • it
  • jv
  • ja
  • kn
  • ka
  • kk
  • mn
  • km
  • ky
  • ko
  • lo
  • ln
  • lt
  • lb
  • lg
  • lv
  • ml
  • mr
  • mk
  • mt
  • mi
  • my
  • nl
  • nb
  • ne
  • ny
  • oc
  • pa
  • ps
  • fa
  • pl
  • pt
  • ro
  • ru
  • sk
  • sl
  • sn
  • sd
  • so
  • es
  • sr
  • sv
  • sw
  • ta
  • te
  • tg
  • tl
  • th
  • tr
  • uk
  • ur
  • uz
  • vi
  • wo
  • xh
  • yo
  • ms
  • zu
  • ary
  • arz
  • yue
  • kea inference: false

W2v-BERT 2.0 speech encoder

We are open-sourcing our Conformer-based W2v-BERT 2.0 speech encoder as described in Section 3.2.1 of the paper, which is at the core of our Seamless models.

This model was pre-trained on 4.5M hours of unlabeled audio data covering more than 143 languages. It requires finetuning to be used for downstream tasks such as Automatic Speech Recognition (ASR), or Audio Classification.

Model Name #params checkpoint
W2v-BERT 2.0 600M checkpoint

This model and its training are supported by 🤗 Transformers, more on it in the docs.

🤗 Transformers usage

This is a bare checkpoint without any modeling head, and thus requires finetuning to be used for downstream tasks such as ASR. You can however use it to extract audio embeddings from the top layer with this code snippet:

from transformers import AutoFeatureExtractor, Wav2Vec2BertModel
import torch
from datasets import load_dataset

dataset = load_dataset("hf-internal-testing/librispeech_asr_demo", "clean", split="validation")
dataset = dataset.sort("id")
sampling_rate = dataset.features["audio"].sampling_rate

processor = AutoProcessor.from_pretrained("facebook/w2v-bert-2.0")
model = Wav2Vec2BertModel.from_pretrained("facebook/w2v-bert-2.0")

# audio file is decoded on the fly
inputs = processor(dataset[0]["audio"]["array"], sampling_rate=sampling_rate, return_tensors="pt")
with torch.no_grad():
    outputs = model(**inputs)

To learn more about the model use, refer to the following resources:

Seamless Communication usage

This model can be used in Seamless Communication, where it was released.

Here's how to make a forward pass through the voice encoder, after having completed the installation steps:

import torch

from fairseq2.data.audio import AudioDecoder, WaveformToFbankConverter
from fairseq2.memory import MemoryBlock
from fairseq2.nn.padding import get_seqs_and_padding_mask
from pathlib import Path
from seamless_communication.models.conformer_shaw import load_conformer_shaw_model


audio_wav_path, device, dtype = ...
audio_decoder = AudioDecoder(dtype=torch.float32, device=device)
fbank_converter = WaveformToFbankConverter(
    num_mel_bins=80,
    waveform_scale=2**15,
    channel_last=True,
    standardize=True,
    device=device,
    dtype=dtype,
)
collater = Collater(pad_value=1)

model = load_conformer_shaw_model("conformer_shaw", device=device, dtype=dtype)
model.eval()

with Path(audio_wav_path).open("rb") as fb:
    block = MemoryBlock(fb.read())

decoded_audio = audio_decoder(block)
src = collater(fbank_converter(decoded_audio))["fbank"]
seqs, padding_mask = get_seqs_and_padding_mask(src)

with torch.inference_mode():
  seqs, padding_mask = model.encoder_frontend(seqs, padding_mask)
  seqs, padding_mask = model.encoder(seqs, padding_mask)

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:9e48c5327de14f2a4e6a0287efcac6b3f241d0f4&dn=facebook_w2v-bert-2.0

Open magnet in torrent client · infohash 9e48c5327de14f2a4e6a0287efcac6b3f241d0f4

Files & hashes

PathSizesha1sha256
README.md4.7 KB (4,792 B)23115b6e9bf0776b4cc3d480fde0a90a2ff33011478afeacb3b4ce0d86b361f099416d28a7e7673ade31775c0f85f396979b7fc2
config.json1.8 KB (1,874 B)a383a594dac18459628cd2837168cd276342a31af5572bd5998b68182e9c328a43127ed21fed687f6910497136b91a4e3b0e3675
conformer_shaw.pt2.17 GB (2,329,131,983 B)3826a602d376ef5096edf153f2244c6c0bb55a8d8310b4270a5b499e92e20c859892dbf7429619347debb5f8feba79eb88f99b4f
model.safetensors2.16 GB (2,322,063,736 B)86ae2cf30e46e1aa3c78fcf8052feead24c240e6eb890c9660ed6e3414b6812e27257b8ce5454365d5490d3ad581ea60b93be043
preprocessor_config.json275 B (275 B)5db61951cdf5edab6337fd84ee619500c27aaa3d8e6281aad64f97e40534135a59dcc5d33571efae376f2a25adf5551951897ab4

Cite this release

Canonical URL
https://aiseedbank.org/models/facebook_w2v-bert-2.0/
Slug
facebook_w2v-bert-2.0
Infohash
9e48c5327de14f2a4e6a0287efcac6b3f241d0f4
License
mit
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: facebook_w2v-bert-2.0.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryfacebook/w2v-bert-2.0
Revision (pinned)da985ba0987f70aaeb84a80f2851cfac8c697a7b
Fetched at2026-09-03T22:57:09Z
License at fetchmit
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T22:58:13Z

mit4.33 GB (4,651,202,660 bytes)transformerssafetensorswav2vec2-bertfeature-extractionaryarzyuekea92 languages (af, am, ar …)paper: 2312.05187