/ Модель

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

Лицензия
Apache 2.0
Архитектура
heartcodec · dense
Базовая модель
HeartCodec-oss-20260123
Библиотека
mlx
Опубликована
2 ноя 2026

HeartCodec-oss-fp16

Генерация аудиоТекст → аудио3 профессии

Декодер HeartCodec в формате float16 для преобразования кодов HeartMuLa в стереомузыку с частотой 48 кГц в MLX-конвейере.

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

Бенчмарки

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

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

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

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

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

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

HeartCodec-oss-fp16 — вариант декодера аудиокодека HeartCodec, подготовленный mlx-community для MLX и использования в mlx-heartmula-swift. Он декодирует 8 × 8192 RVQ-кодов, созданных HeartMuLa, в стереоаудио 48 кГц: flow-matching модель на архитектуре LLaMA-DiT формирует латентные представления, которые затем обрабатывает декодер SQ-Codec. Репозиторий содержит веса float16 в формате safetensors; указанный в карточке размер файла — 3,15 ГБ. Лицензия — Apache-2.0.

Модель предназначена для декодирования кодов, полученных при генерации музыки, и входит в Swift-конвейер HeartMuLa. В описанных измерениях английские тексты песен воспроизводились достаточно близко к заданным, но стилевые теги влияли на результат слабо. Отмечены дрейф пола вокала, нестабильное качество для китайского языка и повторение припевов или строк до ограничения длины, особенно при использовании 8-битной языковой модели. Декодер может выдавать пики выше полной шкалы; в Swift-конвейере применяется ограничитель уровня.

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

  • декодирование кодов HeartMuLa в стереоаудио
  • рендеринг сгенерированных песен в Swift-конвейере на MLX
  • преобразование RVQ-кодов аудиокодека в звуковую волну

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

HeartCodec-oss-fp16 (MLX)

The decoder half of HeartCodec-oss at float16, for mlx-heartmula-swift. It turns HeartMuLa's 8 × 8192 RVQ codes (12.5 Hz) into 48 kHz stereo: a flow-matching LLaMA-DiT (24 × 1536 + 6 × 3072, 10 Euler steps, CFG 1.25) to 25 Hz latents in 29.76 s windows, then the SQ-Codec decoder (1920× upsampling). This is the default codec: half the size of the fp32 codec and 3.5× faster per window.

filesize
model.safetensors (506 tensors, float16; decode path only, weight_norm folded, MLX conv layouts)3.15 GB
config.json (with an mlx_heartmula section)1.9 KB
LICENSE (Apache-2.0), NOTICE—

Never bf16: upstream says bf16 degrades the codec's audio.

Use

This codec is what HeartMuLaConfiguration picks unless told otherwise. It works with either LM repo.

// Package.swift: .package(url: "https://github.com/xocialize/mlx-heartmula-swift", from: "0.1.1") → product "MLXHeartMuLa"
import MLXHeartMuLa
import MLXServeCore
import MLXToolKit

let engine = MLXServeEngine()
await engine.useModelStore(ModelStore(root: modelsRoot))
let id = try await engine.register(HeartMuLaPackage.registration,
                                   configuration: HeartMuLaConfiguration(),   // .int8 LM + .fp16 codec
                                   id: "heartmula-oss-3b")
try await engine.prepare(.music, package: id)    // mlx-community/HeartMuLa-oss-3B-8bit + this repo

TF32 doesn't matter here. With the fp16 codec, a song is byte-identical whether MLX's TF32 matmuls are on or off, so it loads in a process where another model already ran. On the same codes it sits 23.6 dB from the fp32 codec (the SQ-Codec's rounding step amplifies fp16 rounding), with lyric and aesthetic scores unchanged.

LM + codecdeclared memory (resident + peak working set)fitsrender speed (M5 Max)
8-bit + fp16 (the default)8.5 + 5.5 GB24 GB Mac3.0× real time
bf16 + fp1611.5 + 6.0 GB32 GB Mac2.5×
8-bit + fp3211.5 + 10.0 GB32 GB Mac2.3×
bf16 + fp3214.5 + 10.0 GB48 GB Mac1.85×

Memory is phys_footprint through MLXEngine at a 120 s song and a 240 s worst case; "fits" is the engine's 0.7 × RAM admission rule. A 4-bit LM failed its lyric gate (PER 0.220) and is not published.

Measured character

Read on the fleet's 12-song set (10 English, 2 Mandarin; two seed sets per tier) and in the operator's listening passes:

  • Lyrics are followed closely in English. The lyric error rate (Whisper PER) is 0.125 with the bf16 LM and 0.132 with the 8-bit LM (the PyTorch reference: 0.165).
  • Style tags steer it weakly. CLAP style retrieval ranks its songs about 4.5 of 12 for their own tags, against about 2 for the other open music models measured. A higher CFG (3.0) does not help.
  • Voice gender drifts. Most voices come out female whatever the tags ask: 1 of 6 male-voice prompts got a male voice.
  • Mandarin is weak and uneven. The PyTorch reference read PER 0.457 in Mandarin (one verse lost) against 0.107 in English. The Swift bf16 takes did better on the two Mandarin songs, which is too few to call it fixed.
  • The 8-bit LM runs to the length cap twice as often as bf16 (10 of 24 songs against 5 of 24 at a 120 s cap). The lyrics are sung, then choruses repeat, and one song in 24 looped a single line until the cap.
  • Raw codec output can exceed full scale (peaks to 1.37), so the Swift pipeline applies a single −1 dBFS limiter gain.

Parity

Every tensor is the release's own float32 value (weight_norm folded in float32) cast to float16. The fp32 codec it derives from matches upstream heartlib at 115–118 dB end to end. Details: MEASUREMENTS.md.

Licence and attribution

Apache-2.0. HeartMuLa's generator repositories carry license: apache-2.0 on their model cards but no LICENSE file. The grant is the card statement plus heartlib's README of 2026-01-20, which moves "all related model weights" to Apache-2.0. This repo ships heartlib's Apache-2.0 text as LICENSE, and a NOTICE with that grant chain and exactly what was changed. Not endorsed by the HeartMuLa team or MuLa Labs. Paper: arXiv 2601.10547.

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

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

GPU в ailist

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

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

MLX-модели работают только на Apple Silicon, на GPU NVIDIA они не запускаются.

Класс архитектуры
HeartCodec
Ревизия весов
f362940

0 моделей