/ Модель

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

Лицензия
Apache 2.0
Базовая модель
CARD-Qwen3-4B-Phase1
Опубликована
16 сен 2026

CARD-Qwen3-4B-AudioCaps

Распознавание речиАудио, текст → текст

Модель на базе Qwen3-4B создаёт англоязычные текстовые описания коротких аудиозаписей окружающих звуков без отдельного аудиоэнкодера при выводе.

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

Бенчмарки

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

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

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

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

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

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

CARD-Qwen3-4B-AudioCaps — модель автоматического описания звуков, разработанная для исследования encoder-free аудиоязыковых систем и созданная на основе CARD-Qwen3-4B-Phase1. Она принимает короткий аудиоклип и генерирует текстовую подпись на английском языке; речь может быть описана, но не транскрибируется.

В основе модели лежит Qwen3-4B с дообученными и объединёнными LoRA-весами, а также обученный аудиопроектор на 13,2 млн параметров. Проектор преобразует лог-мел-спектрограмму примерно в 250 аудиотокенов. При выводе отдельный аудиоэнкодер и учитель CLAP не используются. Модель дообучена на AudioCaps; в карточке также указаны Clotho, WavCaps и другие наборы данных. Репозиторий содержит веса safetensors в формате bf16 для языковой модели и fp32 для проектора. Лицензия — Apache-2.0.

Модель предназначена для описания коротких, примерно 10-секундных клипов с окружающими звуками. На тесте AudioCaps в статье сообщаются результаты CIDEr-D 55,4, SPIDEr 35,2, SPICE 15,1 и METEOR 21,2. Качество ниже, чем у сравниваемой системы с сохранённым CLAP-энкодером; подписи могут быть неточными или слишком общими. Поведение на длинных и очень тихих записях не проверено, а более длинные клипы обрезаются. Не подходит для распознавания речи и критически важных систем мониторинга.

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

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

Ограничения

Модель не транскрибирует речь, обучена описывать клипы около 10 секунд, а длинные записи обрезаются; работа с очень тихим аудио не проверена. Подписи могут быть ошибочными или общими, а качество ниже, чем у сравниваемой системы с CLAP-энкодером; модель не следует использовать для критически важных систем мониторинга.

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

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

Открыть на Hugging Face

CARD: encoder-free audio captioning

CARD-Qwen3-4B-AudioCaps

Encoder-free audio captioning model from the paper "CARD: Cross-component Audio Representation Distillation for Encoder-Free Audio Captioning" (IEEE SLT 2026). Code: https://github.com/KarthikKolluriKB/CARD

CARD removes the audio encoder at inference. A 13.2 M-parameter convolutional projector turns a log-Mel spectrogram into about 250 audio tokens, which a Qwen3-4B language model (with LoRA adapters merged into its weights) reads to write the caption. During training a frozen CLAP-HTSAT teacher was distilled into the model by component: its early, perceptual stages into the projector and its later, semantic stages into the LLM. The teacher and all distillation heads are gone at inference.

This repo is the CARD* model fine-tuned (Phase 2) on AudioCaps, the headline row of Table II in the paper. Related repos:

  • KarthikKB1998/CARD-Qwen3-4B-Clotho: the same Phase 1 checkpoint fine-tuned on Clotho.
  • KarthikKB1998/CARD-Qwen3-4B-Phase1: the shared Phase 1 checkpoint (before Phase 2).

CARD training and inference pipelines

CARD training (left) and inference (right) pipelines (paper Fig. 1). A frozen CLAP teacher's early, perceptual stages are distilled into the audio projector and its later, semantic stages into the LLM's LoRA adapters; at inference only the projector and the merged LLM remain.

What is in this repo

PathWhatSize
llm/Qwen3-4B with the Phase 1 and Phase 2 LoRA updates merged in (bf16, safetensors) + tokenizer~8.0 GB
audio_projector.safetensorsThe audio projector (Conv1d 64->512 s2, Conv1d 512->2560 s2, LayerNorm, Linear 2560->2560, learned positions), fp3253 MB
adapters/phase1_lora/Phase 1 LoRA adapter (PEFT format, r=16, alpha=16, all 7 linear projections x 36 blocks)66 MB
adapters/phase2_lora/Phase 2 LoRA adapter trained on top of the Phase-1-merged backbone66 MB
card_config.jsonFront end, projector, LoRA, prompt and decoding settings read by the loader
generation_config.jsonBeam search 4, max 40 new tokens, no sampling (overrides Qwen3 defaults)

You need only llm/ and audio_projector.safetensors to run the model. The adapters are provided so the merged weights can be rebuilt from Qwen/Qwen3-4B (Phase 1 merged first, then Phase 2) and so the two phases can be studied separately.

Quick start

Try it without installing anything: listen to sample clips on the demo page, or caption your own audio in the Colab notebook.

pip install git+https://github.com/KarthikKolluriKB/CARD

On NVIDIA RTX 50-series (Blackwell) GPUs, install the CUDA 12.8 build of PyTorch first (tested on an RTX 5090, where the model gives the same captions as the paper run):

pip install torch==2.7.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu128
pip install git+https://github.com/KarthikKolluriKB/CARD
from card import load_card

model = load_card("KarthikKB1998/CARD-Qwen3-4B-AudioCaps", device="cuda")
print(model.caption("dog_barking.wav"))

To rebuild the merged weights from the base model and the two adapters instead of downloading them:

model = load_card("KarthikKB1998/CARD-Qwen3-4B-AudioCaps", mode="adapters", device="cuda")

Input contract: any sample rate, mono (stereo is averaged), any length. The front end resamples to 16 kHz, crops or zero-pads to 10 s, then resamples to 48 kHz for the CLAP log-Mel spectrogram, exactly as in training; clips longer than 10 s are truncated. Output is one English sentence. Decoding is beam search (4 beams, 40 tokens) with the prompt "Describe this audio." under the captioning system prompt stored in card_config.json; enable_thinking=False is applied to the Qwen3 chat template.

Requirements: torch==2.7.1, transformers==4.53.1, peft==0.18.1 (only for mode="adapters"), torchaudio, soundfile. Peak GPU memory is 8.4 GB at batch 1 with beam 4 (paper Section IV-B).

Results

AudioCaps test, beam 4, all values in % (paper Table II). SLAM-AAC keeps the frozen CLAP encoder at inference; the CARD variants remove it and differ only in where the teacher is distilled.

ModelEncoder at inferenceCIDEr-DSPIDErSPICEMETEOR
SLAM-AAC (CLAP encoder + LoRA), encoder-kept referenceyes66.441.917.323.3
CARD* (this repo)no55.435.215.121.2
Proj Early (early stages -> projector only)no52.533.314.120.1
LLM Distill (teacher -> LLM only)no43.527.812.218.4
No Distillno43.227.912.618.4

All numbers are as reported in the paper. CARD*'s gains over no distillation, LLM-only distillation and mismatched projector supervision are statistically significant on both datasets (paired bootstrap over per-clip CIDEr-D, 10,000 resamples).

Training summary

  • Backbone: Qwen3-4B, frozen. LoRA r=16, alpha=16, dropout 0, on q/k/v/o/gate/up/down of all 36 blocks. Audio tokens attend to each other bidirectionally during training; text stays causal.
  • Teacher (Phase 1 only): laion/clap-htsat-fused, frozen. Its four HTSAT stage outputs (192-d, 384-d, 768-d, 768-d) are the distillation targets. Stages 0-1 supervise the projector through two small MLP heads (mean-pooled cosine loss). Stages 2-3 supervise the LLM's audio-token hidden states from blocks 0-8 and 9-11 through RMSNorm + linear heads (token-level cosine loss, teacher interpolated along time). Loss: L_cap + L_proj + L_llm with both weights 1.
  • Phase 1 (1 epoch): WavCaps, Auto-ACD, AudioCaps, Clotho, MACS captions (about 276 K) sampled by size, plus 50 K Infinity-Instruct text-only batches. AdamW, betas (0.9, 0.95), effective batch 64, lr 2e-4 constant with 200 warmup steps, grad clip 1.0.
  • Phase 2 (1 epoch): teacher and heads removed, Phase 1 LoRA merged, fresh LoRA (r=16, alpha=16) and the projector fine-tuned on the prompt-expanded AudioCaps training set (225,890 pairs) with the captioning loss only, lr 2e-5 cosine with 50 warmup steps. Then the Phase 2 LoRA is merged.
  • Hardware: 2 x A6000 48 GB.

Model tree: Qwen/Qwen3-4B -> CARD-Qwen3-4B-Phase1 -> CARD-Qwen3-4B-AudioCaps (this repo).

Intended use and limitations

  • Intended for research on encoder-free audio-language models and for captioning short environmental-sound clips in English. Not a speech recogniser: speech is described ("a man speaks"), not transcribed.
  • Trained on captions of 10 s clips; behaviour on longer or very quiet audio is untested and longer clips are truncated.
  • The model inherits the biases of its caption datasets (YouTube-sourced AudioCaps, Freesound-sourced Clotho) and of the Qwen3-4B backbone. Captions can be wrong or generic; do not use for safety-critical monitoring.
  • Performance is below encoder-kept systems (66.4 vs 55.4 CIDEr-D); the contribution is the encoder-free operating point and the distillation placement result, not state of the art.

License

Weights and code are released under Apache-2.0. The backbone Qwen/Qwen3-4B and the teacher laion/clap-htsat-fused are also Apache-2.0. No training audio is redistributed here.

Citation

@inproceedings{kolluri2026card,
  title     = {{CARD}: Cross-component Audio Representation Distillation for Encoder-Free Audio Captioning},
  author    = {Kolluri, Ganesh Pavan Kartikeya Bharadwaj and Zhang, Yuchen and Kampouridis, Michael and Shekhar, Ravi},
  booktitle = {Proceedings of the IEEE Spoken Language Technology Workshop (SLT)},
  year      = {2026}
}

Contact: karthik.kolluri@essex.ac.uk

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

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

GPU в ailist

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

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

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
be157df

0 моделей