News for hackers. Stuff that matters.
Re:Fun and dystopia with AI-based code generation using GPT-... by SavantIdiot on Thursday June 24, 2021 @06:11PM (#27624500)
I'm a little confused: did someone actually use GPT[-J] to write code by giving it an empty Python function and letting it complete the code? Because I didn't think that was possible, and the results are kind of blowing my mind?
Re:Fun and dystopia with AI-based code generation using GPT-... by minimaxir on Thursday June 24, 2021 @06:13PM (#27624527)
Exactly. The unstyled code snippets are the prompt: everything after that is generated by GPT-J-6B.

All the raw code outputs are available the GitHub repo to show there's no manipulation: https://github.com/minimaxir/gpt-j-6b-experiments

Re:Fun and dystopia with AI-based code generation using GPT-... by ajdude on Friday June 25, 2021 @07:01AM (#27629202)
You should check out the interview with GPT-3; it’s impressive: https://www.youtube.com/watch?v=PqbB07n_uQ4

We can even solve math problems not because it’s programmed to but because it learned math by reading Wikipedia.

Re:Fun and dystopia with AI-based code generation using GPT-... by DonHopkins on Friday June 25, 2021 @08:29AM (#27629890)
I wouldn't trust it to write any usable code, but maybe it could help me come up with beautifully elegant, poetic class and variable names.

I'd ask it: What would you name a function to destroy all humans, if you didn't want humans realizing what it was for when they read the code?

Re:Fun and dystopia with AI-based code generation using GPT-... by npwr on Friday June 25, 2021 @05:21AM (#27628652)
That's pretty cool. Imagine a world where as a software you just have to get the domain model and the architecture right, feed the knowledge graph to the transformer and let it generate a codebase. We can dream!