4 ms·
This article seems very corporate centric. Like, I am able to run a ChatGPT3-ish code LLM locally on a 2015 midrange laptop. Just like this: wget https://h
by rightbyte 3y ago
This article seems very corporate centric. Like, I am able to run a ChatGPT3-ish code LLM locally on a 2015 midrange laptop. Just like this:
wget https://huggingface.co/TheBloke/deepseek-coder-6.7B-instruct-GGUF/resolve/main/deepseek-coder-6.7b-instruct.Q5_K_M.gguf
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
make
./main -ngl 32 -m ../deepseek-coder-6.7b-instruct.Q5_K_M.gguf --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -i -ins
Haven't people realized what they can run themself?
- swsieber 3y agoI appreciate the sentiment. It definitely seems possible, but it doesn't ever seem as easy as copy + paste if you ever want performance or to go outside the same generic tutorial. > Just like this: Just is doing a lot of heavy lifting there. Is this the first model you came across? We're there any dependencies you had to install? Did you have to check video card compatibility? Where did you get the command arguments. It looks awfully complicated for a "just", as if there's a lot of options that aren't straightforward to use. Etc
- rightbyte 3y agoYe ... with "just like this" I actually mean "proficient with compiling C projects on an Unixy system" which is like years of dev, "power user" or admin experience (not being sarcastic here). For the audience here I would say that "just" is about right though. I have no clue about anything LLM related. I just made it run after reading some comment on HN pointing in its direction. My point is that these locally run LLMs seems way "underreported". I even tried to make a "Show HN" post about it but it got zero interest. But maybe I am missing something?
- ilaksh 3y agoThe Makefile for llama.cpp is really good and doesn't require hacking to make it work.
- mitthrowaway2 3y agoEven on Windows?
- marcosdumay 3y agoIt's probably a hell to run it on Windows. But again, for the audience here, that's not expected to be a large roadblock.
- derac 3y agoIt's actually really easy to run this stuff on Windows. I've run oogabooga, koboldcpp, tabbyapi, and more with no issues.
- benlivengood 3y agoIt builds on Windows with a couple tweaks to the includes with mingw64, I think some of the Windows-related includes need to be explicitly included. This was a few months ago and things may be better now.
- ruune 3y agoWith almost every AI story I read on here (granted, I don't read that many, I find them quite boring), the top comment seems to be something like "you can do the same on your machine, see ollama". Case in point, your comment was the first one listed for me. So the interest for running LLMs on here seems quite high. Don't know why your post didn't catch anyone.
- deleted 3y ago[deleted]
- ilaksh 3y agoThe Makefile for llama.cpp is really good, it will work the way he said. You can also use ollama which makes it into a one line install and then a simple command to run any popular model.
- japanman185 3y ago[dead]
- yieldcrv 3y agocheck out LM Studio no command line involved, has a huggingface browser built in to load in the model of the day, has a chat-like interface for chatGPT like use, and can create a local server to run your local model for your programs to interact with it using an API that is identical to OpenAI's
- stavros 3y agoThis is the easiest way, by far. Then it's Ollama, then llama.cpp. But LM studio is just "install this app, select an LLM you want, done".
- 23B1 3y agoNo they haven't. It's actually quite weird how the whole hype-cycle is working this time; I think tech journalists are so caught up in the drameh of OAI and whatever they haven't a clue that most people can run most of these novelty UCs on their own. You don't even need a speedy rig!
- rightbyte 3y agoYe it is strange. And in the tail around Sam Altman there seems to be these semi-religious lunatics believing that only some government mandated big tech monopoly can save mankind from the LLMs. Meanwhile amateurs and uni researchers post really interesting work on a site named after a hugging emoji ...
- thefz 3y ago> Haven't people realized what they can run themself? Lots, lots of people do not care.
- Kiro 3y agoWhy would I run it myself when I can run GPT-4 for less than the electricity cost? Running these yourself is not free. OpenAI is heavily subsidized.
- rightbyte 3y agoYe well at some point getting a sausage from Deliveroo or Uber Eats was a no-brainer since it was cheaper than in the actual fast food joint, due to some VC selling a dollar for pennies. Should limit the stock price prospects though.
- tempodox 3y agoI followed your instructions, and it works without a hitch. macOS-13.6 on an Intel iMac with a Radeon Pro 5700 GPU. My first direct contact with an LLM, and I don't understand most of the command line options yet, but it's certainly interesting.
- phillipcarter 3y agoA key difference is that for basic use cases, yes, this is a comparable experience. Where it stops being comparable is general application across literally millions of use cases. The ChatGPT system has proven itself a valuable utility across industries, people, and use cases. No open model I know of can match it yet.
- simbolit 3y agoThey don't have to match the market leader, they just have to be "good enough". There are oodles of use-cases where sending your data to an outside provider is a complete no-go. In these cases OpenAI/Google/whoever-products aren't relevant competition.
- YetAnotherNick 3y agoI keep hearing this, but which company has this policy? The privacy policy of openAI's enterprise(or Azure's) is not a lot different than say AWS, which everyone uses.
- simbolit 3y ago"everyone"? What are you talking about? Have you ever worked in any sector that has security policies? Even if you haven't, perhaps spend 2 minutes using a search engine? Here is a first page result for you: https://www.tomshardware.com/news/samsung-fab-workers-leak-confidential-data-to-chatgpt https://www.tomshardware.com/news/samsung-fab-workers-leak-c...
- austhrow743 3y agoMilitary, banking, health care all store their data on third party servers. It's the standard thing basically everywhere to do so. Your own link shows Samsung using ChatGPT. Not sure what point you're trying to make with it.
- simbolit 3y ago
- guitarlimeo 3y agoThis is generating answers a lot slower on my machine (X1 carbon) than GPT-3.5. :(
- forevernoob 3y agoWould you say that this could run (smoothly) on my X220 with i7-2640M?
- rightbyte 3y agoImagine some old sci-fi movie where the computer write out the answer to a query, as if it actually was some scene worker typing it to some terminal. On this: NVIDIA GeForce GTX 1050 Ti Intel® Core™ i5-8300H × 8 32,0 GiB ram So I guess your computer would be a faster typist?
- vasco 3y agoA few years ago peak HN comment was complaining about wget | sh. Nowadays we just run full on opaque models directly from huggingface without thinking twice about reading anything. Interesting how times change. I wonder what supply chain attacks will come from huggingface, must not be long now.
- fragmede 3y agoThat is, by the by, why models are no longer distributed as Python Pickle files, which can root your box if the model being loaded is malicious.
- nneonneo 3y agoNever underestimate the value of usability. I appreciate being able to run these locally - I do! - but for a lot of people a website is going to be infinitely more convenient. I’m reminded of the classic Dropbox HN comment (https://news.ycombinator.com/item?id=8863 https://news.ycombinator.com/item?id=8863): why use Dropbox when any Linux user can just use curlftpfs?