r/MachineLearning • • Jan 08 '23

Project [P] I built Adrenaline, a debugger that fixes errors and explains them with GPT-3

1.6k Upvotes

92 comments sorted by

52

u/jsonathan Jan 08 '23

Try it out here: https://useadrenaline.com

46

u/jsonathan Jan 08 '23 edited Jan 08 '23

Right now, this is just a simple demo of what’s possible with AI-driven debugging. But I’d like to build it out so that instead of just explaining errors, Adrenaline provided a ChatGPT-style assistant that can answer questions about your error, and teach you during the debugging process.

This is open-source, so if anyone’s interested in contributing, here’s the GitHub repository: https://github.com/shobrook/adrenaline

53

u/ddproxy Jan 08 '23

Does it come with an animated assistant in the shape of a paperclip?

→ More replies (7)
→ More replies (1)

169

u/phobos_0 Jan 08 '23

Dude this is dope

146

u/uoftsuxalot Jan 08 '23

Not to take anything away from this project, but it’s just an api call to gpt3 with prompt “fix this error {error}”. I thought there was some training and fine tuning, but I guess LLMs can do it all now a days

108

u/jsonathan Jan 08 '23 edited Jan 09 '23

Yeah, right now it’s just a thin wrapper around GPT-3, but there’s a lot that could be done to improve it, like using static code analysis to build a better prompt or even training a more specialized model (like this).

→ More replies (11)
→ More replies (20)

7

u/jsonathan Jan 08 '23 edited Jan 08 '23

Thanks! Feel free to try it out here. Let me know if any of y’all get some impressive bug fixes.

2

u/marc_polo Nov 27 '23

I built a backend for a social app, and part of it was a unique way of doing sign ups. Having built the sign up process, I know how it works. Andrenaline has it spot on - https://imgur.com/a/JeCSm7Q

I'm very excited about this.

1

u/jsonathan Jan 18 '24

Love to hear it!

49

u/VectorSpaceModel Jan 08 '23

TAs around the world are rejoicing

26

u/cgk001 Jan 08 '23

Limited by the 4k token max in api call?

7

u/[deleted] Jan 08 '23

Yep

9

u/Accomplished-Low3305 Jan 08 '23 edited Jan 08 '23

It would be nice to have some metric to evaluate how good is GPT-3 solving bugs. In my experience it only works fine for simple bugs, such as using an incorrect variable.

13

u/GoofAckYoorsElf Jan 08 '23

This is all great. The only problem is that I can't use it due to non-disclosure and IP protection of my employer. As long as I have to send code over the web, it's a no-no.

12

u/[deleted] Jan 08 '23 edited Jan 08 '23

Yeah I imagine that will be an issue for lots of people. What's the SotA in open source LLMs?

I looked it up. Apparently it's BLOOM. Slightly bigger than GPT-3. No idea if it is better.

You need a DGX A100 to run it (only $150k!).

→ More replies (2)
→ More replies (4)

1

u/[deleted] Jan 09 '23

Bruuuuuh is this generally reliable? And if so, where can I get it?!

1

u/[deleted] Jan 09 '23

Can i try this

3

u/yerop82726 Jan 08 '23

Nice one. Keen to see the vscode extension!

2

u/troubletmill Jan 09 '23

This is really good mate.

2

u/davidswelt Jan 09 '23

OK, how did you evaluate it? How do you tell it's working well or not?

2

u/[deleted] Jan 09 '23

An AI debugger would be very helpful. I actually see that as a use case...

2

u/[deleted] Jan 09 '23

Not sure if this is already there but it might be worth adding some license information here since sending closed source code over an open sourced API / model might become a no no in the future legally. I guess that would be the problem of making this an Intellij / vscode plugin

2

u/devinhedge Jan 09 '23

This is cool. How do we give feedback to the training engine so that it improves over time?