[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116490":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":13,"stars7d":15,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":21,"topics":22,"createdAt":10,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":14,"starSnapshotCount":14,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},116490,"clap2","LAION-AI\u002Fclap2","LAION-AI","CLAP2 and LAION-Audio-XL ","http:\u002F\u002Fprojects.laion.ai\u002Fclap2\u002F",null,"Python",59,1,0,3,4,44.7,"MIT License",false,"main",true,[],"2026-11-12 20:02:30","2026-11-23 17:41:04","\u003Cdiv align=\"center\">\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Flogos\u002Flaion-audio-xl-white.svg\">\n  \u003Cimg src=\"docs\u002Fassets\u002Flogos\u002Flaion-audio-xl.svg\" alt=\"LAION Audio XL\" width=\"380\">\n\u003C\u002Fpicture>\n\n\u003Ch4>A Web-Scale Corpus and Scaling Studies for Contrastive Language‑Audio Pretraining\u003C\u002Fh4>\n\n\u003Cp>\n  \u003Ca href=\"https:\u002F\u002Fprojects.laion.ai\u002Fclap2\">\u003Cimg src=\"docs\u002Fassets\u002Freadme\u002Fbadge-project-page.svg\" alt=\"Project page\" height=\"28\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.11592\">\u003Cimg src=\"docs\u002Fassets\u002Freadme\u002Fbadge-paper.svg\" alt=\"Paper\" height=\"28\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Flaion\u002Flaion-audio-xl\">\u003Cimg src=\"docs\u002Fassets\u002Freadme\u002Fbadge-dataset.svg\" alt=\"LAION-Audio-XL\" height=\"28\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002Fmodels?search=laion\u002Fclap2\">\u003Cimg src=\"docs\u002Fassets\u002Freadme\u002Fbadge-models.svg\" alt=\"CLAP2\" height=\"28\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp>\u003Cpicture>\u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Freadme\u002Fstats-1-dark.svg\">\u003Cimg src=\"docs\u002Fassets\u002Freadme\u002Fstats-1.svg\" alt=\"365M audio-text pairs · 1.39M hours of audio, 425 sources\" width=\"380\">\u003C\u002Fpicture>\u003Cpicture>\u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Freadme\u002Fstats-2-dark.svg\">\u003Cimg src=\"docs\u002Fassets\u002Freadme\u002Fstats-2.svg\" alt=\"5 sizes, 27M–340M parameters · 53.6% MAEB-30 (CLAP2-L)\" width=\"380\">\u003C\u002Fpicture>\u003C\u002Fp>\n\n\u003C\u002Fdiv>\n\n\u003Cbr>\n\nLAION-Audio-XL is a corpus of 365M audio-text pairs (1.39M hours), selected from 1.48B audio samples of academic\ndatasets, internet datasets, web collections, Common Crawl and YouTube. CLAP2 are contrastive audio-text models in five\nsizes (27M to 340M parameters) trained on it. This repository holds the data pipeline, the training and evaluation\nrecipes, and the experiments.\n\n## Quickstart\n\n### Models\n\n```python\n# pip install \"open_clip_torch>=4.2.1\" soundfile\nimport torch, open_clip\nfrom open_clip.audio.io import load_audio\n\nhub = \"hf-hub:laion\u002Fclap2-medium-audioxl-s1B\"  # sizes: xxs, xs, small, medium, large\nmodel, preprocess = open_clip.create_model_from_pretrained(hub)\ntokenizer = open_clip.get_tokenizer(hub)\n\naudio = preprocess()(load_audio(\"dog.wav\"))  # any sample rate and channel count\ntexts = [\"A dog barks.\", \"A door slams shut.\", \"People are applauding.\"]\nwith torch.no_grad():\n    logits, _ = model.get_logits({k: v[None] for k, v in audio.items()}, tokenizer(texts))\nprint({t: round(p, 3) for t, p in zip(texts, logits.softmax(-1)[0].tolist())})\n```\n\n### Dataset\n\n```python\nfrom datasets import load_dataset\nds = load_dataset(\"laion\u002Flaion-audio-xl\", streaming=True)   # configs: open (default), sharealike, noncommercial, links\n```\n\nClips that cannot be redistributed are listed as links in the `links` config of the same repository.\nThe scripts `0_download\u002Fweb_youtube.py` and `0_download\u002Fweb_links.py` stream its rows and download and cut the clips into\nWebDataset tars, one folder per source dataset, ready as input `IN` of the pipeline.\n\n## Pipeline\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Fpipeline_dark.png\">\n  \u003Cimg alt=\"Pipeline\" src=\"docs\u002Fassets\u002Fpipeline.png\">\n\u003C\u002Fpicture>\n\n```bash\npip install -e .\nbash 1_preprocessing\u002Frun.sh IN WORK OUT   # IN: folder of WebDataset tar folders, OUT: shards of clips up to 30 s\n```\n\n`run.sh` reads `OLAF` (upstream Olaf build), `EVAL_DL` (benchmark download folder), `QWEN_ENV` and `MOSS_ENV` (captioning\nserver environments). The selection `target` and `budget` (`5_selection\u002Fconfig.yaml`) and `--holdout`\n(`7_keep_30s\u002Fexport.py`) are set for the paper's selection and must be set for your pool.\n\n| Folder | Step |\n|---|---|\n| `0_download\u002Fraw\u002F` | rebuild the collection: `sources.csv` (425 sources), download handlers, converter and text rules, plus Common Crawl WARC extraction and YouTube |\n| `1_preprocessing\u002F0_convert\u002F` | 32 kHz 16-bit mono, long recordings cut at silences |\n| `1_preprocessing\u002F1_filter_silent\u002F` | per-clip signal statistics, silence and duration gate |\n| `1_preprocessing\u002F2_deduplication\u002F` | `0_hash_matching` (PCM MD5), `1_fingerprint` (Olaf), `2_semdedup` (Dasheng, SemDeDup) |\n| `1_preprocessing\u002F3_remove_eval_data\u002F` | screen against the evaluation data of 46 datasets: identifiers, landmark and sub-band fingerprints, neural fingerprint, exhaustive search, waveform verification |\n| `1_preprocessing\u002F4_annotation\u002F` | `0_taxonomy` (4,416-node taxonomy, [classifier](https:\u002F\u002Fhuggingface.co\u002Flaion\u002Faudio-taxonomy-classifier)), `1_language`, `2_speaker`, `3_emotion`, `4_music`, `5_species` |\n| `1_preprocessing\u002F5_selection\u002F` | coverage-aware selection with exact-size trim |\n| `1_preprocessing\u002F6_captioning\u002F` | short and long captions with Qwen3-Omni and MOSS-Audio |\n| `1_preprocessing\u002F7_keep_30s\u002F` | export of the clips up to 30 s with annotations and captions |\n| `2_training\u002F` | training with OpenCLIP, warmup-stable-decay schedule |\n| `3_evaluation\u002F` | MAEB, MSEB and HEAR with CLIP_benchmark |\n| `4_experiments\u002F` | appendix studies: `segmentation`, `taxonomy_classifier`, `captioner_comparison`, `metadata_prompt`, `audio_text_ratio`, `scaling_law`, `design_studies` |\n\nExternal tools: [Olaf](https:\u002F\u002Fgithub.com\u002FJorenSix\u002FOlaf) (built separately, AGPL-3.0), `7z`, a C++17 compiler.\nCaptioning servers, training and evaluation use their own environments (see `1_preprocessing\u002F6_captioning\u002Fserve.sh`, `2_training\u002F`,\n`3_evaluation\u002F`).\n\n## Licence\n\nCode: MIT. Models: Apache 2.0. Audio and captions: per source, see the dataset card.\n\n## Citation\n\n```bibtex\n@misc{wijngaard2026laionaudioxlwebscalecorpusscaling,\n      title={LAION-Audio-XL: A Web-Scale Corpus and Scaling Studies for Contrastive Language-Audio Pretraining},\n      author={Gijs Wijngaard and Felix Förster and Ross Wightman and Marianna Nezhurina and Christoph Schuhmann and Jenia Jitsev and A. Sophia Koepke},\n      year={2026},\n      eprint={2611.11592},\n      archivePrefix={arXiv},\n      primaryClass={cs.SD},\n      url={https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.11592},\n}\n```\n","LAION-AI\u002Fclap2 是一个面向音频-文本跨模态理解的开源项目，包含大规模音频-文本对数据集 LAION-Audio-XL（3.65亿对，139万小时）及配套的 CLAP2 系列对比学习模型（5种参数规模，27M–340M）。其核心功能是支持音频与文本的联合嵌入、零样本音频分类、跨模态检索与语义匹配，采用端到端对比学习框架，兼容任意采样率与声道数的原始音频输入。技术特点包括 WebScale 数据构建流水线、模块化训练\u002F评估脚本、Hugging Face 集成及轻量级推理接口。适用于多源音频理解、无障碍内容生成、智能音视频检索、教育语音标注等需要强泛化能力的跨模态任务。",2,"2026-11-24 04:53:40","CREATED_QUERY"]