Model reference · open weights
clap-htsat-unfused is an open-weight embedding model from laion, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.
About
Model card for CLAP Model card for CLAP: Contrastive Language-Audio Pretraining Table of Contents 0. TL;DR 1. Model Details 2. Usage 3. Uses 4. 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 Run the model: You can also get the audio and text embeddings using ClapModel Run the model on CPU: Run the model on GPU: Citation If you are using this model for your work, please consider citing the original paper:
Summarised from the published model card. Read the full card on the HuggingFace links below.
Specifications
| Maker | laion |
|---|---|
| Type | Embedding models |
| Variants | 1 |
| Runs with | transformers |
| Released | 2023-02-16 |
| Popularity | 685k downloads / month |
| Likes | 79 |
| Licence | Open weights |
How it works
Variants
Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.
| Variant | Params | Precision | VRAM | Fits 16 GB | Weights |
|---|---|---|---|---|---|
| clap-htsat-unfused | — | BF16 | — | — | Weights ↗ |
Using it via the API
Once AxForge deploys clap-htsat-unfused for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (clap-htsat-unfused below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/embeddings \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"clap-htsat-unfused","input":"text to embed"}'
Licence
Open weights under apache-2.0 — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗
Explore