Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I had a lot of fun getting GPT-3 to figure out that special commands can be used for actions. I hooked it up to a light switch it could toggle with {light on} or {light off}, and controlled it with speech recognition. It worked surprisingly well: https://www.youtube.com/watch?v=YvJUXGqcrzM

After adding a delay function it could even do things like blink the lights when requested, and after making the video I added a dimming option it was also able to use.



> I hooked it up to a light switch it could toggle with {light on} or {light off}, and controlled it with speech recognition.

This _has_ to be the most complicated way ever invented of blinking an LED. :-)

(But, seriously, kudos. Sounds like a fun experiment.)


This is beyond amazing! very interesting to see the example prompt you're using, and how GPT-3 is able to utilise the commands!


> Prompt: Write a joke about how many machine learning engineers it takes to turn on a light bulb.

> Output: How many machine learning engineers does it take to turn on a light bulb? Just one, but it takes a lot of training data.


> Output (65%): Just one, but it takes 4 cents per switch.


How exactly did you do it? Would make a fun read.


click the link to the video, there's a link to code in GitHub in description


For those who prefer URLs on the Internet over verbal navigation instructions: https://github.com/Bemmu/Light-Switch-AI




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: