LFM2.5-Audio-1.5B (speech to text)
Liquid AI's LFM2.5-Audio-1.5B as a speech recognizer, exported for loom.cpp: a FastConformer audio encoder feeding the LFM2.5-1.2B hybrid conv/attention language model.
This is a loom.cpp export: a single self-describing GGUF that carries its own graph topologies, tokenizer (if any) and driver script, produced by loom-exporter.
Original model
Exported from LiquidAI/LFM2.5-Audio-1.5B. Weights are unmodified; this repo packages the same parameters into
loom.cpp's GGUF format.
License
LFM Open License v1.0 -- inherited from the base model above.
Language(s)
en
Usage
Run it with loom-py -- loom-py-rt on PyPI:
pip install -U "loom-py-rt[hub]"
Needs loom-py-rt 1.0.0rc18 or later. This file uses the engine's STFT op, new in that release; an older runtime stops with unknown op 'STFT'.
import loom
model = loom.Model.from_pretrained("loom-ai-org/lfm2.5-audio-1.5b-asr-loom")
# Audio is a mono float list at 16 kHz. This model decodes in the one language it was trained for and
# takes no `language=` argument -- passing one warns and is ignored, because nothing in its decode
# could act on it.
result = model.speech2text.infer(audio, timestamps=True)
print(result.text)
# It emits no timestamp tokens, so `segments` is one span covering the whole clip and
# `result.timestamped` is False. Check that before treating a start/end as a boundary the model chose.
for segment in result.segments:
print(segment.start, segment.end, segment.text)
The layer underneath
The call above is the high-level door: one per task, named for the modality pair it maps between, with
the windowing, sampling and assembly this model needs already applied. Under it, model.infer(...)
passes your arguments straight to the driver this GGUF embeds -- which is where you go for a knob the
door does not name.
model.driver_source prints that driver, including a header comment documenting every argument it
accepts for this model, and is the authority on it. See loom-py for the API and
loom.cpp for what the engine does between the two.
Known limitations
The speech-to-text door only. LFM2.5-Audio also speaks (text to speech, and speech-to-speech chat); those need its audio-generating half, which is not in this file. It transcribes with the fixed system prompt the model card names for ASR, Perform ASR., greedily, as liquid-audio's generate_sequential does: the same text ids, step for step.
Up to 280 seconds per call, which is what its 4096-position cache holds alongside the transcript; split longer recordings. No timestamps: segments is one span covering the whole clip.
English. The audio is taken at 16 kHz.
Files
lfm2.5-audio-1.5b-asr.gguf-- the model, exported with loom-exporter.