nomic-ai / gpt4all

GPT4All: Chat with Local LLMs on Any Device
https://gpt4all.io
MIT License
67.47k stars 7.43k forks source link

[Build script] Build script for Linux would be welcome #2563

Open Jancs-E opened 1 week ago

Jancs-E commented 1 week ago

Hi!

I went over build and run file reading on how to build the tools for my specific system rather than rely on the package prepared for Ubuntu (I use Slackware Linux). It would be excellent to have a clear list of dependencies + build command or +/- standard build script rather then windowish "point and click" description.

cosmic-snow commented 1 week ago

It would be excellent to have a clear list of dependencies

The problem here is that every major Linux distribution does things a bit differently, and packages can even change from version to version. The second problem is that you need to create an account and accept the Qt license if you want to go the official route. Which you might have to do, depending on how up-to-date the Qt packages of your distro are. For example, Ubuntu 24.04 LTS isn't even on v6.5 yet, sadly (I tried).

However, there are at least two locations where you can get the necessary information for your scripts:

Note specifically for v3.0.0 of GPT4All: If you want to use LocalDocs you need an embedding model. In this version it's fixed and part of the CMake build process downloads this. Make sure that ends up in the right location (resources/ folder) if you're going to roll your own.

Last but not least: The provided "Ubuntu package" might work on your system, too. It includes many of the necessary dependencies, it's not a typical distro package. There's also an unofficial flatpak somewhere.