313 points · by dogon · 3y ago · 146 comments
For instance:
1. The description it gives of how to generate a Shepard tone is wrong; to make a Shepard tone, you need to modulate _frequency_, not (or not only) amplitude.
2. The Shepard tone it generates is also wrong, but in a different way. For instance, there's no bass at the end matching the bass at the beginning, so it can't be looped to create the illusion of infinite ascending motion.
3. The "Game of Life QR code" isn't actually playing the Game of Life in a way that results in a QR code. It looks like it's starting with a QR code and playing the game of life, then time-reversing the result; so you see the Game of Life running "backward" until you get to the QR code as an initial state. I say "seems like" because I can't be confident it hasn't made any mistakes. This _may_ be what the author intended by "working backwards"? But I took that to mean that it should "work backwards" by first finding a state S that stepped to the QR code, then finding a state S' which stepped to S, etc; so that you'd have a run of the game of life ending in a QR code. This would involve actual search, and there are patterns which simply cannot be achieved this way (have no predecessors).
4. The planet orbit simulation seems to have all planets in circular orbits, rather than elliptical. For Earth this is probably unnoticeable, but Mars' orbit varies from 1.38 AU to 1.67 AU - quite noticeably elliptic - but appears circular in the "simulation".
etcetera, etcetera. There are also plenty of "obvious" glitches in the graphics simulations, but those concern me less - precisely because they're obvious.
You cannot even be correct with GPT, once it's in an error state you must start a new session. The chance of hallucinations rises rapidly.
It feels like it's trying to cover itself. Pretty weird stuff.
Add an interpreter as per this article, and we're basically there.
That he doesn't expect people to be doing what we call "prompt engineering" in 5 years. You'll simply ask for what you want and if there is ambiguity it can be sorted out interactively or it will just do the 'right' or obvious thing that we would expect.
Right now, you can't ask chatgpt to "think of a person, and the user will guess who it is". It can decide to think of something, but has nowhere to put that information. It should be put into the scratchpad.
Scratchpad could potentially be used for solving problems step by step too, much like how we consciously think through problems step by step. If it gets too complicated for us, the mental scratchpad we use is augmented by a physical notepad or other system.
You could also say that it enables an internal monologue.
Obviously LLM models cannot be compared one to one with our brains, but one thing is clear: despite them being executed by a computer, they are not the computer that is executing them and as such their ability to do operations that are trivial for the computer is not necessarily trivial for the language model.
Another point, the apps that I wrote with GPT-4 were filling gaps in my platform and things that would never have come off the backburner due to the lack of ROI. I wonder how we can accelerate contributions to OSS projects. Knocking out new features, refactorings and technical debt 10x faster. Of course it has to be done with care but -- an army of willing AI contributors...
Commit times are plain text user generated content
Just throw generated commits in a private repository and you have as much history as you want
If a sycophant or recruiter or employer wants to use that metric as an indicator of anything, that is pure happenstance and completely on them
If I'm your hiring manager, I won't be bothered by it, since I know you can use ChatGPT to solve problem, which is what the company needs. But I will still need to assess you more in detail, to ensure that you can develop / solving problem well without ChatGPT, in case somehow it's unusable or provide wrong answers.
LLMs are impressive, but hacking on pre-existing complex codebases seems to be a current weakness.
One interesting question is: when people are using LLMs to generate software for their own use, what will they do for the server component of client-server use cases? Is "LLM, go register me an EC2 instance and configure it not to go over $20/mo, here's my credit card number" totally out of the question?
> ? Is "LLM, go register me an EC2 instance and configure it not to go over $20/mo, here's my credit card number" totally out of the question?
I suspect we are _way_ closer to that than to having it respond to "make me a game like clash of clans".
> The hard part of defining requirements is being specific in them
True but I don't think you're accounting for iteration. You know the "idea guy" cliche? Today, if/when this "idea guy" hires a team of devs from India to make his million-dollar idea into reality, his inability to write good requirements will lead to a useless app, and the idea guy asking for changes (that are also poorly described) until he runs out of money, right?
Now imagine that his "dev team" works for free and can turn around each new set of requirements in minutes rather than months. How long will it take him to learn how to good acceptance criteria? A day? A week? It's hard but not that hard. And a million or two other "idea guys" are doing the same thing, and sharing notes with each other.
> It's hard but not that hard.
It really is that hard. It's basically 90% of staff+ engineer's job.
I don't doubt that AI and ML in particular will absolutely change our industry, but as an engineer I see chatGPT as a tool like copilot, a debugger, or a linter. All those tools make me an order of magnitude more productive, but they're useless without the human making the decisions
But if a few people asking the right prompts is all you need, what happens the to other 50-100+ people a game like Clash of Clans would normally employ?
2. You don't have to find a good blog article that works for your specific purpose
3. You can ask for changes to the code like "translate this code to python" "I want to use Azure instead of AWS" "add a database so I can save player scores" etc. and it will both write the code and explain what it did.
4. You can ask for elaboration if you don't understand something, it can describe code or it can further explain written text.
5. It can explain why you're getting an error message after you change something and suggest a way to fix it.
7. If you have a feature you want to add but don't know how you can just ask it and it will show you how to implement the feature and how to integrate it into the existing code.
There's a lot more, too much to list but every one of these is far more useful than just cloning a repo and following an article.
Have you actually tried this yourself? I have probably... 300+ ChatGPT chats/sessions past 30 days (aka, I actually use it).
I have 0 faith it would actually spit out anything error-free / working.
The scariest thing is that... I did use Chatgpt to set up an aws cloud formation stack for a lambda function, and it gave me the right file to sync.
So... Yeah, it's not that many steps to a "text to (web|mobile) app generator" solution.
Uh.. I will get to work.
Until we see chatgpt figuring out how to fix issues like that, I'm not worried.
[0] https://iamondemand.com/blog/how-to-deploy-your-lambda-funct...
ChatGPT: Below is an AWS CloudFormation YAML template for creating an AWS Lambda function with 16GB of memory:
```yaml AWSTemplateFormatVersion: '2010-09-09' Description: 'AWS CloudFormation Lambda Function Template with 16GB Memory'
Resources: LambdaFunctionRole: Type: 'AWS::IAM::Role' Properties: AssumeRolePolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Principal: Service: - lambda.amazonaws.com Action: - sts:AssumeRole Path: / Policies: - PolicyName: LambdaExecutionPolicy PolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Action: - logs:CreateLogGroup - logs:CreateLogStream - logs:PutLogEvents Resource: 'arn:aws:logs:::*'
LambdaFunction:
Type: 'AWS::Lambda::Function'
Properties:
FunctionName: MyLambdaFunction
Runtime: python3.9
Role: !GetAtt LambdaFunctionRole.Arn
Handler: lambda_function.lambda_handler
MemorySize: 16384
Timeout: 300
Code:
ZipFile: |
import json
def lambda_handler(event, context):
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda with 16GB memory!')
}
```This CloudFormation template creates an IAM role and a Lambda function with 16GB (16384MB) of memory. The Lambda function runtime is Python 3.9, but you can change this to another runtime if necessary. The code block contains a basic Python script for returning a simple message; you can replace this with your own script.
Let's say a simple single purpose web app such as Calendly. Why should I pay for such a service if I can just ask the LLM to create the entire app for me?
In TFA, the author let the LLM create an ics file. Why shouldn't the LLM also spawn a REST endpoint and serve stuff from it matching my prompt?
The more interesting question is, once non-technical people are able to auto-generate their own apps, what backend will they use and how will they handle auth? The easiest default option today is "cloud services, and 'log in with facebook' oauth" but we can hope for better...
Pls make website, all responsive like, w/ BIG pictures ooo, use my fav fonts, also fancy menus with whoosh on, load fast pls.
Thanks, Human
PS, no bugs :)
It would be awesome if gpt4 could be made to edit the code and therefore, it didn’t have to regenerate it from scratch every time.
The regeneration also chews up a lot of the token limit, so it forgets crucial parts earlier on in the conversation.
If there was any point in doing it, people would’ve already done it 1000x, the LLM adds no value here.
It's far from movie quality right now but there are a lot of people working on this sort of thing. People are also exploring text to 3D scene, model, and character generation pair that with text to animation which is also being worked on and we've at least taken the first steps towards that goal.
Which sucks because I want it to help me write multiplayer videogame net-code!!! It's too dang hard!!
Certainly a human with an understanding well enough to produce a working example in 30 seconds of thousands of different problems on GitHub would have the synthesized knowledge to figure out Netcode really quickly and easily for a complex game, how to structure it well, and even how to test and debug it just all immediately.
GPT-4 can't solve the easy, newer problems at CodeForces, but gets all the older hard problems.
Sure, I can make a Shepard tone for you.
>>> COMMMAND { "action": "run_python", "program": "import blah\n...." }
and the driver (the program running the inference loop, AI people what do you really call this?) recognizes that the AI "predicted" this escape sequence and then when the command is finished being "predicted" it runs it. Then the result is added to the prompt. The AI can then see the result and use it.Re: token limit. A token can be a whole word and there can be thousands of them in the context window simultaneously. So it can look back quite a long way. GPT-4 is rumored to have a token limit in the tens of thousands, although the true number is apparently not public. So that's a lot of code and results.
That said, if you asked for a program that emitted a million line CSV file and then expected the AI to read it, it would indeed get very confused and go wrong because it'd lose track of what it was trying to do. But that's no different to asking a human to mentally digest a million line CSV.
Not try to read all of the lines
"Prompt engineering" ChatGPT English in this case is like a new higher order programming language. Prolog meets Ruby. A Haskell for mortals. No more counting parentheses or semicolons which turns away a lot of people from coding.
I guess that is magical, yeah.
Just consider all the prompts ever entered as just another set of data ;-)
I suppose the next intriguing step is for it to not just spew the boilerplate but pick on its own what are the best components to connect - hard to predict how far away that might be.
There are already working demos of ChatGPT writing incorrect code, running the code and seeing the incorrect output multiple times, and then iterating until the code worked. AI can write and rewrite infinitely, thousands of times a day, until it gets the desired result, learning and refining it's own process as it goes, and being fine tuned with human feedback.
This is especially true in something completely digital like programming where it's possible for the AI to run the code and use the output as its next prompt. At the moment it needs human feedback to know if the art it just generated is garbage, but the code it can test itself.
It does beg the question: How well does the LLM work on non-English languages?
He did mention translators, but I think he was talking about a more primitive incarnation.
I suspect that the Chinese have a version that works well with Chinese input, and maybe the Koreans and Japanese, but I'll bet one of the limitations is how much material is available to learn on, and the contractors needed to verify the training.
It sounds like training is a really expensive task, and may mean that for-profit corporations could get a lock on it.
I'm wondering if we'll be seeing "AI patent trolls," where you are sued, because your LLM has similar responses to someone else's. I see a whole industry springing up, around that (probably with AI lawyers).
The great thing about niche languages is that it's not cost effective to scammers to learn it for their purposes. That all changes now I suppose.
Well I haven't chatted to it much in Chinese, but I've asked extensively about Chinese, and that's probably one area where I get the most benefit. It can accurately translate, segment, romanize, and break down phrases; it usually does a pretty good job explaining why a given word was used, and is good at giving you example sentences using a given word or grammar pattern. I'd be surprised if it were significantly worse in Chinese than in English.
I have not used ChatGPT much but I see more and more uses that are not obvious ones (and usually only the obvious ones are addressed in articles or posts)
"If I want to remove plaster from walls, which tools should I use? What should I do with the debris afterwards?"
"Which kinds of cavity wall insulation exist? Will this cause moisture problems in my house? What can I do to detect or prevent these kinds of problems?"
"Is it useful to insulate interior walls in an old house? Or should I just focus on the exterior? Will interior wall insulation raise the EPC (energy performance) of my house?"
There are parts that doesn't really seem to follow the game of life indeed.
I'm still on the waiting list, or I would test it myself.
This morning I feel oddly compelled to play the fool so here are some near/medium term thoughts on where this may be going (worth less than what you paid for them):
1. The most important ChatGPT plugin is going to end up being the one that invokes itself recursively. The autoregression approach seems to be severely limiting what these models can do by limiting their ability to think without speaking. Although a few months ago I thought the obvious way to fix this was to train the model to emit special sort of "bracket" tokens that would be deleted by the driver once the inner thought completed, leaving only a sort of "result" section, the GPT-as-a-GPT-plugin effectively does the same thing
2. Whilst the first biggest win from the plugin will be "sub-thoughts", the next biggest will be training it how to dispatch multiple sub-thoughts in parallel. GPT already knows how to break a complex problem down into steps, but is still constrained by context window size and inference speed. Once it is taught how to split a problem up such that multiple independent inference sessions are able to work on it in parallel, it'll become feasible to make requests like "Build me a video game from scratch using Unreal Engine, set in the world of Harry Potter, about the adventures of a character named X" etc and it'll end up dispatching a massive tree of GPT sub-instances which end up working on the independent parts like character generation, writing the Unreal C++, prompting Midjourney and so on.
Parallel recursive LLMs are going to be much more awesome than current LLMs, and I mean that in both senses of the word (cool, awe-inspiring). In particular, this will allow us to pose questions like "How can we cure cancer?".
3. OpenAI need a desktop app, pronto. Whilst the cloud model can take you some way, the most valuable data is locked behind authentication screens. The cloud approach faces difficult institutional barriers, because data access inside organizations is oriented around granting permissions to individuals even when they work in teams. Giving a superbrain superuser access doesn't fit well with that, because there's no robust method to stop the AI immediately blabbing business secrets or PII to whoever tickles it in the right way. That's one reason why the current wave of AI startups is focused on open source technical docs and things. If ChatGPT is given tool access via a desktop app running on the end user's computer, it can access data using the same authentication tokens issued to individuals. This also neatly solves the question of who is accountability for mistakes: it's the user who runs the app.
4. Sandbox engineering is the new black.
My blog audience is very non-technical so I write very broadly. We've been super busy with the launch of GPT-4 and Plugins (I produced the video content, found examples, briefed media on technical details, etc.) so I was only able to grab a few hours to put these demos together.
As far as the ChatGPT prompts go, I included a few, but they're just simple instructions. Unlike GPT 3.5 where I'd spend an hour or more getting the right instruction to do zero-shot app creation, GPT-4 just gets it.
After a stint in entertainment I realized that AI was where everything was heading. I took up programming and started studying AI.
I've been repeating this for a while now, I think OpenAI is 50% marketing, and a part of the rest is product.
GPT-enhanced code execution already exists (Langchain).
>sub-thoughts
Someone's trying to implement long-term memory : https://github.com/wawawario2/text-generation-webui
> GPT-as-a-GPT-plugin
> Parallel recursive LLMs
Anyone else?
(edited to delete a post that was already answered by the other reply)
docker run --rm python:3
There you go. Before putting it in production, I recommend reading up some on seccomp, user namepsaces, and other security options, but to be honest you're already pretty fine with just that.Want more options? AWS lambda supports python. Cloud functions of various clouds (google, probably azure, etc) support python. Those are all sandboxes.
You can cross-compile python to wasm, and run it directly with javascript... or with any of a number of sandboxed wasm runtimes.
All that said, given the python packages they have available, my money is on a bunch of docker containers, not wasm or lambda or such.
This powers tio.run
Even though it's doing (most) of the programming and gluing stuff together, understanding the fundamental structures underneath is still pretty critical to really take advantage and push the boundaries.
It's still in development, but you can currently run bash and python from any markdown code blocks in the chat.
I'm working on getting a terminal emulator over the code blocks for better integration.
https://old.reddit.com/r/interactivefiction/comments/11z6p84...
Yesterday I went as far as implementing narrator/listener roles reversal. The player can now take over narration. As a result he must write what an IF system would print on the screen, and the IA replies by issuing commands, endorsing the role of the player.
This is unprecedented, all the more so 99% of the work is done by simply asking: "Let's play a session of interactive fiction".
I agree the comparison is a bit unfair since ChatGPT4 did not produce any code, so I would have to compare this against chatting with someone pretending to be an IF system.
But is it ? The most popular language used to write interactive is Inform7. Inform7 is a language that reads like english (a control subset of it) to program text based games the player interacts with using a very limited form of english, the limit being your capacity at handling textual structures using programmatic constructs.
Couldn't we program entirely using natural language this way (and maybe have ChatGPT writing its own Evals on the go) ? To me it looks like a new kind of programming that's mostly conversational rather than instructional. Instead of composing together contextless bricks to build towers of abstraction and striving for easily adaptable/maintainable code, which are consequences of the fact the concepts named in our codebase are influenced by the distributive aspects of meaning in real world ("hey, want to hear the last news ? Management has decided multiple users should be able to manage the same account"), our building material is some kind of primordial plasma of context out of which logical, cartesian, categorical forms can be enticed to emerge by priming the medium. This could become semiotic programming, in contrast to symbolic programming. Another aspect of Inform7 that's particularly interesting is the fact it is built upon a literate programing "web" engine. Seen in juxtaposition to its latent and broken homoiconic tendency and transposed to ChatGPT this makes for very interesting prompts where the lines drawn between documentation, code and programmed material gets blurred, as I explain using text (maybe to myself ?) how to imagine text using text.