Downloads · 30 days
59
63% of all-time downloads
kadirnar/LFM2.5-Audio-1.5B-hf
LFM2.5-Audio-1.5B-hf is a audio-to-audio model from kadirnar. Use it for the audio-to-audio task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as other.
Transformers-format conversion of LiquidAI/LFM2.5-Audio-1.5B, prepared for Transformers PR 48249. No additional training was performed. The original LICENSE is included.
Downloads · 30 days
59
63% of all-time downloads
All-time downloads
94
Public
Parameters
1.4B
6.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.2 GB · 100%
From the Hugging Face model README
Transformers-format conversion of LiquidAI/LFM2.5-Audio-1.5B, prepared for Transformers PR #48249. No additional training was performed. The original LICENSE is included.
This checkpoint includes the native model configuration and weights, LFM2-Audio feature extractor settings, multimodal chat template, tokenizer, and bundled audio detokenizer. Legacy module names and packed depth-attention QKV weights were converted for the native implementation.
The updated LFM2-Audio implementation is required. The review changes used for this conversion are currently local and have not been pushed to GitHub. Do not assume the released Transformers package or the current remote PR branch can load this checkpoint yet. Install the updated local Transformers checkout with pip install -e /path/to/transformers before using it. This repository does not provide remote Python code.
import torch
from transformers import AutoModelForMultimodalLM, AutoProcessor
model_id = "kadirnar/LFM2.5-Audio-1.5B-hf"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(
model_id, dtype=torch.bfloat16,
).to("cuda").eval()
inputs = processor.apply_text_to_speech_request(
"Hello, how are you today?",
prompt="Perform TTS. Use the US male voice.",
).to(device=model.device, dtype=model.dtype)
output = model.generate(**inputs, max_new_tokens=128, text_top_k=1, audio_top_k=1)
waveform = processor.decode_audio(output.audio_codes)
# waveform: mono audio at processor.output_sampling_rate (24,000 Hz)
For ASR, pass a 16 kHz mono waveform to processor.apply_transcription_request(waveform, device=model.device), generate sequentially, and decode output.sequences with the tokenizer. Generation currently supports batch size one.
Six GPU integration scenarios passed: ASR, four TTS voices, and a 96-step interleaved generation prefix. Text tokens, all eight audio codebooks, and modality sequences matched the original Liquid Audio implementation exactly on an RTX 5070 Ti using PyTorch 2.8.0, BF16, and greedy decoding. Waveform checks also passed. This is a parity check, not a WER or speed benchmark.
c362a0625dfe45aa588dce5f0ada28a7e5707628.19e65845923a7f136442c95137884ec61eb386aa.89a727319005f512aff3714c3838c8c37630b4fa, which does not contain native LFM2-Audio. The reference uses this revision to isolate audio integration changes from backbone changes between Transformers versions.