Skip to content

docs: add LFM2.5-Audio (lfm2_audio) work-in-progress page - #683

Closed
ykhrustalev wants to merge 2 commits into
0xShug0:mainfrom
ykhrustalev:lfm2-audio
Closed

ykhrustalev wants to merge 2 commits into
0xShug0:mainfrom
ykhrustalev:lfm2-audio

Conversation

@ykhrustalev

@ykhrustalev ykhrustalev commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add a work-in-progress page for the planned lfm2_audio community family: Liquid AI's LFM2.5-Audio in English and Japanese, covering ASR, TTS and speech-to-speech
  • use the GGUFs Liquid already publishes instead of making new ones, with one session option per component file, as in AuK

This PR only adds that page. There are no runtime, build, spec, or package changes, so outputs, performance, and memory are not affected. I opened it early, as #54 asks, and the packaging questions are answered in the comments below.

Sources

Plan

  • ASR: spec, loader with per-component GGUF options, model-local tokenizer adapter, mel frontend, encoder, LFM2 backbone
  • TTS: depth transformer, detokenizer, built-in voices
  • speech-to-speech (follow-up PR)
  • server: /v1/audio/speech/live?return_text=true (separate PR)

Build and run commands, parity against liquid-audio, and RTF and memory numbers will come with the ASR and TTS commits, as CONTRIBUTING asks.

@ykhrustalev ykhrustalev changed the title [WIP] community: LFM2.5-Audio (lfm2_audio) — ASR, TTS, speech-to-speech docs: add LFM2.5-Audio (lfm2_audio) work-in-progress page Sep 24, 2026
@ykhrustalev

ykhrustalev commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor Author

A few questions:

  1. Liquid already publishes GGUFs for these models on HF, split into 4 files per quant. Is it fine if the lfm2_audio packages just point at those? Or would you rather have one audio.cpp GGUF per quant with the spec embedded? I can build and host those if you prefer.
  2. When a package folder has several GGUFs, find_directory_gguf can't tell which one to load. My plan is to have users pass the main .gguf file. Does that work, or is there a pattern from minimax_h3 or vibeasr I should copy?
  3. The text tokenizer only exists inside the GGUF metadata (tokenizer.ggml.*), and LlamaBpeTokenizer only reads files. Would you be OK with a small separate PR that lets it load from GGUF metadata?
  4. For speech-to-speech the model returns text and audio together, but /v1/audio/speech/live only sends the audio back. Would you want a follow-up PR that streams the text too?

Thanks!

@ykhrustalev
ykhrustalev marked this pull request as ready for review September 24, 2026 15:55
Claim the port and agree on packaging before writing the code.
The page proposes reusing the published LiquidAI GGUFs, lists their
per-tensor precision, and tracks the milestones.
@0xShug0

0xShug0 commented Sep 24, 2026

Copy link
Copy Markdown
Owner

@ykhrustalev Thanks for bringing LFM2.5-Audio to audio.cpp! Always happy to see more new model PRs directly from the teams behind the models. Respond inline:

A few questions before the implementation lands:

  1. Packaging: is it OK for a community family to use these upstream 4-file GGUFs as packages? Or would you prefer one self-contained audio.cpp GGUF per quant with the spec embedded, which we would repack and host?

Multi-compoent is fine.

  1. Model path: a package directory with several GGUFs is ambiguous to find_directory_gguf. Should the model manager and WebUI pass the main .gguf? Is there a convention from minimax_h3 / vibeasr I should follow?

MiniMax-H3 is actually a bad reference and will be cleaned up in a future housekeeping pass. A better example is AuK. You can use explicit session options to select each component GGUF, avoiding ambiguity and allowing users to mix different quantizations without modifying the upstream GGUFs.

  1. Tokenizer: the text tokenizer only exists as GGUF tokenizer.ggml.* metadata. OK to add a small, additive "BPE tokenizer from GGUF metadata" framework PR first?

I think a model-local adapter should work without changing the framework.

  1. Server: s2s replies interleave text and audio, but /v1/audio/speech/live forwards audio only. Would a follow-up that also streams partial_text be welcome?

Yes, a separate follow-up would be welcome. I think the endpoint should be POST /v1/audio/speech/live?return_text=true. When omitted or false (default), /v1/audio/speech/live should preserve the existing audio-only behavior.

Let me know if you have any other questions.

Record the maintainer's answers: one session option per component
GGUF as in AuK, a model-local tokenizer adapter instead of a
framework change, and a separate return_text follow-up for the
live route.
@ykhrustalev

Copy link
Copy Markdown
Contributor Author

Thanks for the quick answers!

  • I'll follow AuK: --model takes the package directory, and a session option picks each of the four component GGUFs, so people can mix quants without touching Liquid's files.
  • The tokenizer will be a model-local adapter, no framework change.
  • I'll send /v1/audio/speech/live?return_text=true as its own PR once speech-to-speech works, with audio-only staying the default.

I updated the page and the plan to match. I'll move this back to draft and add the ASR and TTS commits here.

@ykhrustalev
ykhrustalev marked this pull request as draft September 24, 2026 17:37
@ykhrustalev

Copy link
Copy Markdown
Contributor Author

@0xShug0 do you plan adding any unit test frameworks or will accept adding google test?

@0xShug0

0xShug0 commented Sep 25, 2026

Copy link
Copy Markdown
Owner

@ykhrustalev We already have a unit-testing setup under tests/unittests, integration tests gated behind ENGINE_BUILD_EXTENDED_TESTS, and model-specific tests gated behind ENGINE_BUILD_MODEL_TESTS. I'd prefer to keep dependencies minimal.

@0xShug0

0xShug0 commented Sep 25, 2026

Copy link
Copy Markdown
Owner

Stage-by-stage model parity checks are sufficient for a new model. Usually, changes should stay within the model directories locally and leave the framework untouched, so additional unit tests are rarely needed.

@ykhrustalev

Copy link
Copy Markdown
Contributor Author

@0xShug0 would you like to get the full model impl in one PR or separate ASR/TTS/S2S PRs ?

@0xShug0

0xShug0 commented Sep 28, 2026

Copy link
Copy Markdown
Owner

@ykhrustalev For new model PRs, either is fine with me. Whatever is easier for you!

@ykhrustalev

Copy link
Copy Markdown
Contributor Author

The ASR part is up as #758, from the Liquid4All fork. Text-to-speech, speech-to-speech and return_text on /v1/audio/speech/live follow as separate PRs; this one stays open to track the plan.

@ykhrustalev

Copy link
Copy Markdown
Contributor Author

All parts of this plan are merged: ASR #758 (with #765 and #766), TTS #768, speech-to-speech #798, and return_text on the live route #805. The docs page is on main, so I'm closing this draft. Thanks!

@ykhrustalev ykhrustalev closed this Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants