mothor-sound-model / README.md
arnbrst's picture
Mothor sound model: Core ML conversion of laion/larger_clap_general (audio int8, text fp16)
eac8e49 verified
|
Raw History Blame Contribute Delete
1.72 kB
metadata
license: apache-2.0
library_name: coreml
tags:
  - audio
  - clap
  - core-ml
  - audio-text-retrieval
base_model: laion/larger_clap_general

Mothor sound model (CLAP, Core ML)

Core ML conversion of laion/larger_clap_general (LAION, Apache-2.0, revision ada0c23a36c4e8582805bb38fec3905903f18b41), used by the Mothor app for SOUND SEARCH: searching a sample library by description, finding similar sounds, and sound tags — all on the user's Mac.

Files

Folder larger_clap_general-ada0c23-int8-zeropad-fe1/:

  • clap-audio-int8-b1.mlmodelc — the audio tower (HTSAT + projection), weights quantised to 8 bit, fixed batch 1, input one 10 s window's log-mel (1, 1, 1001, 64), output a 512-d embedding.
  • clap-text-fp16-l77.mlmodelc — the text tower (RoBERTa + projection), float16, fixed length 77 tokens with mask, output a 512-d embedding.

Changes against the original (Apache-2.0 § 4 b)

Converted by Mothor from the original PyTorch weights with coremltools. No weights were retrained. To convert, the graph was rewritten without changing results: the bicubic resize as a fixed matrix, window partition/reverse at rank 5, adaptive average pooling as a mean, an additive attention mask. The audio tower's linear weights are quantised to int8 (cosine ≥ 0.9996 to the PyTorch embeddings on our test set); the text tower is float16 (cosine ≥ 0.9999). The mel front end (48 kHz, 64 Slaney mels, Hann 1024, hop 480, zero-padded 10 s windows) runs in the app, not in these models.

Licence

Apache License 2.0 — see LICENSE. Original model © LAION (laion/larger_clap_general); this conversion is distributed under the same licence.