audeering_wav2vec2-large-robust-6-ft-age-gender
audeering · View on Hugging Face ↗
Get this model
Seeders: 1 · Leechers: 0
Observed 2026-09-02T13:56:39Z via announce.aitorrent.org:7070.
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.
datasets:
- agender
- mozillacommonvoice
- timit
- voxceleb2 inference: true tags:
- speech
- audio
- wav2vec2
- audio-classification
- age-recognition
- gender-recognition license: cc-by-nc-sa-4.0
Model for Age and Gender Recognition based on Wav2vec 2.0 (6 layers)
The model expects a raw audio signal as input and outputs predictions for age in a range of approximately 0...1 (0...100 years) and gender expressing the probababilty for being child, female, or male. In addition, it also provides the pooled states of the last transformer layer. The model was created by fine-tuning Wav2Vec2-Large-Robust on aGender, Mozilla Common Voice, Timit and Voxceleb 2. For this version of the model we only trained the first six transformer layers. An ONNX export of the model is available from doi:10.5281/zenodo.7761387. Further details are given in the associated paper and tutorial.
Usage
import numpy as np
import torch
import torch.nn as nn
from transformers import Wav2Vec2Processor
from transformers.models.wav2vec2.modeling_wav2vec2 import (
Wav2Vec2Model,
Wav2Vec2PreTrainedModel,
)
class ModelHead(nn.Module):
r"""Classification head."""
def __init__(self, config, num_labels):
super().__init__()
self.dense = nn.Linear(config.hidden_size, config.hidden_size)
self.dropout = nn.Dropout(config.final_dropout)
self.out_proj = nn.Linear(config.hidden_size, num_labels)
def forward(self, features, **kwargs):
x = features
x = self.dropout(x)
x = self.dense(x)
x = torch.tanh(x)
x = self.dropout(x)
x = self.out_proj(x)
return x
class AgeGenderModel(Wav2Vec2PreTrainedModel):
r"""Speech emotion classifier."""
def __init__(self, config):
super().__init__(config)
self.config = config
self.wav2vec2 = Wav2Vec2Model(config)
self.age = ModelHead(config, 1)
self.gender = ModelHead(config, 3)
self.init_weights()
def forward(
self,
input_values,
):
outputs = self.wav2vec2(input_values)
hidden_states = outputs[0]
hidden_states = torch.mean(hidden_states, dim=1)
logits_age = self.age(hidden_states)
logits_gender = torch.softmax(self.gender(hidden_states), dim=1)
return hidden_states, logits_age, logits_gender
# load model from hub
device = 'cpu'
model_name = 'audeering/wav2vec2-large-robust-6-ft-age-gender'
processor = Wav2Vec2Processor.from_pretrained(model_name)
model = AgeGenderModel.from_pretrained(model_name)
# dummy signal
sampling_rate = 16000
signal = np.zeros((1, sampling_rate), dtype=np.float32)
def process_func(
x: np.ndarray,
sampling_rate: int,
embeddings: bool = False,
) -> np.ndarray:
r"""Predict age and gender or extract embeddings from raw audio signal."""
# run through processor to normalize signal
# always returns a batch, so we just get the first entry
# then we put it on the device
y = processor(x, sampling_rate=sampling_rate)
y = y['input_values'][0]
y = y.reshape(1, -1)
y = torch.from_numpy(y).to(device)
# run through model
with torch.no_grad():
y = model(y)
if embeddings:
y = y[0]
else:
y = torch.hstack([y[1], y[2]])
# convert to numpy
y = y.detach().cpu().numpy()
return y
print(process_func(signal, sampling_rate))
# Age child female male
# [[ 0.3079211 0.00848487 0.0051472 0.9863679 ]]
print(process_func(signal, sampling_rate, embeddings=True))
# Pooled hidden states of last transformer layer
# [[ 0.00409924 0.00365688 0.02392936 ... 0.02349018 -0.13294911
# 0.1538802 ]]
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:e599a5818ab09853c2eafb09db4fb4cf53d5119c&dn=audeering_wav2vec2-large-robust-6-ft-age-genderOpen magnet in torrent client · infohash e599a5818ab09853c2eafb09db4fb4cf53d5119c
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| LICENSE | 20.4 KB (20,850 B) | 7cdbe0b482f604a06a0988dad8877ae8d9257f7d | e66c269d4819aaab34b49ef5220c4ddab6756f21bb5180761a4eb8561f2b7bbd |
| README.md | 4.1 KB (4,167 B) | 6e91651d9e39774bb3f6b6c7e5cc5e67e0d65dfa | 3e2a8c479d89a94303d0da990f4cd38fd1e966eeaa43c2275f6a610d8c5ef3f4 |
| config.json | 2.3 KB (2,316 B) | 2f42885f4f7896d7d949b33f1d98dbe2991d4a3f | 62f7609a0b78cf63c63ad9e6030e5b767be6aee628c44f5f8e11263b35bb85f2 |
| model.safetensors | 346.4 MB (363,257,080 B) | e74f9fecc880f26245b4a4594a7007d3646d99e2 | 4a0f33264b690efcdee7d6cb803404486f9f93fd58355bbb0e6aa6f40db1e2e8 |
| preprocessor_config.json | 214 B (214 B) | 73caa151574001d3d495fae897e1d38968249712 | 60ca5a31e13f69ee2fbf147504c8676db5f6398fd7a6b12294341dff838edfcf |
| pytorch_model.bin | 346.5 MB (363,286,597 B) | 1fc7ceae47bfec11457afc6f2e678fa05d8de657 | 2c63c89137069f0d141a6800a6dbd88c0f02e5443a32f08c30aa511fc011ea9b |
| vocab.json | 2 B (2 B) | 9e26dfeeb6e641a33dae4961196235bdb965b21b | 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/audeering_wav2vec2-large-robust-6-ft-age-gender/
- Slug
- audeering_wav2vec2-large-robust-6-ft-age-gender
- Infohash
- e599a5818ab09853c2eafb09db4fb4cf53d5119c
- License
- cc-by-nc-sa-4.0
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: audeering_wav2vec2-large-robust-6-ft-age-gender.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | audeering/wav2vec2-large-robust-6-ft-age-gender |
|---|---|
| Revision (pinned) | a681b720dafd12b9dd7b6d13fb437c7b6b197fd3 |
| Fetched at | 2026-09-02T05:42:26Z |
| License at fetch | cc-by-nc-sa-4.0 |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-02T05:42:35Z
cc-by-nc-sa-4.0non-commercial use only692.9 MB (726,571,226 bytes)transformerspytorchsafetensorswav2vec2speechaudioaudio-classificationage-recognitiongender-recognitionendpoints_compatiblepaper: 2306.16962