Overview of LFM3
LFM3 is a new generation liquid foundation model announced by Hugging Face, leading the advancement of multimodal AI. This model integrates text, vision, audio, omni, and decision models into a single shared backbone, allowing users to select models suited for specific modalities and fine-tune them on their data using a single GPU. LFM3 operates in the range of 2B parameters and delivers higher performance with 35% fewer parameters than the previous LFM2 model.
Key Features of LFM3
LFM3 demonstrates improved performance over previous models through four major changes:
- Performance Improvement per Parameter: Through a new triple hybrid architecture and training recipe, LFM3-1.7B achieves higher performance with 35% fewer parameters than LFM2.5-2.6B.
- Integration of All Modalities: It includes six 2B class models trained on LFM3-1.7B-Base, which features the first omni model and video input from vision models.
- Edge Optimization: The text model has a size of about 1GB with 4-bit precision, and new in-house vision and audio encoders enhance processing speed.
- Specialized Models: Each model can be fine-tuned on a single GPU, allowing optimization for user data, terminology, and deployment environments.
Architectural Innovations
LFM2 showcased fast performance through a hybrid structure of short convolutions and attention. In LFM3, this structure has been redesigned through hardware-in-the-loop architecture search, enabling higher performance per parameter needed for agent use cases and fast inference for long contexts. This search process includes 14 device and backend combinations, including smartphones, Raspberry Pi 5, laptops, cloud CPUs, GPUs, and Qualcomm Hexagon NPUs.
Performance Comparison
LFM3-1.7B-Base has been pre-trained on 22T tokens and uses a vocabulary of 128K. This model performs comparably to LFM2-1.2B on short prompts and shows about 25% faster performance in an 8K token context. LFM3-1.7B scored 38.42 on WebArena-Verified, significantly surpassing LFM2.5-2.6B, which scored only 3.02.
| Model | Input $/1M | Output $/1M |
|---|---|---|
| LFM3-1.7B | 0.75 | 3.75 |
Utilization of Various Models
LFM3 branches into multiple models, allowing users to select and fine-tune models suited for their input. For example, LFM3-VL-2B is the first LFM vision model capable of processing video input, achieving an average performance of 71.4 across 62 vision benchmarks, demonstrating high performance with fewer parameters than LFM2.5-VL-3B. LFM3-Audio-2B supports voice chat, speech recognition, and speech synthesis in 18 languages, while LFM3-Omni-2B is the first omni model capable of processing text, vision, and audio inputs.
Conclusion
LFM3 sets a new standard for multimodal AI, showcasing its potential for various applications. These models go beyond simple general models, providing optimized performance tailored for specific use cases, enabling developers and companies to leverage AI more effectively.