Re:Llama.cpp 30B runs with only 6GB of RAM now
by version_five on Saturday April 01, 2023 @04:02AM
(#35398243)
Its rarely as easy as sharing a requirements.txt. There are lots of things that can still break - for examples you get weird situations where different modules require different versions of a third module. Or all the Cuda toolkit version issues thsy seem to come up with gpu stuff. When we share python, we tend to share a docker image, and even this isn't foolproof. A big problem I think is that it doesn't incentivize building something portable. And it's very hard to test across different machines. Add to that all the different practices re virtual environments, venv, conda, etc, everyone tries to install the dependencies differently or is starting from some nonstandard state. It's a mess.
Re:Llama.cpp 30B runs with only 6GB of RAM now
by pablo1107 on Saturday April 01, 2023 @09:11AM
(#35400039)
Maybe using Nix it's a better experience for creating such an environment where you depending also on system utilities.
Re:Llama.cpp 30B runs with only 6GB of RAM now
by superkuh on Saturday April 01, 2023 @11:54AM
(#35401252)
Everyone is using llama.cpp because we reject the idea of giving up on system libraries like nix does. That kind of tomfoolery (at least in the desktop context) is only required when you use software projects that use libraries/languages which break forwards compatibility every 3 years.
If you just write straight c++ (without c++xx, or anything like it) you can compile the code on machines from decades ago if you want.
Re:Llama.cpp 30B runs with only 6GB of RAM now
by jart on Saturday April 01, 2023 @02:09PM
(#35402510)
Docker. Don't forget Docker. I pretty much checked out the day using it became a requirement just to talk to a GPU and didn't do much with machine learning until llama.cpp came along.
Re:Llama.cpp 30B runs with only 6GB of RAM now
by remexre on Saturday April 01, 2023 @07:19PM
(#35405209)
What's c++xx?
Re:Llama.cpp 30B runs with only 6GB of RAM now
by opless on Sunday April 02, 2023 @02:06AM
(#35407666)
C++11, and greater.
Re:Llama.cpp 30B runs with only 6GB of RAM now
by remexre on Sunday April 02, 2023 @07:26PM
(#35416499)
Huh, I was proficient in Rust before "properly" learning C++, so maybe that accounts for it, but I didn't realize C++11 was controversial. Is it just move semantics, or are there some library things that are hard to implement?
Re:Llama.cpp 30B runs with only 6GB of RAM now
by int_19h on Monday April 03, 2023 @05:30PM
(#35431561)
I think what OP is saying is that decades-old systems wouldn't have C++11-compatible compilers on them.
Re:Llama.cpp 30B runs with only 6GB of RAM now
by bboygravity on Tuesday April 04, 2023 @11:49AM
(#35441542)
And maybe that "C++" is now basically a bunch of different incompatible languages instead of just 1 language, depending on what "xx" is (11, 14, 17, 20, 23, etc).
It's like Python 2 vs Python 3 except even worse.
Re:Llama.cpp 30B runs with only 6GB of RAM now
by int_19h on Tuesday April 04, 2023 @02:32PM
(#35444029)
In my experience, C++03 code works just fine without changes on a C++11 and C++14 compilers, so no, it's not at all like Python 2/3. The few features that were ripped out were exactly the stuff that pretty much no-one was using for good reasons (e.g. throw-specifications).
It sounds unnecessarily weird to me that people would share Python code that simply doesn't work out at all out of the box.