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

← All models

laion_clap-htsat-fused

laion · 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: apache-2.0 language:

  • en pipeline_tag: audio-classification tags:
  • zero-shot audio classification
  • zero-shot audio retrieval

Model card for CLAP

Model card for CLAP: Contrastive Language-Audio Pretraining

Dataset

LAION-CLAP was trained on LAION-audio-630k

Table of Contents

  1. TL;DR
  2. Model Details
  3. Usage
  4. Uses
  5. Citation

TL;DR

The abstract of the paper states that:

Contrastive learning has shown remarkable success in the field of multimodal representation learning. In this paper, we propose a pipeline of contrastive language-audio pretraining to develop an audio representation by combining audio data with natural language descriptions. To accomplish this target, we first release LAION-Audio-630K, a large collection of 633,526 audio-text pairs from different data sources. Second, we construct a contrastive language-audio pretraining model by considering different audio encoders and text encoders. We incorporate the feature fusion mechanism and keyword-to-caption augmentation into the model design to further enable the model to process audio inputs of variable lengths and enhance the performance. Third, we perform comprehensive experiments to evaluate our model across three tasks: text-to-audio retrieval, zero-shot audio classification, and supervised audio classification. The results demonstrate that our model achieves superior performance in text-to-audio retrieval task. In audio classification tasks, the model achieves state-of-the-art performance in the zero-shot setting and is able to obtain performance comparable to models' results in the non-zero-shot setting. LAION-Audio-630K and the proposed model are both available to the public.

Usage

You can use this model for zero shot audio classification or extracting audio and/or textual features.

Uses

Perform zero-shot audio classification

Using pipeline

from datasets import load_dataset
from transformers import pipeline

dataset = load_dataset("ashraq/esc50")
audio = dataset["train"]["audio"][-1]["array"]

audio_classifier = pipeline(task="zero-shot-audio-classification", model="laion/clap-htsat-fused")
output = audio_classifier(audio, candidate_labels=["Sound of a dog", "Sound of vaccum cleaner"])
print(output)
>>> [{"score": 0.999, "label": "Sound of a dog"}, {"score": 0.001, "label": "Sound of vaccum cleaner"}]

Run the model:

You can also get the audio and text embeddings using ClapModel

Run the model on CPU:

from datasets import load_dataset
from transformers import ClapModel, ClapProcessor

librispeech_dummy = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
audio_sample = librispeech_dummy[0]

model = ClapModel.from_pretrained("laion/clap-htsat-fused")
processor = ClapProcessor.from_pretrained("laion/clap-htsat-fused")

inputs = processor(audios=audio_sample["audio"]["array"], return_tensors="pt")
audio_embed = model.get_audio_features(**inputs)

Run the model on GPU:

from datasets import load_dataset
from transformers import ClapModel, ClapProcessor

librispeech_dummy = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation")
audio_sample = librispeech_dummy[0]

model = ClapModel.from_pretrained("laion/clap-htsat-fused").to(0)
processor = ClapProcessor.from_pretrained("laion/clap-htsat-fused")

inputs = processor(audios=audio_sample["audio"]["array"], return_tensors="pt").to(0)
audio_embed = model.get_audio_features(**inputs)

Citation

If you are using this model for your work, please consider citing the original paper:

@misc{https://doi.org/10.48550/arxiv.2211.06687,
  doi = {10.48550/ARXIV.2211.06687},
  
  url = {https://arxiv.org/abs/2211.06687},
  
  author = {Wu, Yusong and Chen, Ke and Zhang, Tianyu and Hui, Yuchen and Nezhurina, Marianna and Berg-Kirkpatrick, Taylor and Dubnov, Shlomo},
  
  keywords = {Sound (cs.SD), Audio and Speech Processing (eess.AS), FOS: Computer and information sciences, FOS: Computer and information sciences, FOS: Electrical engineering, electronic engineering, information engineering, FOS: Electrical engineering, electronic engineering, information engineering},
  
  title = {Large-scale Contrastive Language-Audio Pretraining with Feature Fusion and Keyword-to-Caption Augmentation},
  
  publisher = {arXiv},
  
  year = {2022},
  
  copyright = {Creative Commons Attribution 4.0 International}
}

Magnet link

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

magnet:?xt=urn:btih:8434bc476fcf2958fdfd8e68b449df621694cfd2&dn=laion_clap-htsat-fused

Open magnet in torrent client · infohash 8434bc476fcf2958fdfd8e68b449df621694cfd2

Files & hashes

PathSizesha1sha256
README.md4.5 KB (4,610 B)dddbc6cf6bec11537cf90dfa9c2006f51c0011da138b3008ffe66c36da23ca1dd774940a2ccbd71cb995ad6bbcdfc5dceb91b7fe
config.json5.3 KB (5,422 B)7907d3cde2ed499c697371287e288aa2beded3f9b1d63489dc5061da229c23d2b11e9ca731639574449f82319fabb01da7fcf480
merges.txt445.7 KB (456,356 B)6636bda4a1fd7a63653dffb22683b8162c8de956fe36cab26d4f4421ed725e10a2e9ddb7f799449c603a96e7f29b5a3c82a95862
model.safetensors586.0 MB (614,496,152 B)18792fc6404a55632523a937296080e75b1c86863f648de6d030e17494be455d323b8d191233fbae0c7ce0ba745fd21a926a63a6
preprocessor_config.json537 B (537 B)d439910a3317697a54f06ad5083af1810c27d803072bdd9ba771b6d213c56f15c0f765e33192b92e481581b52271cf16c9013684
pytorch_model.bin586.1 MB (614,596,545 B)cccff3f7a972ba09a706961624a54a4a8141594d1ed5d0215d887551ddd0a49ce7311b21429ebdf1e6a129d4e68f743357225253
special_tokens_map.json280 B (280 B)d5698132694f4f1bcff08fa7d937b1701812598e06e405a36dfe4b9604f484f6a1e619af1a7f7d09e34a8555eb0b77b66318067f
tokenizer.json2.0 MB (2,108,746 B)99f518e1ee65361b4d772c6f805508dbf30cfd8b77ef92283d67f0d97e1454909a964afcbfa2019f0fb9f18f8e88d5c25c3ba729
tokenizer_config.json384 B (384 B)058e2e071e2a76af9dc9a10940053477ce8329d3377f91458f7729a4574a84c77bdce67dbc3c58c1a345a29bbf8c4eb1307948a3
vocab.json779.6 KB (798,293 B)4ebe4bb3f3114daf2e4cc349f24873a1175a35d7ed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e

Cite this release

Canonical URL
https://aiseedbank.org/models/laion_clap-htsat-fused/
Slug
laion_clap-htsat-fused
Infohash
8434bc476fcf2958fdfd8e68b449df621694cfd2
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: laion_clap-htsat-fused.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorylaion/clap-htsat-fused
Revision (pinned)365dea6ef167def6676140ed93bbc43f84dabb28
Fetched at2026-09-04T01:29:57Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T01:30:11Z

apache-2.01.15 GB (1,232,467,325 bytes)transformerspytorchsafetensorsclapfeature-extractionzero-shot audio classificationzero-shot audio retrievalaudio-classificationendpoints_compatible1 language (en)paper: 2211.06687