Live data from Hacker News

My iPhone 16 Pro Max produces garbage output when running MLX LLMs

journal.rafaelcosta.me

191–200 of 239 posts

Re: My iPhone 16 Pro Max produces garbage output when running MLX LLMs

#191

Earlier quoted context omitted.

Security theatre killed this. Everyone must be assumed to be a moron incapable of living with the consequences of their own choices at all times.

It's not theater. If an attacker can duplicate your device, that's a problem.

Says who? How do you know what’s on my device, how much it matters to me, and what countless other options I have for recourse if that did happen?

Re: My iPhone 16 Pro Max produces garbage output when running MLX LLMs

#192

Earlier quoted context omitted.

I also don't have access to the spec, but the people writing Rust do and they claim this: "IEEE makes almost no guarantees about the sign and payload bits of the NaN" https://rust-lang.github.io/rfcs/3514-float-semantics.html See also this section of wikipedia https://en.wikipedia.org/wiki/NaN#Canonical_NaN "On RISC-V, most floating-point operations only ever generate the canonical NaN, even if a NaN is given as the…

Blame the long and confusing language in spec: > For an operation with quiet NaN inputs, other than maximum and minimum operations, if a floating-point result is to be delivered the result shall be a quiet NaN which should be one of the input NaNs. The same document say: > shall -- indicates mandatory requirements strictly to be followed in order to conform to the standard and from which no deviation is permitted (“s…

Thanks for the direct evidence that the output NaN is not required to be one of the input NaNs.

Re: My iPhone 16 Pro Max produces garbage output when running MLX LLMs

#193

Earlier quoted context omitted.

Blog post dated 28 Jan 2026, the bug fix posted 29 Jan 2026, so I guess this story had a happy ending :) Still, sad state of affairs that it seems like Apple is still fixing bugs based on what blog posts gets the most attention on the internet, but I guess once they started that approach, it's hard to stop and go back to figuring out priorities on their own.

I think you overestimate the power of a blogpost and the speed of bugfixing at Apple for something like this. I almost guarantee there is no way they can read this blogpost, escalate it internally, get the appropriate approval to the work item, actually work on the fix, get it through QA and get it live in production in 3 days. That would only happen on really critical issues, and this is definitely not critical enou…

Three days is, agreed, too short. A week is just about possible, though...

I've seen a blog-post, authored a bug in Radar, assigned it to myself, and fixed it the same day. Whether it goes out in the next release is more a decision for the bug-review-board, but since the engineering manager (that would have been me) sits on that too, it's just a matter of timing and seeing if I can argue the case.

To be fair, the closer we are to a release, the less likely a change is to be accepted unless you can really sweet-talk the rest of the BRB, and there's usually a week of baking before the actual release goes out, but that has sometimes been shrunk for developer-preview releases...

Re: My iPhone 16 Pro Max produces garbage output when running MLX LLMs

#194

Earlier quoted context omitted.

> What's moon plus sun? Eclipse, obviously.

That’s sun minus moon. Moon plus sun is a wildly more massive, nuclear furnace of a moon that also engulfs the earth.

Not sure about that. You can't have an eclipse without both the moon and the sun. Ergo, the eclipse is the totality (sorry!) of the sun and moon, or sun+moon (+very specific boundary conditions).

Still think it was a good response :)

Re: My iPhone 16 Pro Max produces garbage output when running MLX LLMs

#195

Earlier quoted context omitted.

Can you show me where in the ieee spec this is guaranteed? My understanding is the exact opposite - that it allows implementations to return any NaN value at all. It need not be any that were inputs. It may be that JavaScript relies on it and that has become more binding than the actual spec, but I don't think the spec actually guarantees this. Edit: actually it turns out nan-boxing does not involve arithmetic, which…

See 6.2.3 in the 2019 standard. > 6.2.3 NaN propagation > An operation that propagates a NaN operand to its result and has a single NaN as an input should produce a NaN with the payload of the input NaN if representable in the destination format. > If two or more inputs are NaN, then the payload of the resulting NaN should be identical to the payload of one of the input NaNs if representable in the destination format…

As the comment below notes, the language should means it is recommended, but not required. And there are indeed platforms that do not implement the recommendation.

Re: My iPhone 16 Pro Max produces garbage output when running MLX LLMs

#196
post #69

I clicked hoping this would be about how old graphing calculators are generally better math companions than a phone. The best way to do math on my phone I know of is the HP Prime emulator.

I was pretty delighted to realize I could now delete the lame Calculator.app from my iPhone and replace it with something of my choice. For now I've settled on NumWorks, which is apparently an emulator of a modern upstart physical graphing calc that has made some inroads into schools. And of course, you can make a Control Center button to launch an app, so that's what I did. Honestly, the main beef I have with Calcul…

Calculator.app does have history now FWIW, it goes back to 2025 on my device. And you can make the default vertical be a scientific calculator now too.

Also it does some level of symbolic evaluation: sin^-1(cos^-1(tan^-1(tan(cos(sin(9))))))== 9, which is a better result than many standalone calculators.

Also it has a library of built in unit conversations, including live updating currency conversions. You won’t see that on a TI-89!

And I just discovered it actually has a built in 2D/3D graphing ability. Now the question is it allows parametric graphing like the MacOS one…

All that said, obviously the TI-8X family hold a special place in my heart as TI-BASIC was my first language. I just don’t see a reason to use one any more day to day.

Re: My iPhone 16 Pro Max produces garbage output when running MLX LLMs

#198

Earlier quoted context omitted.

See 6.2.3 in the 2019 standard. > 6.2.3 NaN propagation > An operation that propagates a NaN operand to its result and has a single NaN as an input should produce a NaN with the payload of the input NaN if representable in the destination format. > If two or more inputs are NaN, then the payload of the resulting NaN should be identical to the payload of one of the input NaNs if representable in the destination format…

As the comment below notes, the language should means it is recommended, but not required. And there are indeed platforms that do not implement the recommendation.

Oh right sorry. That is confusing.

Re: My iPhone 16 Pro Max produces garbage output when running MLX LLMs

#199
post #145

Does it bother anyone else that the author drops "MiniMax" there in the article without bothering to explain or footnote what that is? (I could look it up, but I think article authors should call out these things).

MiniMax is a company. It isn’t a term of art or something. It would be like defining Anthropic.

minimax is an algorithm for choosing the next move in an n-player game, discovered by John von Neumann in 1928
Post reply on HN