/ Модель

Характеристики

Лицензия
MIT
Библиотека
open_clip
Опубликована
10 авг 2026

naflexclap_base_pf8_pt16_moderntextp.160m

Классификация изображений без дообученияИзображение, текст → label3 профессии

NaFlexCLAP — аудиотекстовая модель для сопоставления звуков с описаниями и классификации аудио по текстовым меткам без дообучения.

19скачиваний за 30 дней0лайковвеса обновлены10 авг 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

naflexclap_base_pf8_pt16_moderntextp.160m — аудиотекстовая модель семейства NaFlexCLAP, представленная в карточке как чекпойнт A из сравнения четырёх вариантов. Она кодирует аудио и текст в совместимое пространство эмбеддингов, чтобы сопоставлять звуки с текстовыми описаниями и выполнять классификацию без обучения на целевых классах. Чекпойнт содержит около 160,6 млн параметров; аудиобашня имеет конфигурацию 768/12/12, текстовая башня использует двунаправленное кодирование с MAP-пулингом и нормализацией запросов и ключей. Репозиторий предоставляет веса PyTorch и safetensors; метаданные указывают библиотеку open_clip и лицензию MIT.

Модель предназначена для классификации аудиозаписей по текстовым меткам, поиска аудио по описанию и поиска описаний для аудио. В приведённых тестах она показала сильные результаты на ESC-50 и BeijingOpera; качество классификации чувствительно к формулировке текстового шаблона. README также отмечает, что результаты на некоторых наборах зависят от выравнивания текстовой и аудиобашен, поэтому следует подбирать prompt под задачу. Языковая поддержка в предоставленных данных не перечислена; текстовые описания и аудиоданные — входы, совместные эмбеддинги и оценки соответствия — выходы.

Сценарии применения

  • классификация звуков по заданным текстовым категориям
  • поиск аудиозаписей по текстовому описанию
  • поиск подходящей подписи для звукового фрагмента
  • нулевая классификация аудио на наборах вроде ESC-50
  • извлечение эмбеддингов аудио и текста для сопоставления

Ограничения

Классификация чувствительна к формулировке текстового шаблона, и результаты на разных наборах данных заметно различаются. В предоставленной карточке нет описания поддержки конкретных языков.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Model card for naflexclap_base_pf8_pt16_moderntextp.160m

Four NaFlexClap checkpoints benchmarked on the standalone CLAP suite + MAEB(beta)-30.

colconfig (--model)checkpoint runparamssamples seen
Anaflexclap_base_pf8_pt16_moderntextpnaflexclap-base-pf8-pt16-mtp_160M_..._seq512_tok131072-90M-0160.6M160M
Bnaflexclap_base_pf8_pt20_moderntextpnaflexclap-base-pf8-pt20-mtp_240M_..._seq408_tok117504-90M-0160.6M240M
Cnaflexclap_mediumd_pf4_pt20_moderntextpnaflexclap-mediumd-pf4-pt20-mtp_160M_..._seq816_tok208896-90M-0139.7M160M
Dnaflexclap_base_pf8_pt16_moderntextnaflexclap-base-pf8-pt16-mt_160M_..._seq512_tok131072-90M-0159.9M160M

Methodology

  • Standalone CLAP suite: audio uncapped (batch-max padding); classification rows show default prompt ("This is a sound of {c}.") and best-of-sweep; retrieval is A2T/T2A = text-retrieval / audio-retrieval R@5.
  • MAEB(beta)-30: --batch_size 16, PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True, uncapped except BirdCLEF capped at 60 s for comparability (A 0.604 was pre-capped; B/C/D recomputed at 60 s).
  • Precision: fp32 weights+activations, no autocast, TF32 matmuls (the MAEB encoder default). Not a precision artifact.

1. Architecture, params, geometry

Audio tower = embed/depth/heads; text tower = width/layers/heads.

A …pf8_pt16_moderntextpB …pf8_pt20_moderntextpC …mediumd_pf4_pt20_moderntextpD …pf8_pt16_moderntext
Audio tower768/12/12768/12/12512/20/8768/12/12
audio MLPGELU ×4SwiGLU ×8/3GELU ×4GELU ×4
audio gated attnnonoyesno
audio poolingMAPMAPMAPMAP
patch geom (pf/pt)pf8/pt16pf8/pt20pf4/pt20pf8/pt16
freq tokens88168
audio tokens/sec50408050
audio tokens @10 s504408816504
audio params92.9M93.0M72.0M92.9M
Text tower512/12/8512/12/8512/12/8512/12/8
text attentionbidirectionalbidirectionalbidirectionalcausal
text poolingMAPMAPMAPEOS
text MLPSwiGLUSwiGLUSwiGLUSwiGLU
text qk-normyesyesyesno
text attn/mlp biasnononoyes
text gated attnyesyesyesyes
text params67.7M67.7M67.7M67.0M
Total params160.6M160.6M139.7M159.9M
Samples seen160M240M160M160M

What each comparison isolates:

  • A vs D — text tower only (bidir+MAP+qk-norm vs causal+EOS+bias), everything else equal. Cleanest.
  • A vs C — audio trunk (768/12 ungated GELU vs 512/20 gated GELU) + geometry (pf8/pt16 vs pf4/pt20).
  • A vs B — confounded 3 ways: pt16→pt20, 160M→240M samples, audio GELU→SwiGLU. Not attributable to one.

2. Standalone CLAP suite

A2T/T2A = text-retrieval / audio-retrieval R@5.

evalABCD
ESC-50 — default prompt0.91550.92700.86650.8400
ESC-50 — best prompt0.91550.93650.91050.9060
UrbanSound — zero-shot default ‡0.77790.71770.45600.4936
UrbanSound — zero-shot best ‡0.80430.78760.77590.7072
UrbanSound — probe 10-fold (official) ‡0.85600.84140.83830.8441
AudioCaps A2T/T2A0.730/0.7350.749/0.7500.716/0.7210.678/0.664
Clotho-joined A2T/T2A0.584/0.5380.555/0.6450.603/0.5990.502/0.564
Clotho-std A2T/T2A0.445/0.5240.553/0.4680.500/0.4440.462/0.404
GTZAN — best0.7580.7690.7760.779
BirdCLEF (60 s cap)0.6040.6350.6220.577
VGGSound — top-1, best prompt ¶0.41840.48030.47720.4307
VGGSound — top-5 (default prompt) ¶0.69280.79000.78450.7518

Classification is prompt-sensitive: default "This is a sound of {c}." is pathological for some checkpoints (D UrbanSound 0.495→0.709 best; C 0.456→0.775 best). Best-prompt is the fairer signal. GTZAN best uses "This is a {c} song."/"a {c} song"; UrbanSound/ESC-50 best vary per model.

‡ UrbanSound rows use the full danavery/urbansound8K (8732 clips), matched data for zero-shot + probe.

Probe = official UrbanSound8K protocol: supervised logreg on audio embeddings, 10-fold CV on the predefined fold splits (train 9 / test 1, ×10, averaged) — literature-comparable. All four land at 0.838–0.856 (1.8 pt spread) despite zero-shot ranging 0.46–0.80, so the entire UrbanSound zero-shot spread is text-alignment / prompt, not audio quality: e.g. D probes 0.8441 (above B and C) yet its default zero-shot was 0.494 (EOS-pooling text misalignment; audio is fine). (A naive random 5-fold inflates the probe to ~0.93 via same-recording leakage — do not use it; the UrbanSound8K authors explicitly warn against reshuffling.)

VGGSound = SINGLE-label, metric is top-1/top-5 accuracy (309 classes; not mAP). Source mteb/VGGSound test (9,888 clips, audio + integer label, ready 309-class ClassLabel vocab — no reconstruction); audio uncapped; VGGSound prefers a template (bare {} worst 0.22–0.26); B/C/D peak at "This is a sound of {c}.", A at "the sound of {c}"; ordering B > C > D > A (A's text tower aligns differently, ~6 pt best-to-best). Harness validated against LAION-CLAP (laion/clap-htsat-unfused through the same pipeline = 0.234 top-1, ≈ its published VGGSound zero-shot ~0.26).


3. MAEB(beta)-30 — full per-task (main_score)

taskABCD
BeijingOpera0.91100.91940.86880.8773
BirdCLEF (60 s cap)0.60400.63500.62200.5770
CREMADPairClassification0.55050.56530.55070.5616
CREMA_D0.32090.35960.31400.3566
CREMA_DClustering0.00590.02360.00880.0176
ClothoT2ARetrieval0.38230.39710.37480.3219
CommonLanguageAgeDetection0.16950.16880.17080.1641
CommonVoiceMini21T2ARetrieval0.73960.76430.70070.5387
FSD2019Kaggle0.56390.55320.56050.5694
FleursT2ARetrieval0.46730.51710.41360.2682
GTZANAudioReranking0.83990.83660.83990.8393
GTZANGenre0.86000.85200.84900.8570
GigaSpeechT2ARetrieval0.00160.00130.00060.0021
IEMOCAPGender0.90250.89440.90570.8926
JamAltArtistA2ARetrieval0.90410.89270.90110.8931
JamAltLyricA2TRetrieval0.41020.41010.29200.2642
MACST2ARetrieval0.29520.29520.27990.2748
MInDS140.28360.32180.27070.2453
MridinghamTonic0.38270.46320.35450.3517
NMSQAPairClassification0.64540.66700.67350.6241
RavdessZeroshot0.28060.28330.30900.2715
SIBFLEURS0.17110.16970.16730.1708
SpeechCommandsZeroshotv0.020.48400.31300.45430.5231
SpokenSQuADT2ARetrieval0.22330.25000.19000.1733
UrbanSound8KT2ARetrieval †0.00880.00940.00880.0090
VehicleSoundClustering0.02510.00470.01830.0177
VoxCelebSA0.28440.30410.27080.2679
VoxPopuliAccentPairClassification0.55980.55380.54550.5580
VoxPopuliGenderClustering0.38710.19770.13220.3577
VoxPopuliLanguageID0.97200.97600.96600.9820
MEAN (30)0.45450.45330.43380.4276

† UrbanSound8KT2ARetrieval ≈ 0.009 is degenerate task data (10 labels, 1-to-1) — not a model signal.


4. Audio-representation probes (supervised, prompt-independent)

Two supervised linear probes (logreg) on the audio embeddings — isolating the audio tower from text/prompt alignment, to test whether the wide MAEB / zero-shot spreads reflect real audio-representation differences.

probe — metricABCD
VoxPopuli gender — balanced-acc0.96880.96770.96690.9695
VoxPopuli gender — AUC0.98760.98720.98710.9881
VoxPopuli gender — macro-F10.95810.95670.95510.9580
UrbanSound8K — 10-fold acc (§2)0.85600.84140.83830.8441
  • VoxPopuli gender — facebook/voxpopuli test, all 16 language configs (n = 16,991, 69% male, 1133 speakers). Speaker-disjoint GroupKFold(5) (same speaker ⇒ same gender, else a random split leaks), class_weight=balanced; read straight from the cached parquet (no datasets-arrow rebuild).
  • UrbanSound8K — the official 10-fold probe from §2 (full danavery 8732, predefined folds), shown here for the audio-representation view.

All four audio towers encode gender identically — AUC 0.987–0.988 (0.10 pt spread), bacc 0.967–0.970. The three metrics agree and rank the models as a tie (imbalance doesn't pull them apart because separability is so high; AUC = cleanest "is-it-separable" number, raw accuracy would be the trap). This is the second probe (after UrbanSound, 0.838–0.856, 1.8 pt spread) showing the audio towers are equivalent — so the large MAEB spreads on VoxPopuliGenderClustering (0.13–0.39) and UrbanSound8KT2ARetrieval were task/metric artifacts (500-sample clustering noise; degenerate 1-to-1 retrieval), not audio-representation gaps. Note D (causal/EOS) is marginally best on both probes despite its weak MAEB clustering — its weaknesses are entirely text-side. (MAEB's gender task uses mteb/mini-voxpopuli, only 500 samples across 5 langs — hence the noise.)


Key findings

  1. Text tower (A vs D, clean isolation): bidirectional+MAP > causal+EOS — MAEB 0.4545 vs 0.4276 (−2.7 pt). The loss concentrates on rich-text retrieval (CommonVoice −0.20, Fleurs −0.20, JamAltLyric −0.15, Clotho, SpokenSQuAD, MInDS14): EOS pooling compresses the whole caption into the last token; MAP keeps the full sequence retrieval needs. Even/better on short-label classification (SpeechCommands +0.04, CREMA_D +0.04). Causal+EOS is also more prompt-fragile (its weak default-prompt zero-shot undersells it).

  2. Longer training (A vs B, +confounds): helps the CLAP suite, flat on MAEB. B is best on ESC-50/AudioCaps/ Clotho/BirdCLEF but ties A on MAEB (0.4533 vs 0.4545) — two big drops (SpeechCommands −0.17, VoxPopuliGenderClustering −0.19) cancel broad gains; excluding those two, B is +1.2 pt over A on the other 28. B's SpeechCommands −0.17 is checkpoint-specific (D, also causal-free pt16, is +0.04 there).

  3. mediumd audio trunk (A vs C): −2.1 pt MAEB, but C is 17% smaller (139.7M) and the gap is task-dependent (wins BirdCLEF/GTZAN, loses speech/temporally-fine). No robust pt16-vs-pt20 effect once prompts are matched.

  4. No pt20 UrbanSound weakness and no fill/precision artifacts — UrbanSound clips are ≤4 s (~21 tokens), too short for pt to matter; per-class pt20 gains on jackhammer; pad-mode (floor/silence/repeat) moves SpeechCommands <0.003; MAEB runs fp32.

Result provenance (persistent)

  • Eval scripts (under those dirs): clapv2_cls_sweep.py, gtzan_sweep.py, birdclef_capped.py (argv model/ckpt/cap/out), urban_perclass.py, urban_durations.py, speechcmd_padmode.py, urban_full.py (full-8732 danavery: zero-shot sweep + official 10-fold probe in one embedding pass; urban_probe10.py = probe-only; urban_probe.py = old random-5-fold, superseded); vox_gender_probe.py (VoxPopuli gender, speaker-disjoint GroupKFold; VOX_LANGS env selects configs; results in voxgender.log = 5-lang, voxgender16.log = full 16-lang).

Appendix — pf8 vs pf4 (frequency tokens): confounded, but a directional signal

Can we isolate a pf effect? Not cleanly. pf4 appears in exactly one checkpoint — C (mediumd_pf4_pt20) — which differs from the base pf8 models by more than pf: a narrower trunk (mediumd 512 vs base 768) and gated audio attention (only C). pt is not a confounder here — B (base_pf8_pt20) vs A (base_pf8_pt16) isolates pt and came out ~neutral — so C-vs-base = pf4 ⊕ trunk ⊕ gating, with trunk + gating the live confounds.

But the pattern isn't random. Against A (the clean pair — pf differs, same 160M-sample training):

task typetaskC (pf4)A (pf8)Δ (C−A)
spectral / tonalBirdCLEF (60 s cap)0.6220.604+0.018
spectral / tonalGTZAN (best)0.7760.758+0.018
spectral / tonalVGGSound (top-1, best)0.47720.4184+0.059
broadband / semanticESC-50 (best)0.91050.9155−0.005
broadband / semanticAudioCaps (A2T)0.7160.730−0.014
broadband / semanticFSD50K (bare)0.36240.3895−0.027
broadband / semanticMAEB-30 (mean)0.43380.4545−0.021

Caveats (why "suggestive", not proven): gating is co-located in C and could drive (some of) the spectral wins; and the win costs 2× freq tokens — a resolution/compute trade, not free.

To settle it: one controlled run — base-pf4-pt20 (768 trunk, gating off, same recipe) vs B (base-pf8-pt20) — neutralizes trunk + gating + pt and leaves pf as the only mover. Expected from the above: small gains on spectral / tonal tasks, ~flat-to-slightly-down elsewhere, at 2× the freq-token cost.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · open_clip

Нельзя запустить

Модели OpenCLIP требуют отдельного рантайма.

Ревизия весов
300de03

0 моделей