Introducing LFM3: Every Modality for Specialized Intelligence
Posted by Philpax 1 day ago
Comments
Comment by colingauvin 1 day ago
Excited to roll out LFM 3 to replace it, looks like a big step up. Right now LFM 2.6 gets trustworthy annotations on just over 40% of data points. Just waiting for these to get into LocalAI.
Comment by ashkankiani 1 day ago
This seems interesting, but if anyone else is also doing a similar thing, I'd appreciate tips on how to approach it. So far, I think I have some small RAG model in a demo or the very small qwen models. I think fine tuning seems interesting too. Some of the decision models applied in layers (like a binary search on a pre-generated corpus) could be fast enough to help too?
idk too many options, i'm sure this is a solved problem lol
Comment by colingauvin 1 day ago
Comment by zeeshan995868 19 hours ago
Comment by Aerialoo 1 day ago
Comment by samstevens 1 day ago
Comment by nico 1 day ago
Comment by zeeshan995868 18 hours ago
Comment by pritambaral 1 day ago
Comment by colingauvin 1 day ago
Would be a fun experiment.
Comment by samstevens 1 day ago
Comment by colingauvin 1 day ago
Comment by Havoc 1 day ago
Comment by colingauvin 1 day ago
Comment by nghiemphucminh7 1 day ago
Comment by samstevens 1 day ago
Comment by Powdering7082 1 day ago
> However, the instructions say I must use available tools when answering questions.
On "What animal lays the biggest egg?" with no system prompt
I assume this is something baked into the model through lots of RL with tool use?
Comment by samstevens 1 day ago
Comment by Powdering7082 1 day ago
The full request was
``` {"messages":[{"content":"What animal lays the biggest egg?","role":"user"}],"return_progress":true,"sse_ping_interval":1,"stream":true,"tools":[{"function":{"description":"Returns the current local date and time in ISO 8601 format, with the IANA time zone name","name":"get_datetime","parameters":{"properties":{},"required":[],"type":"object"}},"type":"function"},{"function":{"description":"Get runtime info (OS name), may call when user asks about local files or shell commands","name":"get_info","parameters":{"properties":{},"required":[],"type":"object"}},"type":"function"}],"reasoning_format":"auto","reasoning_control":true,"backend_sampling":false,"timings_per_token":true} ```
Disabling tools removes the bit about mentioning instructions.
Just an interesting detail I noticed.
Do y'all have any penalty/regularization w.r.t. reasoning traces or is it pure SFT -> RL?
Comment by samstevens 1 day ago
SFT -> RL. In our fine-tuning notebooks, we typically say that rollouts that go past the max context length (too much reasoning) get 0 reward, so there is slight pressure for shorter reasoning, but I don't think we have strong regularization. I think the agreed-upon recipe is to first make the model smarter (longer reasoning), then teach it to reason faster/denser.
Comment by liquid_richie 1 day ago
Comment by maxiR8 1 day ago
Comment by samstevens 1 day ago
1. I were building for my work laptop (M4 Max, 36GB RAM)
2. I had a batched use cases (transcribing + making action items for all meetings in a day)
I would use the LFM3-Audio-2B for ASR (audio -> text transcript) and then LFM3-1.7B for extracting particular action items and adding them to my tool of choice (Linear, Jira, Notes app, etc).
If you can fine-tune (100+ labeled samples, and a GPU), you likely can fine-tune LFM3-Audio-2B for audio -> action items in a single step.
Comment by maxiR8 18 hours ago
Comment by samstevens 14 hours ago
Comment by hypfer 1 day ago
What makes it cool? What should make me go "oh yeah let's go"?
From what I can see by skimming the document, I would assume "something something specialized use-cases", but what does that mean? And what does it mean assuming I have attention deficit?
Comment by samstevens 1 day ago
If you want to do local classification/image processing, I think the d1-2B is amazing, it can run on 1GB of unified RAM.
Now that it's released and I have weekends off again, I'm going to play with the VL-2B model and the d1-2B and see if I can prompt it to control a small Lego robot arm like this https://bricksrl.github.io/ProjectPage/
If you like agents, I think the 1.7B is very strong for its size and can be used to automate small stuff like classifying emails, cleaning your downloads folder, etc.
It can also be fine-tuned for specific use cases with SFT/DPO/GRPO. The blog post talks about fine-tuning for wind-turbine classification. If there's things you want to automate, but GPT-6-Luna is not strong enough, and bigger models are too expensive, you might fine-tune one of the LFM3 models and use it locally for repetitive tasks.
Comment by colingauvin 1 day ago
Comment by 0xbadcafebee 1 day ago
Comment by liquid_richie 1 day ago
Comment by TobTobXX 1 day ago
In other words: Should I select the model that matches my desired capability set or just use Omni?
Comment by samstevens 1 day ago
It's a goal of ours to continue unifying training across modalities so that there is truly one model, instead of just this shared pre-trained backbone.
Comment by nostrebored 1 day ago
Comment by irthomasthomas 18 hours ago
Comment by samstevens 14 hours ago
Comment by nostrebored 1 day ago
Comment by samstevens 14 hours ago
broadly, Liquid focuses on picking architectures that have really high throughput/low latency that are close to full attention (slow) in terms of expressivity, and then we do the data work to close any remaining gap. so the big goal is to make it very very fast to encode data without any loss in quality.
Comment by rullopat 1 day ago
I'm curious if this model would be useful for OCR or at least text documents parsing (PDF, DOCX, etc.), what do you think?
Comment by samstevens 1 day ago
Comment by rullopat 21 hours ago
Comment by CMay 1 day ago
In the past I've noticed that some LFM were way better at moderation than much larger models. Not necessarily prejudging what is acceptable, but allowing you to interrogate content with a series of questions to customize the moderation. Other models I tested were far worse.
Decision models are like the next optimization in that direction, but none of the benchmarks for the popular models ever show how good they are at tasks like content moderation. The smaller and more efficient we can get that workload, the more that it can simply be on by default in a lot of use cases without feeling like you're giving up a lot of performance, creative freedom or accuracy. You can't have a high number of false positives or people would rather take control back.
We need local content moderation to be cool, efficient, accurate and configurable so that people can get the higher quality results which unsafe models tend to produce, while filtering out the unsafe results fast enough that it can even be done in an agentic way and fed back into the model to steer its results.
Comment by agairola 16 hours ago
Comment by CMay 4 hours ago
Comment by samstevens 1 day ago
Comment by CMay 4 hours ago
There was this book called The Inquisitive Mood and it very much reminds me of the chain interrogation process you can do with models now.
This isn't exactly a single use case, it's more like there are use cases for image editing software that use generative models, there are use cases for local LLMs to get a sense for abstract user intent, or to check if a model's action is in line with policy and so on.
As I said, the Liquid AI models are already very good at a lot of this, but considering how good the models are at it, I'm curious how much y'all train on tasks that are moderation-adjacent. If y'all don't have any model that's really specifically trained for these kinds of tasks, it would be interesting to see how close y'all could get if you tried.
This is an actually important problem in the AI space especially for local development.
There are other moderation tasks that are harder, like "is this copyrighted?" or "is this a McDonald's logo?" because of how much copyrighted material there is and how many businesses there are, but it might be possible to get a good feel for "is this likely a trademark?", "is this a business logo?", "does this text seem to describe a popular character?"
To some extent you can combine a model like this with a good database to optimize the filters and identification. Then you can provide a few reference image or text examples that are closer to what you're trying to filter out and the model can say, "yeah, this content is pretty close to your examples."
Google and OpenAI have already released some of their open source safety models and they were really quite bad, from my testing. Yet, Liquid AI hasn't really leaned into promoting their models for moderation purposes despite being excellent. I know there is a lot of political intersection in moderation, especially in the past many years, but I think a model that is smart enough and excels at letting people apply their own rules with fairly good accuracy is important right now.
Comment by jakswa 11 hours ago
on a 7900XT (20GB VRAM, ~800GB/s IO) w/ full context:
- 8500 tok/s prefill/ingestion
- 212 toks/s decode/generationComment by jakswa 7 hours ago
- https://github.com/ggml-org/llama.cpp/pull/31287
- https://github.com/ggml-org/llama.cpp/pull/31269Comment by dchuk 1 day ago
Comment by samstevens 1 day ago
Comment by syntaxing 1 day ago
Comment by samstevens 1 day ago
Comment by syntaxing 1 day ago
Comment by vessenes 1 day ago
Comment by kooi 1 day ago
It's mediatek NPU claims to handle ONNX. That plus the 12GB ram makes the wonder if I can get this phone to be a mini-agent.
Comment by Philpax 1 day ago
Comment by lubitelpospat 1 day ago
Comment by samstevens 1 day ago
Comment by lubitelpospat 1 day ago
Comment by samstevens 1 day ago
Comment by taneq 1 day ago
Comment by yaoke259 1 day ago
Comment by butternet 1 day ago
Comment by jauntywundrkind 1 day ago
Liquid has also been very good about keeping speed in mind, and the writeup here makes me expect similar. Really good stuff.
Comment by UncleOxidant 1 day ago
Comment by samstevens 1 day ago
Comment by jauntywundrkind 1 day ago
And to beat Qwen3.5-4B with such a capable model is amazing, on top of so many win/draws against 9b in the more general arena.
I can definitely see there being some roles for local agents that offload shell scripting & doing some scut work. I don't know what speed to expect but like, if someone has a decent NPU or GPU and can just get a bunch of basic systems work done with a small local model that could really speed up a lot of workflows that I see day after day after day.
Comment by good1andrew 1 day ago