LFM3

This repository contains Liquid AI LFM3 models exported as ExecuTorch .pte programs for on-device inference with React Native ExecuTorch.

Directory Upstream model Input Output
1_7b/ LFM3-1.7B Text Text
vl_2b/ LFM3-VL-2B Text and images Text
audio_2b/ LFM3-Audio-2B Text and audio Text
omni_2b/ LFM3-Omni-2B Text, images, and audio Text and speech

Variants

Path Backend Precision Context length (tokens)
1_7b/mlx/lfm_3_1_7b_mlx_int4.pte mlx int4 8,192
1_7b/mlx/lfm_3_1_7b_mlx_int8.pte mlx int8 8,192
1_7b/xnnpack/lfm_3_1_7b_xnnpack_8da4w.pte xnnpack 8da4w 8,192
vl_2b/mlx/lfm_3_vl_2b_mlx_int4.pte mlx int4 8,192
vl_2b/mlx/lfm_3_vl_2b_mlx_int8.pte mlx int8 8,192
vl_2b/xnnpack/lfm_3_vl_2b_xnnpack_8da4w.pte xnnpack 8da4w 8,192
audio_2b/mlx/lfm_3_audio_2b_mlx_int4.pte mlx int4 8,192
audio_2b/mlx/lfm_3_audio_2b_mlx_int8.pte mlx int8 8,192
audio_2b/xnnpack/lfm_3_audio_2b_xnnpack_8da4w.pte xnnpack 8da4w 8,192
omni_2b/mlx/lfm_3_omni_2b_mlx_int4.pte mlx int4 4,096
omni_2b/xnnpack/lfm_3_omni_2b_xnnpack_8da4w.pte xnnpack 8da4w 4,096

Repository structure

Each model directory contains its own tokenizer.json, tokenizer_config.json, and copy of the LFM Open License v1.0. The mlx/ and xnnpack/ subdirectories contain the exported programs and a config.json describing their methods and tensor shapes. The Omni directory also contains chat_template.jinja and LICENSE.code with the code notices.

Compatibility

For the text, vision, and audio-to-text models, use the corresponding models.llm.LFM3_1_7B, models.llm.LFM3_VL_2B, or models.llm.LFM3_AUDIO_2B entry in a React Native ExecuTorch release that includes it. See the model download documentation.

Omni uses the low-level API to run its vision and audio encoders, token embedding, text decoder, depth decoder, audio embedding, and audio decoder. See the backend configs for the method signatures and constants. The image encoder takes 512 ร— 512 RGB input. Audio input is sampled at 16 kHz, and generated speech is sampled at 24 kHz.

XNNPACK runs on CPU. MLX requires a runtime with the MLX delegate on supported Apple hardware. For a standalone runtime, see the ExecuTorch compatibility note.

Downloads last month
10,493
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for software-mansion/LFM3-ExecuTorch

Quantized
(172)
this model

Collection including software-mansion/LFM3-ExecuTorch