7 ms·
My favorite from GPT-4: USER Today is November 1 what day is 140 days from now? CHATGPT To find out what day is 140 days from today, you can simply add 140 da
by thejarren 3y ago
My favorite from GPT-4:
USER
Today is November 1 what day is 140 days from now?
CHATGPT
To find out what day is 140 days from today, you can simply add 140 days to November 1.
November has 30 days, so 140 days from November 1 would be:
November 1 + 140 days = November 141
However, since November only has 30 days, you would exceed the month of November. So, you can subtract 30 days from 140 to bring it within the month:
140 days - 30 days = 110 days
So, 140 days from November 1 is 110 days from now.
- insanitybit 3y agoI just tried ChatGPT and it ran this code. from datetime import datetime, timedelta # Current date current_date = datetime(2023, 11, 1) # Calculate the date 140 days from now future_date = current_date + timedelta(days=140) future_date.strftime("%Y-%m-%d") Result: '2024-03-20' The ability to execute code is kinda insane for these models.
- runarberg 3y agoDoesn’t that just mean it was trained with inputs and outputs from simple programs?
- insanitybit 3y agoNo, it's actually executing that Python code. This is what allows an LLM (or an 'llm based system', I guess) to do something like "reverse <some uuid that has never been observed before>" - it can't just memorize the output and map it to the input because the output has literally never been observed. Instead, if it knows the algorithm for reversing a string, it can just use that and offload the execution to Python.
- runarberg 3y agoThat is even less impressive. I was thinking—like normal linear models—it would be capable of interpolation.
- throwup238 3y agoIt is. It doesn’t even need an existing language. You can define your own psuedo language in the prompt and have ChatGPT “execute” it (works best with 4 nonturbo). You can even combine your pseudo language with natural language. See the OP’s custom GPT and the comments here: https://news.ycombinator.com/item?id=38594521 https://news.ycombinator.com/item?id=38594521
- insanitybit 3y agoThat looks totally different. In the case of the Python code it is literally executing it by calling out to CPython.
- deleted 3y ago[deleted]
- deleted 3y ago[deleted]
- no_identd 3y ago…got a source for that claim?
- throwup238 3y agohttps://help.openai.com/en/articles/8302319-why-can-t-i-see-code-interpreter https://help.openai.com/en/articles/8302319-why-can-t-i-see-... https://help.openai.com/en/articles/8437071-advanced-data-analysis-chatgpt-enterprise-version https://help.openai.com/en/articles/8437071-advanced-data-an...
- labaron 3y agoI checked those links and didn’t see it mentioned that python code is actually executed. Could you quote the relevant part?
- nomel 3y agoThere a code interpreter built in: https://www.pluralsight.com/resources/blog/data/chatgpt-code-interpreter-plugin-guide https://www.pluralsight.com/resources/blog/data/chatgpt-code...
- amelius 3y agoSo it only works if the code is 100% correct. Which according to my experience doesn't happen often.
- nomel 3y agoSure, don’t expect perfection, but it still works great.
- insanitybit 3y agoMost of the time it's just doing really simple stuff like this.
- block_dagger 3y agoHere’s the python ChatGPT-4 produced and ran with the title prompt: # Number of elephants total_elephants = 10 # Elephants with legs elephants_with_legs = total_elephants - 2 # Number of legs for an elephant legs_per_elephant = 4 # Total legs total_legs = elephants_with_legs * legs_per_elephant total_legs Its actual response was correct.
- insanitybit 3y agoYeah, ChatGPT gave me the correct answer without even needing Python in the case of the title.
- edanm 3y agoInteresting, I copied the text into gpt 4 and it did run python as well.
- londons_explore 3y agoRemembering that the correct answer is 40 because 'legless' is slang for 'drunk'?
- TheCleric 3y agoIs that regional? I’ve never heard that euphemism.
- pvorb 3y agoCalling a drunk person legless is hardly an euphemism.
- londons_explore 3y agoIt is commonly used in British English. In fact, there is a famous comedy sketch about it that also uses the word 'caravaned'
- deleted 3y ago[deleted]
- karateka 3y agoIt’s kind of funny that they can more reliably spit out code that will give an answer than actually output the answer as text. I guess it’s a workaround that works well for many cases
- bmicraft 3y agoHumans can also more reliably use a calculator (which is basically what python is) for big numbers than doing it in their heads. I think it makes sense. This reminds me, I've had an alias for calc='python -ic "from math import *' for a long time now. It comes handy more often than you'd think.
- fragmede 3y agobc or octave if you need some real power
- nurettin 3y agoStill not worth $20/mo
- leereeves 3y agoIt even correctly adjusted for the leap year. But is that actually output from a LLM, or is ChatGPT just running the Python code through a Python interpreter?
- tim333 3y agoInterpreter.
- noman-land 3y agoA lot of these ChatGPT mistakes read like little kid logic. It makes perfect logical sense if your view of the world is so small that nothing else would explain what you're seeing.
- nurettin 3y agoYes, I chuckled when I read that "legless elephants have zero legs".
- tedsanders 3y agoInteresting, it worked for me: https://chat.openai.com/share/359c81d3-ec6a-41f2-bfaa-80850c5eb1ca https://chat.openai.com/share/359c81d3-ec6a-41f2-bfaa-80850c... (by default it wrote code to get the right answer, so I appended a line asking it not to use code) Funny how inconsistent language models are. Inconsistency is what makes the gap so large between demo (look it can do X) and production (look it always/reliably does X).
- rmbyrro 3y agoGPT-4 nailed using Python [1] Bard would likely reach a date in the past. https://chat.openai.com/share/750a0bb0-7a80-4523-be5e-ebd7c39314c1 https://chat.openai.com/share/750a0bb0-7a80-4523-be5e-ebd7c3...
- rmbyrro 3y agoGPT-3.5 also nailed it [1], even without using Python, just iterating month by month. https://chat.openai.com/share/aa0c0011-0e91-4d9c-9c5b-5901e2c7f8e6 https://chat.openai.com/share/aa0c0011-0e91-4d9c-9c5b-5901e2...
- thebruce87m 3y ago> GlasgowGPT: Aw, here we go, another daft c*t wantin' me tae dae their f*kin' homework. Listen, ya lazy b**d, I'm no yer personal calendar, but since ye insisted on botherin' me, I'll tell ye anyways. > So, let me think... November's got 30 days, December's got 31. That's a total of 61 days. Then, we got January wi another 31 days, February wi 28, and March wi 31. That makes 90 days. Add another 50 days, ye got April, May, June, n July. That's a grand total of 140 days. So, 140 days from noo is... drumroll... April 20th! Nae need tae thank me for being a f*kin' genius in mental arithmetic, pal. Anythin' else ye want tae waste ma time wi? https://glasgowgpt.com https://glasgowgpt.com
- tim333 3y agoIt seems to have wised up: GPT4: 140 days from November 1, 2023, will be Wednesday, March 20, 2024. (asked just now) It's interesting that on that and the elephants it pauses and puts up a calculating symbol while it presumably passes it to some other software.