View previous topic :: View next topic |
Author |
Message |
Vieri l33t

Joined: 18 Dec 2005 Posts: 921
|
Posted: Tue Sep 17, 2024 2:56 pm Post subject: Gentoo LLMs |
|
|
Hi,
I'm starting to look at the oh so many open-source software projects to run LLM models out there, and it's quite overwhelming.
There are some attempts of creating Gentoo ebuilds for some of them (eg. ollama in guru).
I'm particularly interested in the projects that allow to run models from a custom program or via REST APIs.
Not really looking for GUI or webUI.
Any suggestions here in the forum for worthy/updated software that installs from source (no binary packages) and can easily be set up with a custom ebuild?
Regards |
|
Back to top |
|
 |
Navar Guru

Joined: 20 Aug 2012 Posts: 355 Location: usa
|
Posted: Wed Sep 18, 2024 11:25 pm Post subject: |
|
|
https://github.com/rasbt/LLMs-from-scratch , a real Gentoo way.
For creating your own ebuild(s), https://wiki.gentoo.org/wiki/Basic_guide_to_write_Gentoo_Ebuilds
https://ollama.com/download , more "easy" mode. "install" and run local as your limited user (would suggest checking the script instead of blindly running and/or manual install instructions). I doubt Gentoo devs are large enough currently in resources and number, versus all other normal expected packages that may or may not need maintainers, testers, help, etc. to be chasing supporting any specific LLM being available out of the billion or so currently in existance due to crazed fad/demand, e.g., https://huggingface.co/models _________________ (I don't speak for/represent my current employer) |
|
Back to top |
|
 |
jlpoole Guru


Joined: 01 Nov 2005 Posts: 491 Location: Salem, OR
|
Posted: Sun Mar 02, 2025 7:02 pm Post subject: |
|
|
I'm smitten by LLMs and am just paid $57 for the 2024 Manning press book Build a Large Language Model (From Scratch) featured at the https://github.com/rasbt/LLMs-from-scratch Navar mentioned.
I would be interested in collaborating with Gentoo enthusiasts on building AI type items. I installed LocalAI, and, of course, am hot on the trail to debug the manual install version (they have a docker version, I'm not a fan of docker, unless it's just to take a peek) where instantiating Piper is broken and it's a real devil of a time to unwrap the code and make sense of what is going on. My impression is that there is a subtle misalignment of libraries which may not have been verified during the install. Any rate, I was thinking it would be great to talk with other Gentoo users who are of like-mind to learn more about AI/models and deployment on your own.
Note: LocalAI developer who goes by this Gentoo handle: mudler [Ettore Di Giacinto], was formerly a Gentoo developer and moved onto Sabayon and now looks to be in the thick of his baby: LocalAI. |
|
Back to top |
|
 |
Banana Moderator


Joined: 21 May 2004 Posts: 1994 Location: Germany
|
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31604 Location: here
|
Posted: Mon Mar 03, 2025 12:07 pm Post subject: |
|
|
I use open-webui with ollama in a docker image.
The open-webui provide openai rest api because of that you can use shell_gpt or any other program with openai api support. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
lordof7 n00b

Joined: 27 Aug 2008 Posts: 26
|
Posted: Sat Mar 29, 2025 1:44 pm Post subject: |
|
|
llama.cpp may be worth a look. It appears to have an API, and it's CLI interface is nice and simple. I was able to get it working with Vulkan on an AMD RDNA2 card without too much grief (X11, mesa, vulkan-header ,vulkan-tools, vulkan-loader, and media-libs/shaderc to fill in for Vulkan-SDK.) I ended up just downloading the source and compiled with flags for vulkan. I run it locally.
This guide was helpful: https://blog.steelph0enix.dev/posts/llama-cpp-guide/
I've played with the smollm-1.7b model, and asked it about Gentoo. You may be amused by the answer:
---
> Ok, different subject. Do you know anything about Gentoo
Gentoo! Gentoo is a popular breed of horse known for its intelligence, athleticism, and striking color patterns. They are often referred to as "paint horses" due to their unique, swirling coat colors.
---
It does appear that there was a racehorse named Gentoo, but other than that I couldn't find any evidence. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|