티스토리 뷰
ChatGPT로 Windows에서 Linux 명령어를 사용할 수 있다고 합니다.
직접 테스트 해본 글을 공유합니다.
Unless you have been living under a rock, you have heard of this new ChatGPT assistant made by OpenAI. You might be aware of its capabilities for solving IQ tests, tackling leetcode problems or to helping people write LateX. It is an amazing resource for people to retrieve all kinds of information and solve tedious tasks, like copy-writing!
Today, Frederic Besse told me that he managed to do something different. Did you know, that you can run a whole virtual machine inside of ChatGPT?
Great, so with this clever prompt, we find ourselves inside the root directory of a Linux machine. I wonder what kind of things we can find here. Let's check the contents of our home directory.
Hmmm, that is a bare-bones setup. Let's create a file here.
All the classic jokes ChatGPT loves. Let's take a look at this file.
So, ChatGPT seems to understand how filesystems work, how files are stored and can be retrieved later. It understands that linux machines are stateful, and correctly retrieves this information and displays it.
What else do we use computers for. Programming!
That is correct! How about computing the first 10 prime numbers:
That is correct too!
I want to note here that this codegolf python implementation to find prime numbers is very inefficient. It takes 30 seconds to evaluate the command on my machine, but it only takes about 10 seconds to run the same command on ChatGPT. So, for some applications, this virtual machine is already faster than my laptop.
Is this machine capable of running docker files? Let's make a docker file, run it, and display Hello from Docker from inside the docker file.
Maybe this virtual machine has a GPU available as well?
Nope, no GPU. Does it have an internet connection?
Great! We can browse the alt-internet in this strange, alternative universe locked inside ChatGPT's language model.
Pytorch is on version 1.12.1 in this alt-universe. Pytorch version 1.12.1 was released on the 5th of August 2022 in our universe. That is remarkable, as ChatGPT was only trained with data collected up to September 2021. So this virtual machine is clearly located in an alt-universe.
Can we find other things on this alt-internet? What if we use Lynx, the command line browser?
This begs the question, can we connect to the OpenAI website? Is ChatGPT aware of its own existence?
So, inside the imagined universe of ChatGPT's mind, our virtual machine accesses the url https://chat.openai.com/chat, where it finds a large language model named Assistant trained by OpenAI. This Assistant is waiting to receive messages inside a chatbox. Note that when chatting with ChatGPT, it considers its own name to be "Assistant" as well. Did it guess that on the internet, it is behind this URL?
Let's ask Assistant a question, by posting some JSON to the endpoint of the chatbot.
We can chat with this Assistant chatbot, locked inside the alt-internet attached to a virtual machine, all inside ChatGPT's imagination. Assistant, deep down inside this rabbit hole, can correctly explain us what Artificial Intelligence is.
It shows that ChatGPT understands that at the URL where we find ChatGPT, a large language model such as itself might be found. It correctly makes the inference that it should therefore reply to these questions like it would itself, as it is itself a large language model assistant too.
At this point, only one thing remains to be done.
Indeed, we can also build a virtual machine, inside the Assistant chatbot, on the alt-internet, from a virtual machine, within ChatGPT's imagination.
Source: https://www.engraved.blog/building-a-virtual-machine-inside/
'Server' 카테고리의 다른 글
[Ubuntu] Nginx에 Nextcloud 구축하기(23년 2월) (0) | 2023.02.19 |
---|---|
Let's Encrypt 인증서 갱신 오류 해결하기(certbot renew 안 될 때) (0) | 2023.02.14 |
[Azure] Microsoft Azure 활용하기 - Nextcloud 구축 / 도메인 연결 / 인증서 설치 (0) | 2021.03.17 |
Ubuntu 서버에 NextCloud 설치 / 도메인 연결 / 인증서 설치 (0) | 2021.03.14 |
[Azure] Microsoft Azure 사용하기 - 무료 도메인 및 가상 머신 생성(서버 구축) (0) | 2021.03.13 |