Model reference · open weights

clap2-medium-audioxl-s1B

Embeddings laion Embeddings 1 build Open weights 691 dl/mo

clap2-medium-audioxl-s1B is an open-weight embedding model from laion. clap2-medium-audioxl-s1B (FP32) weighs 611 MB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • clap2-medium-audioxl-s1B is a 153M parameter feature extraction model by laion that maps audio clips and English text into a shared embedding space.
  • It is designed for zero-shot audio classification, audio-text retrieval, and general audio embeddings, with a 256 token context length.
  • The model is licensed under apache-2.0 and supports English text.

Summary of the laion/clap2-medium-audioxl-s1B model card, 2026-11-19

What it is

Released bylaion
Released2026-10-26
Parameters153M
VRAM611 MB for the weights

What it runs on

Memory and cards for clap2-medium-audioxl-s1B (FP32)

611 MBweights, file size
1.1 GBruntime overhead
CardRunsMemory
RTX 3060 12 GBfits11.6 GB
RTX 4060 Ti 16 GBfits15.4 GB
RTX 3090 24 GBfits23.4 GB
RTX 4090 24 GBfits23.4 GB
RTX 5090 32 GBfits31.0 GB
L40S 48 GBfits44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

From the model card

What laion says about clap2-medium-audioxl-s1B

Read the model card

CLAP2-M is one of the five CLAP2 contrastive audio-text models (27M to 340M parameters), in OpenCLIP and Transformers format. An audio tower and a text tower map audio clips and English text into a shared embedding space, so the models can be used for zero-shot audio classification, audio-text retrieval, and as general audio embeddings. All models were trained from scratch on LAION-Audio-XL, a corpus of 366M audio-text pairs.

The audio tower is a NaFlex vision transformer over log-mel patches. It takes audio of any length (no fixed-size crop or padding to a fixed length) and produces one embedding per clip.

Each model size is a separate repository (see the table below).

Paper: arXiv:2611.11592 · Code: LAION-AI/clap2 · Project page: projects.laion.ai/clap2

Models

All models were trained for 1,024M samples seen (WSD learning-rate schedule, last checkpoint). Parameter counts are for both towers.

ModelRepositoryParamsMAEB-30HEAR-17MSEB
Llaion/clap2-large-audioxl-s1B340.1M53.681.930.3
M (this model)laion/clap2-medium-audioxl-s1B152.8M52.381.429.4
Slaion/clap2-small-audioxl-s1B103.9M51.881.829.8
XSlaion/clap2-xs-audioxl-s1B48.3M49.180.627.6
XXSlaion/clap2-xxs-audioxl-s1B27.3M46.279.128.0

Scores are in %, higher is better. MAEB-30 is the mean over the 30 tasks of the Massive Audio Embedding Benchmark. The tasks cover speech, music and sound, and the task types classification, zero-shot classification, pair classification, clustering and retrieval. HEAR-17 is the mean over 17 HEAR tasks (all except Beehive and Maestro 5h). MSEB is the mean over 62 English MSEB scores. For the exact protocol, per-domain and per-task-type scores, and comparisons with other audio-text models, see the paper.

Quick start

pip install "open_clip_torch>=4.2.1" soundfile
import torch, open_clip
from open_clip.audio.io import load_audio

hub = "hf-hub:laion/clap2-medium-audioxl-s1B"
model, preprocess = open_clip.create_model_from_pretrained(hub)
tokenizer = open_clip.get_tokenizer(hub)

audio = preprocess()(load_audio("dog.wav"))  # any sample rate and channel count
texts = ["A dog barks.", "A door slams shut.", "People are applauding."]
with torch.no_grad():
    logits, _ = model.get_logits({k: v[None] for k, v in audio.items()}, tokenizer(texts))
print({t: round(p, 3) for t, p in zip(texts, logits.softmax(-1)[0].tolist())})

Output for an FSD50K clip of a dog barking: {'A dog barks.': 1.0, 'A door slams shut.': 0.0, 'People are applauding.': 0.0}. For embeddings, use model.encode_audio({k: v[None] for k, v in audio.items()}, normalize=True) and model.encode_text(tokenizer(texts), normalize=True).

Several clips at once

Pad the patch dictionaries to the longest clip. patch_valid masks the padding, so the embeddings are the same as when each clip is encoded alone:

from torch.nn.utils.rnn import pad_sequence
items = [preprocess()(load_audio(f)) for f in ["dog.wav", "rain.wav"]]
batch = {k: pad_sequence([x[k] for x in items], batch_first=True) for k in items[0]}
with torch.no_grad():
    audio_embeds = model.encode_audio(batch, normalize=True)

Writing text prompts

For zero-shot classification, describe each class with several short captions in full sentences, in the style of the training captions. For example, "A cello plays a slow melody." or "A man gives a lecture." Cover the different kinds of sound in the class. Avoid bare labels ("speech", "dog") and negations ("no background music"). Average the prompt embeddings of each class. Before taking the top class, subtract each class's mean score over the clips.

Input notes

  • The input audio can have any sample rate and any number of channels. preprocess averages multi-channel audio to mono and resamples it to 32 kHz. The front end is a 128-bin log-mel spectrogram (50 Hz to 16 kHz, 320-sample hop), cut into non-overlapping 16x16 patches. This gives 50 tokens per second of audio.
  • The models were trained on clips of at most 30 s (length buckets of 6.9, 9.0, 13.0, 22.6 and 30.1 s). The benchmark scores above use only the first 30 s of each clip. The model accepts longer clips, but this is not evaluated. Split long recordings into segments of up to 30 s and average or compare the segment embeddings. Cost grows quadratically with length (full attention).
  • The text tower takes English text. The tokenizer is case-sensitive (GPT-2 style BPE, 256-token context) and the training captions use normal sentence case. Text written entirely in capitals (for example some speech transcripts) tokenizes into rare pieces and scores worse. The paper's evaluation lowercases a text if it is all capitals and has at least three words. Do the same for such inputs, or write captions in normal case.
  • Both towers are used in float32 here. Training used bf16 autocast.

Intended use and limitations

Intended use: zero-shot audio tagging and classification, audio-text retrieval, audio embeddings for downstream classifiers, and data curation (for example filtering or ranking audio by text queries). The small models are meant to be cheap to run.

Limitations:

  • Text is English only. The corpus contains speech in many languages, but captions are English. Multilingual text queries are not supported.
  • The training data is about 45% speech and 22% music by predicted label, so speech and music are better covered than rare sound events. Sound-event scores saturated earlier

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms