this post was submitted on 25 Jul 2025
397 points (98.3% liked)

memes

16588 readers
2470 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] sykaster@feddit.nl 6 points 1 week ago (4 children)

I asked this question to a variety of LLM models, never had it go wrong once. Is this very old?

[–] gigachad@sh.itjust.works 44 points 1 week ago* (last edited 1 week ago) (2 children)

They fixed it in the meantime:

if "strawberry" in token_list:  
    return {"r":  3}  
[–] towerful@programming.dev 8 points 1 week ago

Now you can ask for the number of occurrences of the letter c in the word occurrence.

[–] RidderSport@feddit.org 0 points 1 week ago (2 children)

You're shitting me right? They did not just use an entry grade java command to rectify and issue that a LLM should figure out by learning right?

[–] boonhet@sopuli.xyz 14 points 1 week ago (1 children)

Well firstly it's Python, secondly it's not a command and thirdly it's a joke - however, they have manually patched some outputs for sure. Probably by adding to the setup/initialization prompt

[–] RidderSport@feddit.org 1 points 1 week ago (1 children)

Java is the only code I have any (tiny) knowledge of, which is why the line reminded me of that.

[–] boonhet@sopuli.xyz 3 points 1 week ago* (last edited 1 week ago) (1 children)

Ah, but in Java, unless they've changed things lately, you have the curly brace syntax of most C-like languages

if ("strawberry" in token_list) {
    return something;
}

Python is one of the very few languages where you use colons and whitespace to denote blocks of code

[–] RidderSport@feddit.org 1 points 1 week ago

See, you're defined better, has been a decade for me ^^

Would it also shock you if water was wet, fire was hot, and fascists were projecting?

[–] BootLoop@sh.itjust.works 15 points 1 week ago* (last edited 1 week ago) (2 children)

Try "Jerry strawberry". ChatGPT couldn't give me the right number of r's a month ago. I think "strawberry" by itself was either manually fixed or trained in from feedback.

[–] sykaster@feddit.nl 5 points 1 week ago

You're right ChatGPT got it wrong, Claude got it right

[–] Zexks@lemmy.world 1 points 1 week ago

Works for me

5 — “jerry” has 2 r’s, “strawberry” has 3.

[–] ignotum@lemmy.world 10 points 1 week ago

Smaller models still struggle with it, and the large models did too like a year ago

It has to do with the fact that the model doesn't "read" individual letters, but groups of letters, so it's less straight forward to count letters

[–] psx_crab@lemmy.zip 1 points 1 week ago

Seeing how it start with an apology, it must've been told they're wrong about the amount. Basically being bullied to say this.