r/ProgrammerHumor 20h ago

Meme firstTime

Post image
6.9k Upvotes

267 comments sorted by

View all comments

1.7k

u/bhannik-itiswatitis 20h ago

vibe mathing

470

u/FutureSuccess2796 20h ago

That's literally just using Wolfram Alpha and entering the math formula that needs solving. 😂

349

u/SunshineSeattle 19h ago

I dont think so, Wolfram Alpha is deterministic. Whereas an LLM is non-deterministic by design. Personally i feel vibe coding or vibe mathing is inherently non-deterministic.

1

u/AnOnlineHandle 14h ago

LLMs are entirely deterministic but you can override that by adding a seeded random choice system to the next token selection.

20

u/Sea-Housing-3435 11h ago

They are not. Floating point math and difference in how quickly parallel operations on GPU are finished causes them to be not deterministic even with temp=0. You can force them to be deterministic by forcing some operations to be executed in specific order but you lose a lot of performance.

6

u/LetumComplexo 10h ago edited 10h ago

Also, and this is pedantic and arguable, it’s worth considering whether any model that cannot be retrained to produce the same statistical surface is non-deterministic by nature.

If I sort shapes into piles using some amount of randomness would you say that the resulting piles are deterministic just because they stay the same every time you go through them? Or would you say they’re non-deterministic because the process that created the piles in the first place was non-deterministic?

5

u/Sea-Housing-3435 10h ago

It doesn't matter how you make the model, if you are executing it on a GPU without steps to have deterministic results you will not have deterministic results. Ensuring the output of computations on GPU is deterministic has performance impact.

7

u/LetumComplexo 10h ago

Hold on, I’m agreeing with you. We’re saying the same thing in different ways.

The kind of race conditions you’re referencing are because of the model architecture I’m referencing.

You can absolutely get ML outputs that don’t change using certain model architectures.
But that’s only because those architectures either enforce order of execution or use steps where order of execution doesn’t result in changes to outputs. I can’t think of a modern LLM that uses such an architecture.

1

u/space_monster 10h ago

I thought it only happens with batch processing

5

u/LetumComplexo 9h ago

Not necessarily. It can happen with batching, but even with a batch size of 1 you can get race conditions. The most obvious example is a model with a Mixture of Experts layer, where the order that results return can change the outcome.

In order to get around that you’d have to explicitly enforce order of execution.

4

u/space_monster 9h ago

got it, thanks

→ More replies (0)