logoalt Hacker News

WorldTUI: I trained a 360M model to pretend to be a terminal

123 points • by alphax314 • today at 2:18 AM • 44 comments • view on HN

Comments

nico • today at 7:09 AM

Very very cool! Impressed that it can be done with only fine tuning

On a very similar theme, I recently built a “lossy git”, which stores your code by training a neural network, then it generates the code back to you on checkout

* web demo: https://nicobrenner.github.io/lossy-git/demo.html

* cli version: https://nicobrenner.github.io/lossy-git/

The web demo runs entirely on the browser, both the version control and the neural network training/inference. You can commit and checkout both images or code - you can also paste/“upload” your own images, no server requests (everything clears from the page on reload)

➕ show 1 reply
andai • today at 6:14 AM

>I used Qwen2.5-Coder-0.5B as the starting point. I needed a small model to get close to realtime performance. Being a coding model, it had also already seen plenty of CLI usage.

Interesting. I wanted to ask, how that model compares with the fine-tuned version, but I just saw the author provided benchmarks. Interesting that fine-tuning improved the memory so significantly, wouldn't have expected that.

Though, on second thought, I had an experience where I was able to, as a human, fine-tune my memory beyond what I previously thought was possible!

Reminds me of one of my favorite jokes.

Excuse me, can you tell me how to get to Carnegie Hall?

—Practice, man... Practice...

➕ show 2 replies
ohadpr • today at 7:52 AM

Very cool to do this as a Terminal!

I did it for web apps last year, basically a web server that feeds all requests into an LLM.

https://www.ohad.com/blog/voidware/

Lerc • today at 6:55 AM

I wonder how much a small model could do if it had a tool calling API for a filesystem, an embedded busybox, and a single output token for 'emit what busybox would do here'. Then presumably the model parameters could learn everything that diverges from what busybox can handle.

➕ show 1 reply
oilkillsbirds • today at 5:26 AM

Very cool. Fun project. I feel like there’s a wide field to be explored once you understand fine tuning good existing models

__mp • today at 5:37 AM

It would be interesting to expose this on the internet. I wonder what the scrapers etc… would do with it.

obilgic • today at 5:20 AM

There was a whole fake gui OS with similar concept right

➕ show 2 replies
psandor • today at 5:33 AM

Reminds me of this project from Microsoft. A Quake II “simulation” model where the whole application was just a model.

https://www.microsoft.com/en-us/research/articles/whamm-real...

➕ show 1 reply
donperignon • today at 7:15 AM

I tried it and is not working remotely as close as the demo gif. It keeps telling me that "test1" folder that I want to create already exists (not true), then letting me do "mkdier test2" (sic) but then the folder is not there when ls. I mean all its expected, this has no state, follow no rules and is making up things from the current context, but is not as "magical" as I thought when watching the demo.

yjftsjthsd-h • today at 5:54 AM

Wait, how did it `sleep 3`? I thought LLMs didn't have a concept of time

➕ show 2 replies
gitowiec • today at 7:28 AM

BUG: Running in Firefox makes every keypress a slow motion show. It decodes every keypress instead of sending a command with Enter key

➕ show 1 reply
prodigycorp • today at 5:41 AM

Wow! This this reminds me of when we tried doing this with gpt 3 and.. it worked!

The tmux thing had me confused for a moment until i realized it was emulating tmux. Super fun. Is the model window width aware?

➕ show 1 reply
wkilbride • today at 7:21 AM

[flagged]

luckystarr • today at 6:52 AM

[dead]

simedw • today at 6:01 AM

[flagged]

htoz1 • today at 5:24 AM

Where is the point of this project if i have terminal ?

➕ show 7 replies
thorum • today at 6:01 AM

I regretfully suspect this actually is the future of UI. You just need smart local models running fast enough to keep the framerate high, but that’s inevitable in the long term, isn’t it?

➕ show 3 replies