So a.i. seems to be the new buzz word around the tech world and non-tech world alike. I'm sure most of us have at least heard about ChatGPT. There have also been a number of open source alternatives released thanks to the leak of llama source from Meta. After playing around with ChatGPT for a few hours, I became curious if these things (llm or large language models) could be run locally on a home pc. I don't like the idea of feeding my data to for-profit companies.
The short answer is: Yes these things can be run locally. The open source alternatives that have come about since the llama leak are numerous and growing every day!
Unfortunately, it seems for the majority of them someone would need a mid range gaming pc at minimum.
I wasn't (and am still not) sure what PC equivalent would/could best be compared to ps4linux in terms of performance and capabilties. But I thought if I can play gta online on ps4linux surely I can get some kind of open source llm to run on ps4linux. I had already accepted that if I got anything like this to run on ps4linux it would very likely be pretty sub-par. So after some googling I was cloning gits left and right and following install instructions I barely understand lol. Admittedly what I know about ai, llm, etc. could be compared to what I knew about running linux on ps4 a year ago when I first started. I know its possible but don't know any of the inner workings yet.
Enough of the preamble tho, lets get down to it. Almost all my attempts to run any kind of ai, llm etc. on ps4linux have not been fruitful. I'm sure it is possible, I just lack the know how at the moment. Notice I said "almost all", yes friends thats right I have succeeded in getting one of these new fangled ai thingies running on ps4linux.
If you havent heard about stable diffusion it's a text to image generator. You type a description and it outputs an image based on your text. It does indeed run on ps4linux. Now I won't pretend that it runs well, but it does run and generate an image.
Here is the link that I followed to install. But before you rush there to learn how to install/run this for yourself, I should warn you all my attempts to install directly on ps4linux resulted in timeout errors and drive space (even tho I know the drive has enough free space) errors.
I posted the link primarily to be a guide on what to do once it is installed. In the end I used the linux side of my highly outdated dual-boot desktop pc (intel core 2 duo with no gpu lol) to install. Once it was successfully installed on desktop (no errors) it tried to run on desktop but it more or less just locked up the pc, which was more than expected on a potatoe posing as a pc lol.
My next step was to copy the file folder from potatoe to ps4linux, on first attempt I copied it to my main (daily driver/gaming) install, the same install I'm typing this on now. The result was less than I had hoped as it still would not run. After that I thought that maybe my prior attempts at various other ai installations was the problem.
I noticed when I tried running some of those prior installations that it was trying to install oudated versions of required libraries and such. So my next thought was to try it on a fresh install. I did a fresh install and attempted to install directly on ps4linux using the above link, and much to my dismay it returned the same timeout, drive space errors. I then copied the file folder from the desktop to the fresh install and it flipping ran.
I have uploaded the file folder here for anyone else who wants to attempt this. This does run on ps4linux but not as well as I initially hoped, but it does run. It took around 2-3 hours to output an image from my text input. It also used the 4gb of ram and 6gb of my 8gb swap. I only did the one test and didnt mess with any settings whatsoever. After about a week of trial and error (git cloning,following install instructions, etc.) with something I barely understand I'm counting this as a win.
This got a lot more long winded than I had Intended, I just tried to include as much info as I could think of.