Liquid AI Ships LFM2.5-230M with llama.cpp, MLX, vLLM, SGLang, and ONNX Support for On-Device Inference
Back to Explainers
aiExplainerbeginner

Liquid AI Ships LFM2.5-230M with llama.cpp, MLX, vLLM, SGLang, and ONNX Support for On-Device Inference

June 27, 202644 views3 min read

This explainer explains the concept of on-device AI inference and how the new LFM2.5-230M model from Liquid AI is enabling smart AI capabilities directly on smartphones and low-cost devices.

What is on-device AI inference?

Imagine you're using a smart phone app that can understand your voice and answer questions — like a digital assistant. Usually, when you talk to this app, your phone sends your voice data to a powerful computer far away (called a 'server') to be processed. This is called cloud computing. But what if your phone could do all the thinking itself, right there on the device? That's what on-device inference means — running AI models directly on your phone, tablet, or computer without needing to send data to the cloud.

What is LFM2.5-230M?

LFM2.5-230M is a small, open-source AI model created by a company called Liquid AI. Think of it like a tiny, smart brain that can understand and respond to instructions — but it's so small it can fit on a regular phone or even a Raspberry Pi (a small, affordable computer). It's only 230 million parameters, which is much smaller than most AI models you've heard of, like GPT or Qwen.

Parameters are like the 'memory' of an AI model — the more parameters, the more complex the model can be. But smaller models like LFM2.5-230M are faster and more energy-efficient, making them perfect for on-device use.

How does it work?

LFM2.5-230M is built on a special architecture called LFM2, which is designed to be efficient and fast. It uses several tools to make sure it works well on different devices:

  • llama.cpp – A tool that helps run large language models on regular computers.
  • MLX – A framework that makes it easier to run AI models on Apple devices.
  • vLLM – A system that speeds up how fast AI models can process information.
  • SGLang – Another tool that helps with fast inference on devices.
  • ONNX – A format that allows models to be used across different platforms.

These tools work together to help LFM2.5-230M run smoothly on a Galaxy S25 Ultra (a high-end smartphone) and even on a Raspberry Pi 5 (a small, low-cost computer). It can process 213 tokens per second on a Galaxy S25 Ultra and 42 tokens per second on a Raspberry Pi 5. A token is a small unit of text, like a word or a part of a word.

Why does it matter?

On-device AI is important because it gives users more privacy and speed. When your phone processes information locally, it doesn't have to send your data to the cloud, which means your personal information stays private. It also makes things faster because there’s no delay from waiting for a response from a distant server.

LFM2.5-230M is especially impressive because it performs well compared to larger models. For example, it outperforms models like Qwen3.5-0.8B and Gemma 3 1B in following instructions, even though it’s much smaller. This shows that smaller, efficient models can be just as smart as bigger ones — a big win for practical use.

Key Takeaways

  • On-device inference means running AI models directly on your phone or computer, without sending data to the cloud.
  • LFM2.5-230M is a small, efficient AI model that can run on everyday devices like smartphones and Raspberry Pis.
  • It uses several tools like llama.cpp and MLX to work on different platforms and devices.
  • Smaller models can be just as smart as larger ones, and they're faster and more private.

In short, LFM2.5-230M shows us how powerful AI can be when it's designed to work efficiently on your own device — giving you smart tools without compromising your privacy or speed.

Source: MarkTechPost

Related Articles