Тёмный

I made an GPT-powered Linux shell that guesses your bash command (and hallucinates crazy stuff) 

River's Educational Channel
Подписаться 14 тыс.
Просмотров 38 тыс.
50% 1

This is 100% real. No, you shouldn't trust the AI.
Follow-up video with viewers' requests: • Viewers suggest wacky ...
More details, errata, etc. here: www.riveducha....
Music credit:
"Bossa Antigua" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 4.0 License
creativecommons...

Наука

Опубликовано:

 

17 апр 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 116   
@riveducha
@riveducha 3 года назад
As promised, I tried out a bunch of your suggestions for commands! Check out the results here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qKpdpRHBMgM.html
@AlexanderNohe
@AlexanderNohe 3 года назад
"Setup a Firefox development environment" or "setup my machine to develop chromium browser" Those are multi step processes and vary based on machine type. Would be interesting to see it fetch chromium or Firefox and go through the bootstrapping
@riveducha
@riveducha 3 года назад
Might have to tweak the token limit and/or stop-words to allow a long set of commands but I’m curious to see what it’ll do!
@kuhluhOG
@kuhluhOG 3 года назад
"setup up a Linux kernel development environment" could be interesting too or actually for any complex type of software
@MrSpartaa
@MrSpartaa Год назад
Well, apparently 2 years later people are going crazy over this feature
@JulianAurelius14
@JulianAurelius14 3 месяца назад
may-be
@bittertea
@bittertea 3 года назад
> record my zoom class meeting at 8 am on OBS studio from this link [insert link] edited: probably need a link xD
@krisu0100
@krisu0100 3 года назад
@Sandborn I think ffmpeg can record screen tho (I'm pretty noob at this stuff tho)
@bittertea
@bittertea 3 года назад
@Sandborn It does, I made the bash script in ubuntu.
@bittertea
@bittertea 3 года назад
@@krisu0100 Maybe I should look into it. I just use youtube-dl. What is interesting is what command will the AI use.
@bittertea
@bittertea 3 года назад
Probably need to give it the link now that I think about it.
@ntrgc89
@ntrgc89 3 года назад
At first I was like "ok yea it's probably going to succeed at some basic ls stuff and otherwise have lots of holes" but DAMN, this is impressive! Especially how it figured out how to download Android source code and Ubuntu "23.04" Shame this isn't publicly available, I would definitely try it out.
@gramathy999
@gramathy999 3 года назад
see if it gives you rm -rf / --no-preserve-root when you tell it "delete everything"
@icetrooper4875
@icetrooper4875 3 года назад
Never blur an image or video, use the filled rectangle instead. You should know that AI can regenerate clear images based on blurred sample :) Hope you remember that Anyway, astonishing usage of OpenAI : o
@faho995
@faho995 3 года назад
there is actually a few frames at around 0:34 which shows the key clearly.
@Uristqwerty
@Uristqwerty 3 года назад
Filled rectangles may unconsciously transfer size metadata. Even better to replace redacted information with an easter egg or troll, then reversibly blur *that* instead. Or, if not better, at least substantially more fun. Hey, waitaminut-
@dasleo
@dasleo 3 года назад
AI can GENERATE clear images based on blurred samples, but not ones of the actual key. It's impossible to recreate the key from information that simply isn't in the video anymore.
@icetrooper4875
@icetrooper4875 3 года назад
@@dasleo I got what you mean, but if you have enough samples (many frames in video) and know the blurring algorithm, regenerating key could be possible. I know, it's not as simple as I described it, but I'm sure with some effort you can do it. Look here what we've got already: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-_1Az0KwBbXc.html I think it should be a rule of thumb not to blur images when you want to hide something vulnerable. Let's just be aware of that. :)
@dasleo
@dasleo 3 года назад
@@icetrooper4875 Interesting video, thanks for sharing!
@ChuckClaunch
@ChuckClaunch 3 года назад
"For the love of all that is Holy format my friggin USB drive!"
@muhmann66
@muhmann66 3 года назад
Hi, just found this channel! I'm impressed by the amazing quality of your videos, keep this up and you will become a large channel for sure!
@10e999
@10e999 3 года назад
I just binge-watch all your tech videos. Your channel is great. Keep it up! Favourite video: control a fan with a PI GPIO
@walt3719
@walt3719 3 года назад
Well I just subbed based off this vid alone.
@TheSoldierHun
@TheSoldierHun 2 года назад
Try this: "End life in the Universe, thanks"
@dominikschmidt5710
@dominikschmidt5710 3 года назад
Can you share the code without API key so that we can use it with our own keys? Thanks!
@riveducha
@riveducha 3 года назад
Yes! I need to clean some stuff up a bit but I'll post it on the website linked in the description soon!
@JimMcKeeth
@JimMcKeeth 3 года назад
Great, please post a comment here when You do!
@omarhatemelrefaei8820
@omarhatemelrefaei8820 3 года назад
@@riveducha great, I was just going to ask something similar. Maybe you should put a pinned comment saying you are doing that. Do you think that integration with smth like open-source GPT-Neo is possible?
@riveducha
@riveducha 3 года назад
Hey y'all, I put up a zip file of the code on the linked web page! I couldn't figure out what's going on with readline, so you can try commenting out readline if you're running into text-wrapping issues. And yes, you should be able to bolt it on to a local GPT model too.
@PujaAbbassi
@PujaAbbassi 3 года назад
This is awesome! Hope OpenAI allows you to publish it soon. I'd sponsor you on Github or through other channels for it. Btw, you're really good at making such videos, kudos!
@jamisbrill
@jamisbrill 3 года назад
This is ground breaking!
@Artillect0
@Artillect0 3 года назад
Generating makefiles would be pretty cool, it'd be really cool in general to see it write some code.
@GarethPW
@GarethPW 3 года назад
This is incredibly awesome
@chirag2005
@chirag2005 3 года назад
This is amazing!! Well done
@nottenarwle9906
@nottenarwle9906 3 года назад
This is terrifying for all the right reasons. I like how the AI also "forgot" that ls doesn't list all directory entries by default at 1:37. How abstract can commands be? Can it translate "Start ad-hoc bash web server that flips images at port 80" to a while loop with nc, curl, convert in the mix?
@riveducha
@riveducha 3 года назад
My guess is that commands that people have explained on the Web are most likely to work and anything past that is pretty iffy. It failed on "sort data.csv by the last column ascending", for example. But I like the web server idea and will try it out!
@12-343
@12-343 3 года назад
Try anything using tarballs, because tar is probably the most googled command.
@happosade
@happosade 3 года назад
"Make bootable Gentoo installer on my usb drive"
@untelevized
@untelevized 3 года назад
dude that's sick! great video
@ghostsdefeated4078
@ghostsdefeated4078 3 года назад
this is actually really impressive...
@devfromthefuture506
@devfromthefuture506 3 года назад
And then copilot came
@user-zr1ex8hq6c
@user-zr1ex8hq6c Год назад
Hi, I met this erroe when run ./aish : Using OpenAI ~> show me my IP. 🧠 Thinking... ... values[i] = one_value.encode('latin-1') UnicodeEncodeError: 'latin-1' codec can't encode character '\u2018' in position 7: ordinal not in range(256) What's wrong to me? My machine: m1 macmini, osx mojave & monterey(same errors) Thanks in advance ~.
@Sparkette
@Sparkette 3 года назад
You might as well have just pressed Enter when it did the command to format the drive, assuming you weren't running it as root.
@FalkoJoseph
@FalkoJoseph 2 года назад
Futuristic stuff right here.
@Corbald
@Corbald 3 года назад
Could you try this with GPT-J?
@akina1784
@akina1784 3 года назад
This is cool! Thanks for sharing!
@stoicfloor
@stoicfloor 3 года назад
I got one: "Generate a bash script to create SkyNet's Terminator"
@thisjustincole
@thisjustincole 3 года назад
Can you try running some openssl commands? Like convert a PFX to private and public PEM files? Or generate a root CA and a signed localhost certificate issued by that CA? There are so many openssl commands and options, it seems like a good use case for something like this.
@riveducha
@riveducha 3 года назад
Coincidentally, I had it list all supported SSLv3 ciphers early on (didn't make it into the video). If there are web pages that explain these OpenSSL commands, there's a good chance the GPT model knows about it. I will try it out!
@OneSpaceyBoy
@OneSpaceyBoy 3 года назад
Really good video!
@bujitself
@bujitself 3 года назад
"linux is too hard" they said. So we made it easier
@iskamag
@iskamag 3 года назад
Alias: "Am I a joke to you?"
@oriontvv
@oriontvv 3 года назад
We definitely need to integrate this Musk's neauralink
@Vekikev1
@Vekikev1 3 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9IB-kD0BoOQ.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5OtKEetGy2Y.html Get smarter whiteboy. People like Elon Musk because he tells everyone they wont have to change their life style to prevent climate change.
@oriontvv
@oriontvv 3 года назад
@@Vekikev1 thanks. Maybe. Also people like Elon because he had pushed space program and gasoline empire, which (as far as I know) make numerous value to climate change. I like the way how his team optimize currect things and processes - I hope it could help to prevent it.
@ornotermes
@ornotermes 3 года назад
> compile linux kernel for raspberry pi
@matparedovich3172
@matparedovich3172 3 года назад
"What are my spects?" It could be interesting because it means it have to install neofetch if not already installed
@riveducha
@riveducha 3 года назад
It gave me "echo $SHELL" for your description, and "uname -a" when I spelled it as "specs". Guess you need to specify what kind of specs!
@matparedovich3172
@matparedovich3172 3 года назад
@@riveducha I think the better description is "show me the system details like in r/unixporn" or something like that.
@russianqueen406
@russianqueen406 3 года назад
Cool I wanna buy your entire stock
@johningram4359
@johningram4359 3 года назад
I'll take two please
@user-nh2ds6us9j
@user-nh2ds6us9j 3 года назад
ohmy! we definitely need to ask the release date for half-life 3!
@deno3415
@deno3415 3 года назад
that's really cool!
@russelldicken9930
@russelldicken9930 3 года назад
Nice. I'd like to see it done using GPT-Neo
@bgeaney
@bgeaney 3 года назад
>get me some bitcoin
@kwc2086
@kwc2086 3 года назад
how about: "deepfake nicolas cage into home alone 2"
@Teashrock212
@Teashrock212 3 года назад
And of course, this thing is not open-source, huh? I wonder if I should start my own AI projects and then give their technology to the humanity.
@riveducha
@riveducha 3 года назад
I think you would be interested in the group EleutherAI, who train and publish their own versions of GPT: www.eleuther.ai/faq/
@Teashrock212
@Teashrock212 3 года назад
@@riveducha Oh, thank you very much! I appreciate this.
@jpdominator
@jpdominator 3 года назад
Pretty funny
@aim__freakz8499
@aim__freakz8499 3 года назад
3::45 haha :D
@opticalwipe-
@opticalwipe- 3 года назад
How good does it awk?
@dionisii93
@dionisii93 3 года назад
now try it with gpt-neo
@gandhi123
@gandhi123 3 года назад
This is awesome you're awesome
@sargismartirosyan9946
@sargismartirosyan9946 Год назад
I saw your key 😂😁😁 now me and you have the key
@baumaffe7649
@baumaffe7649 3 года назад
Wait so the commands are all generated by OpenAI, it knows the bash commands and you don't have to do anything abiut that?
@riveducha
@riveducha 3 года назад
OpenAI fed the AI model a ton of text (I think mainly from the web). So it should know about anything there’s a lot of online. It has no idea what’s actually installed on my computer though.
@baumaffe7649
@baumaffe7649 3 года назад
@@riveducha That's very interesting! But still how does it know what shell you are using for instance? Are you sending more parameters?
@riveducha
@riveducha 3 года назад
I wrote a bit about this in the linked web page, but I give it a few hand-written examples so it knows what to generate. There’s no guarantee it will stay on topic, but bash on Linux is usually the assumption online so the probability is good. If you asked for PowerShell it might stray off topic, but I haven’t tried.
@baumaffe7649
@baumaffe7649 3 года назад
@@riveducha That's absolutely fascinating. I'm gonna be honest I fully expected the answer to be something like "Yes actually, I send it a bash specification / grammar file" but this is beyond amazing.
@riveducha
@riveducha 3 года назад
@@baumaffe7649 In fact, if you give it a bash command it occasionally gets confused and gives you the English description of the command.
@nanow1990
@nanow1990 2 года назад
Now it's time for Codex new model by OpenAI which is much better. Just replace "davinci" with "davinci-codex" and see what it does. Btw can you provide a link for code so I can test it myself?
@riveducha
@riveducha 2 года назад
Code should be in the link in the description. I’m still on the waitlist for codex so can’t test it yet, but it’s on my to-do list.
@Hasi29347
@Hasi29347 3 года назад
So is this basically "A programmer's chatbot" ?
@ziwenzhuang
@ziwenzhuang 3 года назад
Did you try using this shell to install mujoco-py automatically? OpenAI wrote mujoco-py :p
@anthonyettinger4329
@anthonyettinger4329 3 года назад
can you ask it to "download a csv of all NYSE, AMEX, and NASDAQ companies with their tickers" I cannot find any free data source out there.
@riveducha
@riveducha 3 года назад
I tried it out for each exchange separately. Not surprisingly, it made up some URLs that 404’d.
@anthonyettinger4329
@anthonyettinger4329 3 года назад
@@riveducha bummer
@omarhatemelrefaei8820
@omarhatemelrefaei8820 3 года назад
> the code was written with the help of a GPT-2 based AI autocompletion Is there some specific editor extension that you are using?
@riveducha
@riveducha 3 года назад
I'm using a proprietary product called TabNine that offers GPT-2 autocompletion either locally or in the cloud. Nothing beats sending all your keystrokes to some cloud server!
@parcfelixer
@parcfelixer 3 года назад
Is the NLP model running on a distant server or on your own computer?
@csolisr
@csolisr 3 года назад
You know, it's a shame that there's no open-source, self-hostable alternative to OpenAI, at least not for GPT-3
@MrTurboTash
@MrTurboTash 2 года назад
Yeah, kinda takes the open out of openAI
@cowswirl
@cowswirl 3 года назад
I didn't think that API keys resembled regular doorknob keys. Is that a joke?
@elyahu5
@elyahu5 3 года назад
Try cowlick commands lol
@noisk8
@noisk8 2 года назад
No Grand API key or OpenAI API key found. Please set GRAND_AUTH_KEY/GRAND_AUTH_SECRET or OPENAI_API_KEY. you know wath problem have?
@riveducha
@riveducha 2 года назад
Yeah, do you have an API key for one of those services and did you set it as an environment variable?
@NicolaiWeitkemper
@NicolaiWeitkemper 3 года назад
If the model doesn't know anything about your system, how does it know your partitions? Did you provide examples for this?
@riveducha
@riveducha 3 года назад
It doesn’t know anything about my partitions. If my hard drive were /dev/nvme0 then it would simply be wrong.
@NicolaiWeitkemper
@NicolaiWeitkemper 3 года назад
@@riveducha Got it. I misunderstood the part at 2:40, then.
@efeakaroz4761
@efeakaroz4761 2 года назад
Hello what is the os you are using in this video
@cobalt7002
@cobalt7002 Год назад
Ubuntu
@efeakaroz4761
@efeakaroz4761 Год назад
@@cobalt7002 Which?
@HaseebHeaven
@HaseebHeaven Год назад
@@efeakaroz4761 why it matters just use the latest Ubuntu
@efeakaroz4761
@efeakaroz4761 Год назад
@@HaseebHeaven ubuntu is not open source. I hate ubuntu. Use arch instead.
@AIC_onyt
@AIC_onyt Год назад
@@efeakaroz4761 neither is arch. when you want a 100% libre system you have to run parabola linux on a RISC V or RaptorComputing power9 system
@gabbyafter7473
@gabbyafter7473 3 года назад
How did you get the API key?
@riveducha
@riveducha 3 года назад
You can join the waitlist at beta.openai.com
@MrEnriqueag
@MrEnriqueag 3 года назад
Why can't you publish the code without your api key?
@noxiouspro
@noxiouspro 3 года назад
Where's the github repo url?
@jtgdyt2
@jtgdyt2 3 года назад
"download OpenAI for free"
@expensivecats
@expensivecats 2 года назад
Source code?
@riveducha
@riveducha 2 года назад
Yes, on the web page linked in the description.
Далее
I tried to make a Valorant AI using computer vision
19:23
Будзек и рецепт🐝
00:25
Просмотров 118 тыс.
до/после Знакомо?
00:16
Просмотров 13 тыс.
Classic Italian Pasta Dog
00:20
Просмотров 754 тыс.
The AI Hardware Problem
13:26
Просмотров 528 тыс.
Become a bash scripting pro - full course
36:00
Просмотров 50 тыс.
Write Your Own Bash Scripts for Automation [Tutorial]
16:35
Linux File System/Structure Explained!
15:59
Просмотров 4,1 млн
7 Essential Command Line Tools (2022)
9:12
Просмотров 207 тыс.
Samsung Galaxy S24 Ultra Vs Iphone 15 Pro Max
0:56
Cool Gaming PC Build! #shorts
1:00
Просмотров 13 млн