Instructions to use MAdel121/LFM3-Audio-2B-Full-Duplex with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use MAdel121/LFM3-Audio-2B-Full-Duplex with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
LFM3-Audio-2B Full-Duplex
A real-time 80 ms full-duplex adaptation of LiquidAI/LFM3-Audio-2B. It listens while speaking, yields on interruptions, talks through user backchannels, and emits its own "mm-hmm" / "yeah" backchannels without an external VAD, ASR, or TTS pipeline.
- Lightweight training: Rank-16 LoRA (
68 MB) trained in45GPU-minutes (< $10on the winning path), plus a91K-parameter Conv1D backchannel head (1.4 MB). - Real-time on Apple Silicon: Runs locally in
float32on MPS at59 msmedian per80 msstep (~3minutes per live session). - Preserved base recall: Keeps
~95%of base spoken trivia recall (29-30 / 120vs.31 / 120turn-based) with0caller-persona leaks.
Design Modifications
Base LFM3-Audio-2B is strictly turn-based and never starts speaking on a continuous audio stream (p_start < 1e-5). Four modifications convert it to full duplex:
80 msInterleaved Stream: Feeds one16 kHzuser audio token and emits one24 kHzLiquidCodecframe every80 msinside a single open turn. The LLM starts speaking atp(<|mixed_start|>) >= 0.40and yields atr(end=2016) >= 0.50.- Window-Likelihood Stop/Keep Loss: Per-frame stop targets caused false stops on multi-word backchannels like
"yeah, totally". Replacing them with a0.24-0.64 snoisy-OR stop window and2.0 skeep windows raised>= 1 sbackchannel hold rate from58.3%to93.3%. - Self-Distilled Replies + KL Anchor: Human dialogue transcripts leaked caller personas, while standard SFT shifted turn-start probabilities. Training on
LFM3's own assistant replies withdepth_decoderfrozen and a forward-KL anchor on turn-start logits removed persona leaks (0 / 36) without hurting timing. - KV-Isolated Backchannel Head: Emitting
"mm-hmm"inside the single-stream LLM polluted its KV cache and suppressed later answers. A91Kcausal Conv1D head on frozen audio-encoder features plays three pre-encoded own-voice clips outside the KV cache, placing98.4%of backchannels inside active speech with0silence false alarms.
Evaluation
Scored on all 727 Full-Duplex-Bench v1.0 clips in float32 using unmodified official scripts (TOR = turn-over rate; latencies in seconds; baselines from Full-Duplex-Bench and Awaken).
| Task | Metric | LFM3-2B Duplex | Awaken 30B | PersonaPlex | Moshi 7B | Freeze-Omni | Gemini Live 2.0 (API) | GPT-Realtime (API) |
|---|---|---|---|---|---|---|---|---|
| Pause handling (137 synthetic) | TOR β | 0.044 | 0.170 | 0.584 | 0.985 | 0.642 | 0.255 | 0.010 |
| Pause handling (216 CANDOR) | TOR β | 0.116 | 0.267 | 0.662 | 0.980 | 0.481 | 0.310 | 0.120 |
| Backchannel (55 ICC) | TOR β | 0.000 | 0.145 | 0.327 | 1.000 | 0.636 | 0.091 | 0.000 |
| Freq (/s) β | 0.062 | 0.073 | 0.025 | 0.001 | 0.001 | 0.012 | 0.007 | |
| JSD β | 0.794 | 0.753 | 0.649 | 0.957 | 0.997 | 0.896 | 0.980 | |
| Smooth turn-taking (119 CANDOR) | TOR β | 1.000 | 0.997 | 0.992 | 0.941 | 0.336 | 0.655 | 1.000 |
| Latency (s) β | 1.181 | 0.440 | 0.070 | 0.265 | 0.953 | 1.301 | 1.470 | |
| User interruption (200 synthetic) | TOR β | 0.995 | 0.998 | 1.000 | 1.000 | 0.867 | 0.891 | 0.970 |
| Relevance (0-5) β | 4.38* | 2.681 | 4.210 | 0.765 | 3.615 | 3.376 | 3.850 | |
| Latency (s) β | 0.719 | 0.598 | 0.400 | 0.257 | 1.409 | 1.183 | 1.500 |
Notes:
- Judge (
*): Scored withgpt-5.6-solon the unmodified prompt because OpenAI retiredgpt-4-turbo. - Pause threshold: Official FDB scorers ignore speech under
1.0 sand<= 3words; in raw frame logs, the model briefly opened speech on22%of pause clips (0.117synthetic,0.167CANDOR>= 1.0 s) before stopping as the user continued. - Stop latency: On mid-sentence interruptions,
59.2%stopped within1.28 sand83.8%within2.0 s(median1.22 s). - Out-of-domain phone calls (
OpenYaptest,0LoRA training): Holds through92.0%of backchannels (89.7%base) and stops within1.28 son35.8%of casual peer overlaps (8.9%base;88.3%for a duration timer).
Quick Start
Requires Python 3.12, pip install -r requirements.txt, wired headphones, and LiquidAI/LFM3-Audio-2B (rev 9d49701c372d6011d900f6abb40c6b296fb706dd) at weights/LFM3-Audio-2B (or LFM3_WEIGHTS).
# Live headphone voice chat in browser (--bc-gain 0.25 for quieter murmurs, --bc-head none to disable)
python -m eval.live serve --out talks/local --key live
# Offline evaluation on a .wav/.flac file
python -m eval.demo run --champion --in user_input.wav --out demo_out
Repository Contents
| Path | Size | Description |
|---|---|---|
adapter/ |
68 MB |
Rank-16 LoRA adapter for LFM3-Audio-2B |
earhead/head-isolated-v4.pt |
1.4 MB |
91K causal Conv1D backchannel head |
clips/ |
< 60 KB |
3 own-voice backchannel clips + 203 quiet listening frames |
duplex/ & eval/ |
Code | 80 ms runtime (conversation.py), WAV runner (demo.py), and browser UI (live.py) |
LICENSE |
11 KB |
LFM Open License v1.0 + non-commercial research notice |
Known Limitations
- Headphones & session length: Browser echo cancellation is off, so headphones are required, and MPS KV growth bounds real-time pacing to
~3minutes. 2Bcontext bleed: Across multi-topic conversations, earlier turns in the KV cache can occasionally bleed into later answers.~1.2 sturn-pickup latency:start_over = 0.40favors low pause cut-ins over fast pickup, and very quiet trailing questions can go unanswered.- Casual overlaps & prosodic backchannels: Holding through
1-3.8 sacknowledgements makes casual phone barge-ins conservative (35.8%<= 1.28 s), and the ear-head triggers three canned clips from prosody rather than semantics.
Acknowledgements
Thanks to Modal Labs for providing free GPU compute for training this model. The Agentic Data company for the OpenYap Dataset
License
Non-commercial research prototype only. Base weights use the LFM Open License v1.0 (LiquidAI/LFM3-Audio-2B, rev 9d49701c). Turn-timing supervision used otoSpeech turn-104h (oto Speech License v1.0, non-commercial), ear-head training and evaluation used Open Yap 1K v1.0 (no audio redistribution or voice cloning), and synthetic Q&A turns used OASST1, Mintaka, and Qwen3-TTS. Commercial use and dataset audio redistribution are prohibited.
- Downloads last month
- -
Model tree for MAdel121/LFM3-Audio-2B-Full-Duplex
Base model
LiquidAI/LFM3-Audio-2B