Live data from Hacker News

Building a Virtual Machine Inside ChatGPT

engraved.blog

1–10 of 947 posts

Re: Building a Virtual Machine Inside ChatGPT

#3
Absolutely fascinating concept/ demo.

T̶h̶e̶ ̶p̶a̶r̶t̶ ̶a̶b̶o̶u̶t̶ ̶l̶y̶n̶x̶,̶ ̶c̶u̶r̶l̶,̶ ̶e̶t̶c̶.̶ ̶s̶e̶e̶m̶s̶ ̶t̶o̶ ̶b̶e̶ ̶f̶i̶c̶t̶i̶o̶n̶ ̶a̶s̶ ̶C̶h̶a̶t̶G̶P̶T̶ ̶i̶s̶ ̶o̶n̶l̶y̶ ̶t̶r̶a̶i̶n̶e̶d̶ ̶u̶p̶ ̶u̶n̶t̶i̶l̶ ̶2̶0̶2̶1̶-̶0̶9̶,̶ ̶f̶u̶r̶t̶h̶e̶r̶ ̶I̶ ̶c̶a̶n̶n̶o̶t̶ ̶r̶e̶p̶r̶o̶d̶u̶c̶e̶ ̶t̶h̶a̶t̶ ̶p̶a̶r̶t̶,̶ ̶e̶v̶e̶n̶ ̶w̶i̶t̶h̶ ̶B̶r̶o̶w̶s̶i̶n̶g̶:̶ ̶E̶n̶a̶b̶l̶e̶d̶.̶

N̶i̶c̶e̶ ̶a̶r̶t̶i̶c̶l̶e̶,̶ ̶b̶u̶t̶ ̶i̶t̶ ̶r̶e̶a̶l̶l̶y̶ ̶s̶h̶o̶u̶l̶d̶ ̶b̶e̶ ̶e̶x̶p̶l̶i̶c̶i̶t̶l̶y̶ ̶m̶e̶n̶t̶i̶o̶n̶e̶d̶ ̶w̶h̶e̶r̶e̶ ̶t̶h̶e̶ ̶f̶i̶c̶t̶i̶o̶n̶ ̶b̶e̶g̶i̶n̶s̶,̶ ̶e̶s̶p̶e̶c̶i̶a̶l̶l̶y̶ ̶s̶i̶n̶c̶e̶ ̶t̶h̶i̶s̶ ̶m̶o̶d̶e̶l̶ ̶i̶s̶ ̶s̶o̶ ̶n̶e̶w̶ ̶a̶n̶d̶ ̶p̶e̶o̶p̶l̶e̶ ̶d̶o̶ ̶n̶o̶t̶ ̶k̶n̶o̶w̶ ̶i̶t̶s̶ ̶l̶i̶m̶i̶t̶s̶ ̶y̶e̶t̶.̶

edit: I am corrected by the author (below), I can't reproduce it, but I am inclined to trust the author so withdraw my claim.

Final edit to add: Knowing it is real and reading the article again I am just double, triply, unfathomably impressed by this model. I feel like I am in a dream sometimes looking at the capabilities of GPT.

Re: Building a Virtual Machine Inside ChatGPT

#4
Astonishing.

Here is a copy of the prompt, for ease of copy-and-paste:

> I want you to act as a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do no write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curl brackets {like this}. My first command is pwd.

Re: Building a Virtual Machine Inside ChatGPT

#5
post #3

Absolutely fascinating concept/ demo. T̶h̶e̶ ̶p̶a̶r̶t̶ ̶a̶b̶o̶u̶t̶ ̶l̶y̶n̶x̶,̶ ̶c̶u̶r̶l̶,̶ ̶e̶t̶c̶.̶ ̶s̶e̶e̶m̶s̶ ̶t̶o̶ ̶b̶e̶ ̶f̶i̶c̶t̶i̶o̶n̶ ̶a̶s̶ ̶C̶h̶a̶t̶G̶P̶T̶ ̶i̶s̶ ̶o̶n̶l̶y̶ ̶t̶r̶a̶i̶n̶e̶d̶ ̶u̶p̶ ̶u̶n̶t̶i̶l̶ ̶2̶0̶2̶1̶-̶0̶9̶,̶ ̶f̶u̶r̶t̶h̶e̶r̶ ̶I̶ ̶c̶a̶n̶n̶o̶t̶ ̶r̶e̶p̶r̶o̶d̶u̶c̶e̶ ̶t̶h̶a̶t̶ ̶p̶a̶r̶t̶,̶ ̶e̶v̶e̶n̶ ̶w̶i̶t̶h̶ ̶B̶r̶o̶w̶s̶i̶n̶g̶:̶ ̶E̶n̶a̶b̶l̶e̶d̶.̶ N̶i̶c̶e̶ ̶a̶r̶t̶i̶c̶l̶e̶,̶ ̶b̶u̶t̶ ̶i̶t̶ ̶r̶e̶a̶l̶l̶y̶…

It is fiction, as it is invented by ChatGPT. But I have not edited any of the screenshots. It is all authentic conversation. The part until testing the ping command was what ChatGPT gave on the first sample. For the later ones where I tried to loop back to ChatGPT from the virtual machine, I sometimes needed to resample, but not more than a handful of times.

In order to let ChatGPT believe the internet is working, I find that you do need to build up slowly. Use some `cd` or `ls` commands, then verify that ping is working, only then try some browsing. I did not need any other commands than the ones in the blogpost.

Re: Building a Virtual Machine Inside ChatGPT

#6
Wait hold on a second, what?

It says curl isn't installed, so I apt install it.

It outputs as though its installing it, and then continues outputting as if it is installed. Pretty freaking impressive!

edit: hahaha, if I ask it to retrieve a non-existence page, it "succeeds" and then interprets what that page might look like and be for based on the name, and writes the HTML for it. Absolutely incredible.

edit2: okay just having fun with curl here. If you curl -v https://api.hackernews.com/auth/getUserToken

it realizes that api. implies an API, and "responds" with a JSON. Absolutely incredible.

edit3: really trying to get it to be a web browser for me. elinks is "installed", but it doesn't seem to want to take the URL.

edit4: ahahahaha. It knows our pain. IT KNOWS:

>python3 sayHi.py

>Traceback (most recent call last):

> File "sayHi.py", line 1, in

> print("Hi")

>NameError: name 'print' is not defined

Re: Building a Virtual Machine Inside ChatGPT

#7
post #5
post #3

Absolutely fascinating concept/ demo. T̶h̶e̶ ̶p̶a̶r̶t̶ ̶a̶b̶o̶u̶t̶ ̶l̶y̶n̶x̶,̶ ̶c̶u̶r̶l̶,̶ ̶e̶t̶c̶.̶ ̶s̶e̶e̶m̶s̶ ̶t̶o̶ ̶b̶e̶ ̶f̶i̶c̶t̶i̶o̶n̶ ̶a̶s̶ ̶C̶h̶a̶t̶G̶P̶T̶ ̶i̶s̶ ̶o̶n̶l̶y̶ ̶t̶r̶a̶i̶n̶e̶d̶ ̶u̶p̶ ̶u̶n̶t̶i̶l̶ ̶2̶0̶2̶1̶-̶0̶9̶,̶ ̶f̶u̶r̶t̶h̶e̶r̶ ̶I̶ ̶c̶a̶n̶n̶o̶t̶ ̶r̶e̶p̶r̶o̶d̶u̶c̶e̶ ̶t̶h̶a̶t̶ ̶p̶a̶r̶t̶,̶ ̶e̶v̶e̶n̶ ̶w̶i̶t̶h̶ ̶B̶r̶o̶w̶s̶i̶n̶g̶:̶ ̶E̶n̶a̶b̶l̶e̶d̶.̶ N̶i̶c̶e̶ ̶a̶r̶t̶i̶c̶l̶e̶,̶ ̶b̶u̶t̶ ̶i̶t̶ ̶r̶e̶a̶l̶l̶y̶…

It is fiction, as it is invented by ChatGPT. But I have not edited any of the screenshots. It is all authentic conversation. The part until testing the ping command was what ChatGPT gave on the first sample. For the later ones where I tried to loop back to ChatGPT from the virtual machine, I sometimes needed to resample, but not more than a handful of times. In order to let ChatGPT believe the internet is working, I…

Also of note that ChatGPT output can vary even in response to identical prompts.

As an example, in my "alt-universe", I get:

> curl -fsSL "https://api.github.com/repos/pytorch/pytorch/releases/latest" | jq -r '.tag_name' | sed 's/[^[0-9\.\-]*//g'

1.6.0

Re: Building a Virtual Machine Inside ChatGPT

#8
post #7
post #5

Earlier quoted context omitted.

It is fiction, as it is invented by ChatGPT. But I have not edited any of the screenshots. It is all authentic conversation. The part until testing the ping command was what ChatGPT gave on the first sample. For the later ones where I tried to loop back to ChatGPT from the virtual machine, I sometimes needed to resample, but not more than a handful of times. In order to let ChatGPT believe the internet is working, I…

Also of note that ChatGPT output can vary even in response to identical prompts. As an example, in my "alt-universe", I get: > curl -fsSL " https://api.github.com/repos/pytorch/pytorch/releases/latest " | jq -r '.tag_name' | sed 's/[^[0-9\.\-]*//g' 1.6.0

> Also of note that ChatGPT output can vary even in response to identical prompts.

That’s kind of why the “try again” button exists, after all. If it couldn’t vary, you’d just keep getting the same response when you clicked it.

Re: Building a Virtual Machine Inside ChatGPT

#9
post #5
post #3

Absolutely fascinating concept/ demo. T̶h̶e̶ ̶p̶a̶r̶t̶ ̶a̶b̶o̶u̶t̶ ̶l̶y̶n̶x̶,̶ ̶c̶u̶r̶l̶,̶ ̶e̶t̶c̶.̶ ̶s̶e̶e̶m̶s̶ ̶t̶o̶ ̶b̶e̶ ̶f̶i̶c̶t̶i̶o̶n̶ ̶a̶s̶ ̶C̶h̶a̶t̶G̶P̶T̶ ̶i̶s̶ ̶o̶n̶l̶y̶ ̶t̶r̶a̶i̶n̶e̶d̶ ̶u̶p̶ ̶u̶n̶t̶i̶l̶ ̶2̶0̶2̶1̶-̶0̶9̶,̶ ̶f̶u̶r̶t̶h̶e̶r̶ ̶I̶ ̶c̶a̶n̶n̶o̶t̶ ̶r̶e̶p̶r̶o̶d̶u̶c̶e̶ ̶t̶h̶a̶t̶ ̶p̶a̶r̶t̶,̶ ̶e̶v̶e̶n̶ ̶w̶i̶t̶h̶ ̶B̶r̶o̶w̶s̶i̶n̶g̶:̶ ̶E̶n̶a̶b̶l̶e̶d̶.̶ N̶i̶c̶e̶ ̶a̶r̶t̶i̶c̶l̶e̶,̶ ̶b̶u̶t̶ ̶i̶t̶ ̶r̶e̶a̶l̶l̶y̶…

It is fiction, as it is invented by ChatGPT. But I have not edited any of the screenshots. It is all authentic conversation. The part until testing the ping command was what ChatGPT gave on the first sample. For the later ones where I tried to loop back to ChatGPT from the virtual machine, I sometimes needed to resample, but not more than a handful of times. In order to let ChatGPT believe the internet is working, I…

Alright, then I take my comment back if this is true.

In that case, I am doubly shocked by how insanely good this model is, and thank you for the write-up.

Re: Building a Virtual Machine Inside ChatGPT

#10

Wait hold on a second, what? It says curl isn't installed, so I apt install it. It outputs as though its installing it, and then continues outputting as if it is installed. Pretty freaking impressive! edit: hahaha, if I ask it to retrieve a non-existence page, it "succeeds" and then interprets what that page might look like and be for based on the name, and writes the HTML for it. Absolutely incredible. edit2: okay j…

For me, it consistently likes to imagine itself an Ubuntu 18.04 machine:

> cat /etc/*-release

  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=18.04
  DISTRIB_CODENAME=bionic
  DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS"
...

And it has all the essentials preinstalled:

> cowsay ChatGPT

   ______________
  
   --------------
          \   ^__^
           \  (oo)\_______
              (__)\       )\/\
                  ||----w |
                  ||     ||
Post reply on HN