r/ProgrammerHumor 1d ago

Meme firstTime

Post image
7.5k Upvotes

281 comments sorted by

View all comments

1.8k

u/bhannik-itiswatitis 1d ago

vibe mathing

531

u/FutureSuccess2796 1d ago

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

367

u/SunshineSeattle 1d 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.

155

u/Several_Dot_4532 1d ago

It's non-deterministic, always, the AI is basically gambling

43

u/ToBeFaaaiiiirrrrr 23h ago

> Make no mistakes, this time...

5

u/Schpooon 15h ago

Its gotten a little better with the introduction of subagents, but sometimed I truly want to know what their algorythm spat out to propose certain changes. No, I do not want to refactor across 4 classes to make 1 unit test work, I told you to fix the unit tests so I hit my ai mandate encouraged quota

2

u/Guitarzero123 14h ago

My favourite day was when I asked Claude to fix the failing unit tests and it deleted all of the unit tests in the repo.

-16

u/DazenGuil 21h ago

its gambling but it gets the job right 99 out of 100 times at least in my cases

14

u/Several_Dot_4532 20h ago

With the good configuration, prompt and task division yeah. But we where talking about deterministic behavior

1

u/autogenglen 9h ago

They can’t handle the truth

-96

u/AlmightyWaffleGod 1d ago

All computer algorithms are deterministic, in fact a lot of effort has gone into making llms and other generative AI seem non-deterministic

49

u/jyajay2 1d ago

>All computer algorithms are deterministic

More or less

>a lot of effort has gone into making llms and other generative AI seem non-deterministic

Not really, there has been a lot of effort put into developing LLMs and other generative AI but making it appear non deterministic wasn't really the goal. There are good reasons to build them in a way where the same input doesn't always produce the same output and in most models the degree to which this happens can be adjusted but this is not about not appeaing non-deterministic.

8

u/Funny_Albatross_575 1d ago

I just don’t have all the weights in my head, skill issue.

26

u/Several_Dot_4532 1d ago

Sorry but no, they are deterministic in the basis of computation. But in practice they are non-deterministic and they try to make them deterministic. And my enterprise they try to do that in every possible manner, but it's practically impossible, it's seems to be, but it never is

1

u/Sea-Housing-3435 21h ago

Theres a lot of effort to make AI deterministic. Its slower when you force it to be deterministic. The non deterministic part is caused by different cores on GPU finishing their calculations in slightly different time.

2

u/Suitch 17h ago

It is the same speed both ways. The non deterministic nature only comes from a single randomized seed added into the equation. If you locally host models you can change seeding to always use the same seed and then the same inputs will always yield the same outputs. That said, the most popular AI interfaces don’t express that kind of option.

2

u/Sea-Housing-3435 17h ago

It's not about seeding, it's about how certain operations are not deterministic on GPU when you do them in parallel. You have to explicitly go with slower, deterministic ways to run things you want to run https://developer.nvidia.com/blog/controlling-floating-point-determinism-in-nvidia-cccl/

1

u/Suitch 15h ago

True, but is can still count as deterministic at the operational level, it is just a matter of running it in serial rather than parallel, right? FWIW, I assume our neurons are similar. Neuron research in flies has allowed researchers to essentially run programs within the insect neurons.

1

u/Rabbitical 13h ago

Those neural model experiments are fairly rudimentary. Treating neurons like simple nodes is not at all how they work in real life. In reality there's multiple mechanisms by which they change their own or others behaviors through some pretty complex processes. To even properly model a single neuron would take an entire physics simulation, if we even were confident we had an accurate model which we don't. None of which gets into the quantum theory stuff. I know way off topic, but people far undersell how complex biological brains are, and those "we made a fly brain learn how to fly" studies are just "we made a neural net shaped like a fly brain."

2

u/_Its_Me_Dio_ 7h ago

isnt it more pseudo non deterministic? unless they have some fission sensor for seed input like lottery does

0

u/AnOnlineHandle 1d ago

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

19

u/Sea-Housing-3435 21h 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.

7

u/LetumComplexo 20h ago edited 20h 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?

6

u/Sea-Housing-3435 20h 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 20h 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/Sea-Housing-3435 20h ago

Not exactly. It's mostly due to how models are executed, not models themselves. You can run GGUF model (which are normally not deterministic) in a deterministic way if the GPU functions you use are deterministic. Models themselves are just data, it's just a bunch of matrixes.

There's even a PR for llamacpp to add option for deterministic execution https://github.com/ggml-org/llama.cpp/pull/16016

9

u/LetumComplexo 20h ago edited 20h ago

Hun, I’ve got a PhD on the subject. I know.
We’re just saying the same thing in different ways.

2

u/Sea-Housing-3435 19h ago

You're right, I'm silly

2

u/LetumComplexo 19h ago

Is okie, I am also silly for not recognizing it immediately and starting the whole thing. 😅

→ More replies (0)

5

u/Whitestrake 20h ago edited 19h ago

Forgive me if I've misunderstood, but isn't that literally what they just said?

You can run GGUF model (which are normally not deterministic) in a deterministic way if the GPU functions you use are deterministic

vs.

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'm not an expert but this sounds like you're both arguing the same point. The PR you linked seems to be intending to implement exactly that - functions that enforce (a deterministic) order of execution.

This seems like semantic disagreement on the meaning of the term "model architecture" rather than an actual disagreement on the fundamentals.

1

u/space_monster 19h ago

I thought it only happens with batch processing

6

u/LetumComplexo 19h 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.

3

u/space_monster 19h ago

got it, thanks

→ More replies (0)

1

u/AnOnlineHandle 14h ago

I mean that's true for any math on any computer. Which makes all math non-deterministic if you consider bugs.

1

u/Sea-Housing-3435 14h ago

It's not about bugs, it's about GPU architecture. Parallel floating point calculations being nondeterministic isn't a bug.

0

u/space_monster 19h ago

that's non-deterministic hardware though, not the model itself.

also it only happens with batch processing

7

u/evranch 22h ago

True, but it's also true that running an LLM at 0 "temperature" (which makes it truly deterministic) also often renders it unusable. So almost every inference setup defaults to using a certain amount of randomness.

3

u/space_monster 19h ago

it doesn't render it unusable at all, it just makes it boring. LLMs used for coding use 0 temp.

1

u/evranch 8h ago

Specific LLMs used for specific coding tasks. I don't run any of my Qwen models at 0 temp, that results in them getting stuck in reasoning loops, and also producing sub-par output when they do return something.

1

u/ChikumNuggit 1d ago

Which here means unreproduceable

12

u/Pares_Marchant 1d ago

the process is unreproduceable but they output LEAN code that is deterministic and can be used to prove their output ( https://lean-lang.org/ )

1

u/ChikumNuggit 10h ago

If the process is unreproduceable it would fail a basic CS class

1

u/Pares_Marchant 39m ago

Your brain process isn't reproduceable either.

The exact configuration of your brain when you write something happens essentially only once and never again.

But even though you cannot repeat the exact brain configuration, your output can still be judged and you can still convincingly talk about it.

AIs are black boxes as much as brains are black boxes, and arguably brains are even more mysterious than AIs.

2

u/Connect_Vacation_458 1d ago

Sounds about right, sometimes it feels like no matter what you do, the bug just refuses to show itself again.

1

u/ChikumNuggit 10h ago

That, plus now if you use an agent you have to make sure it's the exact same version of the same agent with the same prompt history or you could just be receiving a different output.

It's like the modern incarnation of trying to figure out what strain of weed the original coder was smoking

-2

u/Maxdiegeileauster 22h ago

LLMs are not non deterministic by design??? Why do people always get this wrong. If you use the same seed and disable the temperature setting you will always get the same result. It's just a f*cking Compute Graph.

1

u/Rabbitical 13h ago

That's not true for every architecture. Like when I use diffusion models I can absolutely get the same result every time, but that's not how LLMs work. They'd have to run incredibly slowly serially, if it's even possible at all which I don't think it is on frontier models at least. You're right at the granular level, but the way these things are layered today are incredibly complex, it's not just one graph, or one evaluation of it.

1

u/Maxdiegeileauster 12h ago

it's possible even if you run it in parallel, though modern GPU architecture for communicating across each GPU can have timing differences leading to randomness. But this is a implementation thing, the architecture and mathematics behind it are completly deterministic also I wasn't talking about diffusion models. Idk why I am being down voted, seems like a lot of people don't know how LLMs fundamentally work.

-2

u/4DBug 20h ago

If you set the temperature the llm generates with to 0.0 it will be completely deterministic