Remix.run Logo
Leanstral: Open-Source foundation for trustworthy vibe-coding(mistral.ai)
247 points by Poudlardo 3 hours ago | 43 comments
andai 3 hours ago | parent | next [-]

Trustworthy vibe coding. Much better than the other kind!

Not sure I really understand the comparisons though. They emphasize the cost savings relative to Haiku, but Haiku kinda sucks at this task, and Leanstral is worse? If you're optimizing for correctness, why would "yeah it sucks but it's 10 times cheaper" be relevant? Or am I misunderstanding something?

On the promising side, Opus doesn't look great at this benchmark either — maybe we can get better than Opus results by scaling this up. I guess that's the takeaway here.

flowerbreeze 2 hours ago | parent | next [-]

They haven't made the chart very clear, but it seems it has configurable passes and at 2 passes it's better than Haiku and Sonnet and at 16 passes starts closing in on Opus although it's not quite there, while consistently being less expensive than Sonnet.

andai 2 hours ago | parent [-]

Oh my bad. I'm not sure how that works in practice. Do you just keep running it until the tests pass? I guess with formal verification you can run it as many times as you need, right?

DrewADesign 3 hours ago | parent | prev [-]

It’s really not hard — just explicitly ask for trustworthy outputs only in your prompt, and Bob’s your uncle.

miacycle an hour ago | parent [-]

Assuming that what you're dealing with is assertable. I guess what I mean to say is that in some situations is difficult to articulate what is correct and what isn't depending in some situations is difficult to articulate what is correct and what isn't depending upon the situation in which the software executes.

DrewADesign 9 minutes ago | parent [-]

And Bob’s your uncle.

thoughtfulchris 31 minutes ago | parent | prev | next [-]

There have been a lot of conversations recently about how model alignment is relative and diversity of alignment is important - see the recent podcast episode between Jack Clark (co-founder of Anthropic) and Ezra Klein.

Many comments here point out that Mistral's models are not keeping up with other frontier models - this has been my personal experience as well. However, we need more diversity of model alignment techniques and companies training them - so any company taking this seriously is valuable.

lsb 2 hours ago | parent | prev | next [-]

The real world success they report reminds me of Simon Willison’s Red Green TDD: https://simonwillison.net/guides/agentic-engineering-pattern...

> Instead of taking a stab in the dark, Leanstral rolled up its sleeves. It successfully built test code to recreate the failing environment and diagnosed the underlying issue with definitional equality. The model correctly identified that because def creates a rigid definition requiring explicit unfolding, it was actively blocking the rw tactic from seeing the underlying structure it needed to match.

skanga an hour ago | parent [-]

TDD == Prompt Engineering, for Agentic coding tasks.

jasonjmcghee 2 hours ago | parent | prev | next [-]

Curious if anyone else had the same reaction as me

This model is specifically trained on this task and significantly[1] underperforms opus.

Opus costs about 6x more.

Which seems... totally worth it based on the task at hand.

[1]: based on the total spread of tested models

beernet 2 hours ago | parent | next [-]

Agreed. The idea is nice and honorable. At the same time, if AI has been proving one thing, it's that quality usually reigns over control and trust (except for some sensitive sectors and applications). Of course it's less capital-intense, so makes sense for a comparably little EU startup to focus on that niche. Likely won't spin the top line needle much, though, for the reasons stated.

miohtama 2 hours ago | parent | next [-]

Alignment tax directly eats to model quality, double digit percents.

hermanzegerman an hour ago | parent | prev [-]

EU could help them very much if they would start enforcing the Laws, so that no US Company can process European data, due to the Americans not willing to budge on Cloud Act.

That would also help to reduce our dependency on American Hyperscalers, which is much needed given how untrustworthy the US is right now. (And also hostile towards Europe as their new security strategy lays out)

bcye 18 minutes ago | parent [-]

This would be unfortunately a rather nuclear option due to the continent’s insane reliance on technology that breaks its unenforced laws.

DarkNova6 2 hours ago | parent | prev [-]

I'm never sure how much faith one can put into such benchmarks but in any case the optics seem to shift once you have pass@2 and pass@3.

Still, the more interesting comparison would be against something such as Codex.

esperent an hour ago | parent | prev | next [-]

I absolutely called this a couple of weeks ago, nice to be vindicated!

> I'm interested to see what it is in the age of LLMs or similar future tools. I suspect a future phase change might be towards disregarding how easy it is for humans to work with the code and instead focus on provability, testing, perhaps combined with token efficiency.

> Maybe Lean combined with Rust shrunk down to something that is very compiler friendly. Imagine if you could specify what you need in high level language and instead of getting back "vibe code", you get back proven correct code, because that's the only kind of code that will successfully compile.

https://news.ycombinator.com/item?id=47192116

JoshTriplett an hour ago | parent | prev | next [-]

Pleasant surprise: someone saying "open source" and actually meaning Open Source. It looks like the weights are Apache-2.0 licensed.

jasonjmcghee 8 minutes ago | parent [-]

Based on community definitions I've seen, this is considered "open weights". If you can't reproduce the model, it's not "open source"

flakiness 2 hours ago | parent | prev | next [-]

FYI The Lean 4 paper: https://dl.acm.org/doi/10.1007/978-3-030-79876-5_37

Havoc 2 hours ago | parent | prev | next [-]

What are these "passes" they reference here? Haven't seen that before in LLM evals

Could definitely be interesting for having another model run over the codebase when looking for improvements

rockinghigh 2 hours ago | parent [-]

It's the number of attempts at answering the question.

elAhmo an hour ago | parent | prev | next [-]

I don’t know a single person using Mistral models.

consumer451 an hour ago | parent | next [-]

Isn't their latest speech to text model SOTA? When I tested it on jargon, it was amazing.

https://news.ycombinator.com/item?id=46886735

Adrig an hour ago | parent | prev | next [-]

I used Ministral for data cleaning.

I was surprised: even tho it was the cheapest option (against other small models from Anthropic) it performed the best in my benchmarks.

Bombthecat 24 minutes ago | parent [-]

Mistral is super smart in smaller context and asking questions about it

pelagicAustral an hour ago | parent | prev [-]

Me neither, they're not ready for prime imo. I have a yearly sub and the product is just orders of magnitude behind Anthropic's offering. I use Code for real world stuff and I am happy with the result, Mistral is just not something I can trust right now.

patall 2 hours ago | parent | prev | next [-]

Maybe a naive question: given that they see better performance with more passes but the effect hits a limit after a few passes, would performance increase if they used different models per pass, i.e leanstral, kimi, qwen and leanstral again instead of 4x leanstral?

andai 2 hours ago | parent [-]

This is called a "LLM alloy", you can even do it in agentic, where you simply swap the model on each llm invocation.

It does actually significantly boost performance. There was an article on here about it recently, I'll see if I can find it.

Edit: https://news.ycombinator.com/item?id=44630724

They found the more different the models were (the less overlap in correctly solved problems), the more it boosted the score.

patall 2 hours ago | parent [-]

That sounds quite interesting. Makes me wonder if sooner or later they will have to train multiple independent models that cover those different niches. But maybe we will see that sooner or later. Thanks for the link.

cyanydeez 2 hours ago | parent [-]

One would think that LoRAs being so successful in StableDiffusion, that more people would be focused on constructing framework based LoRas; but the economics of all this probably preclude trying to go niche in any direction and just keep building the do-all models.

htrp 39 minutes ago | parent | prev | next [-]

is the haiku comparison because they've distilled from the model?

miacycle an hour ago | parent | prev | next [-]

The TDD foundation! We might need one of those. :)

lefrenchy 2 hours ago | parent | prev | next [-]

Does Mistral come close to Opus 4.6 with any of their models?

chucky_z 2 hours ago | parent | next [-]

I use mistral-medium-3.1 for a lot of random daily tasks, along with the vibe cli. I'd state from my personal opinion that mistral is my preferred 'model vendor' by far at this point. They're extremely consistent between releases while each of them just feels better. I also have a strong personal preference to the output.

I actively use gemini-3.1-pro-preview, claude-4.6-opus-high, and gpt-5.3-codex as well. I prefer them all for different reasons, however I usually _start_ with mistral if it's an option.

sa-code 2 hours ago | parent [-]

Why not Large 3? It's larger and cheaper

DarkNova6 2 hours ago | parent | prev | next [-]

Not at the moment, but a release of Mistral 4 seems close which likely bridges the gap.

re-thc 2 hours ago | parent [-]

Mistral Small 4 is already announced.

androiddrew 35 minutes ago | parent [-]

MOE but 120B range. Man I wish it was an 80B. I have 2 GPUs with 62Gib of usable VRAM. A 4bit 80B gives me some context window, but 120B puts me into system RAM

tjwebbnorfolk 2 hours ago | parent | prev [-]

Mistral hasn't been in the running for SOTA for quite awhile now

hnipps an hour ago | parent | prev | next [-]

Here we go.

glinksss an hour ago | parent | prev | next [-]

Oh, is this a new AI model?

kittikitti 2 hours ago | parent | prev | next [-]

This is great, congratulations to the Mistral team! I'm looking forward to the code arena benchmark results. Thanks for sharing.

blurbleblurble 3 hours ago | parent | prev [-]

Truly exciting