r/ProgrammerHumor • • 2h ago

Meme machineLearningIntoABar

Post image
2.0k Upvotes

38 comments sorted by

218

u/unknown_pigeon 1h ago edited 1h ago

A reinforcement learning algorithm walks into a bar.

"JCKSOENBWKFOCJWBJEJQBWNFOOWNWBHHWNWNCIEI", it asks the bartender.

147

u/unknown_pigeon 1h ago

A reinforcement learning algorithm walks into a bar for the millionth time.

"Hey John, I'll have the usual, whiskey sour with a slice of lemon. Anyway, how's your wife doing? Are the kids doing fine in pre-school? I know it can be a chore", it says to the bartender.

"She died yesterday", the bartender replies.

"JCKSOENBWKFOCJWBJEJQBWNFOOWNWBHHWNWNCIEI", the algorithm replies before blowing up.

Another algorithm walks in and says "Hey John, I'll have the usual, whiskey sour with a slice of lemon. Anyway, how's your dead wife doing?"

97

u/Corsaka 1h ago

A machine learning algorithm based on Reddit is already at the bar. It says, "I also choose this guy's dead wife." It repeats this endlessly to every new algorithm that asks.

11

u/PeaNought 51m ago

fucking seriously.

8

u/DJDevon3 49m ago

right in front of my dead wife

1

u/CaptainDildobrain 10m ago

I kinda feel this is like in Groundhog Day when Phil is trying to woo Rita by creating the perfect day and refining his response each loop iteration.

9

u/drunk_kronk 1h ago

I like this one better

53

u/Wachtwoord 2h ago

This is how I do it when I go to a new foreign country I know nothing about

12

u/TheTerrasque 1h ago

It's not a bad strategy if you don't know what to pick.

1

u/DoktorMerlin 43m ago

Usually if I am in a new place and I order a drink I just say "I'd like a beer" so you usually get the locations default beer

1

u/Rational2Fool 13m ago

In Amsterdam, I asked for a Heineken and got an Amstel, because this bar served Amstel as the cheap beer. Apparently each bar had a contract with one brand or the other, but not both.

•

u/Wachtwoord 3m ago

Yep, that's true in all of the Netherlands. Most bars have one standard beer. And interestingly, Heineken also owns amstel

•

u/go_go_tindero 3m ago

what ? different bars serve different kinds of beer ? Europeans are crazy man

133

u/hereforinfoyo 2h ago

Actually, it says, "That's a great question! I'll have a glass of milk!"

Bartender says, "Really? That is odd. Most people have a beer. We don't serve milk."

The algorithm says, "Good call, you're right. That's a really good point. I'll have a beer."

159

u/melankoholisti 2h ago

It said a machine learning algorithm, not an LLM.

74

u/hereforinfoyo 1h ago

You are so right! Nice catch, my bad. I missed that.

(IN all seriousness, I should not particpate in conflating the two.)

algorithm would have TypeError: cannot drink float64

6

u/never1st 37m ago • Bravo

Bartender! May I exchange this float64 for a compatible type drink? I don't have the stomach for a double!

-28

u/weStealPrefixes 2h ago

... What do you think LLMs are?

39

u/SVD_NL 2h ago

A very small subset of ML algorithms?

-32

u/weStealPrefixes 1h ago

We have a winner! The answer I was looking for was "Machine Learning Algorithm!"!! Your prize is!... I dunno someone come up with something, I'm not even the show host.

10

u/sankalp4 1h ago

llms would be considered dl not ml.

2

u/weStealPrefixes 1h ago

It's literally a subset of machine learning.

12

u/n00b001 1h ago

ML is the process, like cooking. There are sub types of process, like gradient descent, or baking.

LLM is one possible result, like cake.

There are other possible results of cooking, like auto encoder / pizza

You could generalise, and call all these resultant "foods" (cake / pizza / etc): AI

4

u/sankalp4 1h ago

yes but it is considered (acc to both research and industry) a distinct field from ml now

0

u/weStealPrefixes 1h ago

Actually? That seems like a very odd distinction to make when it's still true...

3

u/SVD_NL 1h ago

Biology and Marine Biology are distinct fields, even though Marine Biology is a subset of Biology.

There are different ways to classify subjects, both can be true at the same time.

2

u/Mars_Bear2552 1h ago

what's the difference between an animal and a pigeon?

1

u/melankoholisti 1h ago

So I take it that you have not heard about jackdaws.

-5

u/jayantsr 1h ago

An llm is not just a neural network my guy

0

u/weStealPrefixes 1h ago

It's machine learning.

-3

u/jayantsr 1h ago

It is much more than that

0

u/weStealPrefixes 1h ago

... Right, yeah, the architecture is much different to just machine learning, the main topic that deep learning, neural networks, transformers, diffusion models, autoregressive models, all fall under... Because the machine learns.

2

u/Braunerton17 1h ago

I dont know what you are on about machine learning is a field or at best a process description and an llm is a model derived by using machine learning. Saying llms are machine learning is like saying messi "is a sports".

1

u/jabuchae 1h ago

An LLM is NOT a machine learning algorithm.

A machine learning algorithm is a way to train a machine (mostly neural networks) so they can perform a task. LLM are the result of such algorithms and are already trained.

As a side note: people will often say “I trained my LLM to do X”. That is also incorrect. They are not training the LLM (the training process is what happened before the LLM released, during the running of the machine learning algorithm), just because the LLM can follow directions you write in an md file it doesn’t mean you’ve trained it.

1

u/thereturn932 54m ago

You can train LLMs, though I don’t know if the people you mentioned actually do that. You can update the weights of an existing LLM with your own training data through fine-tuning. There are also methods like LoRA and QLoRA that significantly reduce the computational power required. This allows you to adapt a model to specific tasks without training it from scratch. Unlike simply feeding documents into an LLM, this actually changes its learned behaviour.

6

u/RosieQParker 1h ago edited 58m ago

The machine learning algorithm orders one of everything everyone else has ordered, mixes them together in a big bucket, and doles it out to customers. The cocktail is recognizable as an alcoholic beverage, but has no real character or distinctiveness of its own. Nobody is impressed.

"God, I'm such a great bartender," says the algorithm's operator.

0

u/Arnold_Rambo 1h ago

Only if there was a way to learn the whole computer science like this....

-3

u/Brief_Teach_2781 1h ago

Isn't it KNN