跳到主内容
@wquguru
精选88MarkTechPost(RSS)模型发布/更新

Liquid AI发布74M参数流式音频编解码器LiquidCodec

Liquid AI Releases LiquidCodec, a 74M-Parameter Streaming Audio Codec

原文
发到 X
推荐理由

音频Tokenizers是语音大模型落地的关键基础设施,LiquidCodec在速度与音质上取得平衡且完全开源,做语音Agent或端侧推理的同学值得直接集成压测。

Liquid AI has released LiquidCodec, the audio codec behind its LFM3-Audio-2B and LFM3-Omni-2B models. The LiquidCodec audio codec is a ~74M-parameter streaming speech tokenizer. It turns speech into tokens a language model can predict, then converts those tokens back into audio. Liquid AI had 2 goals: easy-to-predict tokens and fast conversion back to speech. The weights are on Hugging Face.

Liquid AI 发布了 LiquidCodec,这是其 LFM3-Audio-2B 和 LFM3-Omni-2B 模型背后的音频编解码器。LiquidCodec 音频编解码器是一个拥有约 74M 参数的流式语音标记器(tokenizer)。它将语音转换为语言模型可以预测的标记,然后将这些标记转换回音频。Liquid AI 有两个目标:易于预测的标记以及快速转换回语音。权重已上传至 Hugging Face。

TL;DR

TL;DR(太长不看)

  • Size: ~74M parameters (73.6M on the model card); 24 kHz audio, 12.5 Hz frames, 12 codebooks.
  • Runs on: a single CPU thread (tested on an Apple M4 Max laptop, FP32); CUDA GPUs via Transformers; Q4_0, Q4_K_M and Q8_0 GGUF builds for llama.cpp.
  • Performance: best ViSQOL and lowest mel distance on all 8 test sets versus X-Codec 2, NanoCodec and Mimi.
  • Best: ~361x real-time encoding on 1 CPU thread (encode RTF 0.0028 vs Mimi’s 0.0361).
  • 规模:约 74M 参数(模型卡片上为 73.6M);24 kHz 音频,12.5 Hz 帧率,12 个码本。
  • 运行环境:单个 CPU 线程(在 Apple M4 Max 笔记本电脑上测试,FP32 精度);通过 Transformers 库支持 CUDA GPU;提供 Q4_0、Q4_K_M 和 Q8_0 GGUF 构建版本以兼容 llama.cpp。
  • 性能:在所有 8 个测试集上,相较于 X-Codec 2、NanoCodec 和 Mimi,LiquidCodec 取得了最佳的 ViSQOL 分数和最低的梅尔距离。
  • 最佳表现:在单个 CPU 线程上实现约 361 倍实时编码速度(编码 RTF 为 0.0028,而 Mimi 为 0.0361)。

What is LiquidCodec?

什么是 LiquidCodec?

LiquidCodec is a Liquid AI speech codec that compresses 24 kHz audio into 12 token streams. Each 80 ms frame becomes 12 discrete tokens, per the LFM3-Audio-2B model card. It replaces Kyutai’s Mimi, which Liquid AI used in LFM2-Audio-1.5B. Mimi has 96.2M parameters.

LiquidCodec 是 Liquid AI 的一款语音编解码器,可将 24 kHz 音频压缩为 12 个标记流。根据 LFM3-Audio-2B 模型卡片,每个 80 毫秒的帧变为 12 个离散标记。它取代了 Kyutai 的 Mimi,后者曾被 Liquid AI 用于 LFM2-Audio-1.5B 模型中。Mimi 拥有 96.2M 参数。

How does LiquidCodec work?

LiquidCodec 是如何工作的?

The pipeline is encode, quantize, decode. Liquid AI uses blocks from its LFM3 architecture in both the encoder and decoder. The 2 halves are symmetric, and the encoder is fully causal, which suits streaming.

流程包括编码、量化和解码。Liquid AI 在编码器和解码器中均使用了其 LFM3 架构中的模块。这两半是对称的,且编码器是完全因果的,这非常适合流式处理。

Quantization uses grouped finite scalar quantization (GFSQ) instead of residual vector quantization (RVQ). In RVQ, each codebook encodes what the previous one missed. GFSQ groups are independent, so all 12 codebooks can be predicted in parallel by MaskGIT-style transformers.

量化使用分组有限标量量化(GFSQ),而非残差向量量化(RVQ)。在 RVQ 中,每个码本编码前一个码本遗漏的内容。GFSQ 组是独立的,因此所有 12 个码本都可以由基于 MaskGIT 风格的 Transformer 并行预测。

The decoder predicts spectral coefficients directly. This avoids learned transposed-convolution upsampling, a common cost in waveform decoders.

解码器直接预测频谱系数。这避免了学习到的转置卷积上采样,从而节省了波形解码器中常见的计算成本。

How was it trained?

它是如何训练的?

Training ran in 2 stages. Stage 1 used 264,000 hours of speech across 107 languages. It applied waveform and spectral losses, without adversarial losses. Stage 2 fine-tuned on 55,000 hours of full-band speech (24 kHz or higher) with adversarial critics. Liquid AI says this removed metallic artifacts left after stage 1. A final decoder-only quantization-aware training (QAT) step targets edge inference.

训练分为两个阶段。第一阶段使用了涵盖 107 种语言的 264,000 小时语音数据。它应用了波形损失和频谱损失,但未使用对抗性损失。第二阶段在 55,000 小时的全频带语音(24 kHz 或更高)上进行微调,并引入了对抗性判别器。Liquid AI 表示,这一步消除了第一阶段后留下的金属音伪影。最后一步是针对边缘推理的仅解码器量化感知训练(QAT)。

How fast is LiquidCodec?

LiquidCodec 的速度有多快?

Liquid AI measured speed in FP32 on 1 CPU thread of an Apple M4 Max MacBook Pro. LiquidCodec ran at ~361x real time for encoding and ~87x for decoding. These are self-reported figures.

Liquid AI 在 Apple M4 Max MacBook Pro 的一个 CPU 线程上使用 FP32 精度测量了速度。LiquidCodec 的编码速度约为实时的 361 倍,解码速度约为实时的 87 倍。这些是自报数据。

Real-time factor (RTF) is processing time divided by audio length, so lower is better. LiquidCodec’s encode RTF is 0.0028, against 0.0361 for Mimi, 0.2145 for NanoCodec and 0.7359 for X-Codec 2. Decode RTF is 0.0115, against 0.0329, 0.2543 and 0.0379. That is about 13x lower encode RTF and 2.9x lower decode RTF than Mimi.

实时因子(RTF)为处理时间与音频长度之比,因此数值越低越好。LiquidCodec 的编码 RTF 为 0.0028,而 Mimi 为 0.0361,NanoCodec 为 0.2145,X-Codec 2 为 0.7359。解码 RTF 为 0.0115,相比之下分别为 0.0329、0.2543 和 0.0379。这意味着其编码 RTF 比 Mimi 低约 13 倍,解码 RTF 低 2.9 倍。

How does LiquidCodec compare on quality benchmarks?

LiquidCodec 在质量基准测试中表现如何?

Liquid AI used 8 test sets. These were LibriSpeech test-clean, Seed-TTS English and Mandarin, and 5 FLEURS languages (German, French, Mandarin, Japanese, Korean). Baselines were X-Codec 2, NanoCodec and Mimi at 12 codebooks.

Liquid AI 使用了 8 个测试集。包括 LibriSpeech test-clean、Seed-TTS 英文和中文,以及 5 种 FLEURS 语言(德语、法语、中文、日语、韩语)。基线模型为 12 个 codebook 的 X-Codec 2、NanoCodec 和 Mimi。

  • Reconstruction: LiquidCodec had the best ViSQOL and lowest mel distance on all 8 sets. On LibriSpeech, ViSQOL was 4.319 versus 4.219 (NanoCodec), 4.119 (X-Codec 2) and 4.031 (Mimi).
  • Text-to-speech: Liquid AI trained identical TTS models on each codec’s tokens. Data (101,000 hours, 6 languages), architecture, compute and batch order were fixed. LiquidCodec scored the highest UTMOSv2 on all 8 sets and the best WER/CER on 4 of 8. LibriSpeech WER was 3.15%, against 6.27% for Mimi. Results held with a Qwen3-1.7B backbone as well as LFM3-1.7B.
  • Where it trails: NanoCodec scored higher PESQ (WB) on 7 of 8 sets. It also led on LibriSpeech speaker similarity (SECS 0.836 vs 0.785).
  • 重建效果:LiquidCodec 在所有 8 个测试集上均取得了最佳的 ViSQOL 分数和最低的 mel 距离。在 LibriSpeech 上,ViSQOL 为 4.319,而 NanoCodec 为 4.219,X-Codec 2 为 4.119,Mimi 为 4.031。
  • 文本转语音(TTS):Liquid AI 在各 codec 生成的 token 上训练了相同的 TTS 模型。数据(101,000 小时,6 种语言)、架构、计算资源和 batch 顺序均保持一致。LiquidCodec 在所有 8 个测试集上获得了最高的 UTMOSv2 分数,并在其中 4 个测试集上取得了最佳的 WER/CER。LibriSpeech 的 WER 为 3.15%,而 Mimi 为 6.27%。在使用 Qwen3-1.7B 主干网络以及 LFM3-1.7B 时,结果同样成立。
  • 不足之处:NanoCodec 在 8 个测试集中的 7 个上获得了更高的 PESQ (WB) 分数。它在 LibriSpeech 说话人相似度(SECS)上也领先(0.836 vs 0.785)。

LiquidCodec vs Mimi vs NanoCodec vs X-Codec 2

LiquidCodec 与 Mimi、NanoCodec 和 X-Codec 2 对比

FeatureLiquidCodecMimiNanoCodec 1.78 kbpsX-Codec 2
DeveloperLiquid AIKyutaiNVIDIAHKUST Audio
Parameters73.6M96.2M62M0.8B
Sample rate24 kHz24 kHz (repo)22.05 kHz16 kHz
Frame rate12.5 Hz12.5 Hz12.5 fps50 tokens/s
Codebooks128 at 1.1 kbps (blog)131 (docs)
QuantizerGFSQRVQ (docs)FSQSingle-layer FSQ (docs)
BitrateNot disclosed1.1 kbps1.78 kbpsNot disclosed
CausalityCausal encoder; decoder not disclosedFully causal (Kyutai)Non-causal encoder, causal decoderNot disclosed
License“other” on HF; blog links LFM LicenseCC-BY 4.0NVIDIA Open Model LicenseCC-BY-NC 4.0
Encode / decode RTF, M4 Max CPU*0.0028 / 0.01150.0361 / 0.03290.2145 / 0.25430.7359 / 0.0379
LibriSpeech mel distance* (lower is better)0.1200.1600.1220.123
LibriSpeech PESQ (WB)*2.6402.6152.9422.434
LibriSpeech TTS UTMOSv2*3.312.893.193.27
特性LiquidCodecMimiNanoCodec 1.78 kbpsX-Codec 2
开发者Liquid AIKyutaiNVIDIAHKUST Audio
参数量73.6M96.2M62M0.8B
采样率24 kHz24 kHz (仓库)22.05 kHz16 kHz
帧率12.5 Hz12.5 Hz12.5 fps50 tokens/s
Codebooks128 (博客中提及 1.1 kbps)131 (文档)
量化器GFSQRVQ (文档)FSQ单层 FSQ (文档)
比特率未披露1.1 kbps1.78 kbps未披露
因果性因果编码器;解码器未披露完全因果 (Kyutai)非因果编码器,因果解码器未披露
许可证Hugging Face 上标注为“other”;博客链接至 LFM LicenseCC-BY 4.0NVIDIA Open Model LicenseCC-BY-NC 4.0
编码/解码 RTF, M4 Max CPU*0.0028 / 0.01150.0361 / 0.03290.2145 / 0.25430.7359 / 0.0379
LibriSpeech mel 距离* (越低越好)0.1200.1600.1220.123
LibriSpeech PESQ (WB)*2.6402.6152.9422.434
LibriSpeech TTS UTMOSv2*3.312.893.193.27

*Measured by Liquid AI in its LiquidCodec blog. Mimi measured at 12 codebooks.

*由 Liquid AI 在其 LiquidCodec 博客中测量。Mimi 在 12 个 codebook 下测量。

How can developers deploy LiquidCodec?

开发者如何部署 LiquidCodec?

The codec loads through Hugging Face Transformers with trust_remote_code=True. Call encode to get audio codes and decode to get a waveform. A native LiquidCodecStreamingCache supports chunk-by-chunk decoding, per the model card. The card’s examples use CUDA with bfloat16.

该编解码器通过 Hugging Face Transformers 加载,需设置 trust_remote_code=True。调用 encode 获取音频代码,调用 decode 获取波形。根据模型卡片说明,原生 LiquidCodecStreamingCache 支持逐块解码。卡片中的示例使用 CUDA 和 bfloat16。

For edge use, Liquid AI lists Q4_0, Q4_K_M and Q8_0 GGUF builds for llama.cpp. GGUF repos ship with LFM3-Audio-2B and LFM3-Omni-2B. Q4_0 with decoder-only QAT shrinks the decoder footprint by 3.5x. LibriSpeech ViSQOL dips only from 4.319 to 4.292.

针对边缘端使用,Liquid AI 为 llama.cpp 提供了 Q4_0、Q4_K_M 和 Q8_0 GGUF 构建版本。GGUF 仓库附带 LFM3-Audio-2B 和 LFM3-Omni-2B。采用仅解码器架构且经过量化感知训练(QAT)的 Q4_0 版本可将解码器体积缩小 3.5 倍。LibriSpeech 上的 ViSQOL 指标仅从 4.319 微降至 4.292。

Key Takeaways

关键要点

  • ~74M-parameter streaming codec, 12.5 Hz, 12 codebooks, 24 kHz.
  • ~361x real-time encode, ~87x decode on 1 CPU thread.
  • Best ViSQOL, mel distance and TTS UTMOSv2 on all 8 test sets.
  • NanoCodec still wins PESQ (WB) on 7 of 8 sets.
  • Q4_0 decoder is 3.5x smaller with minimal quality loss.
  • 约 74M 参数的流式编解码器,12.5 Hz,12 个码本,24 kHz。
  • 在单个 CPU 线程上,实时编码速度约为 361 倍,解码速度约为 87 倍。
  • 在所有 8 个测试集上,ViSQOL、梅尔距离和 TTS UTMOSv2 指标表现最佳。
  • NanoCodec 仍在 7 个测试集上胜出 PESQ (WB) 指标。
  • Q4_0 解码器体积缩小 3.5 倍,且质量损失极小。

Check out the technical blog, the model weights on Hugging Face, and LFM3-Audio-2B and LFM3-Omni-2B. Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.

请查阅技术博客、Hugging Face 上的模型权重,以及 LFM3-Audio-2B 和 LFM3-Omni-2B。此外,欢迎在 Twitter 上关注我们,别忘了加入拥有 15 万+成员的 ML SubReddit 并订阅我们的新闻通讯。等等!你在 Telegram 上吗?现在你也可以加入我们的 Telegram 群组。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

关联讨论

同一事件的更多信源

相似阅读

关联信息,但可能不是同一事件