nomic-ai / gpt4all

GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
https://nomic.ai/gpt4all
MIT License
69.01k stars 7.57k forks source link

[Feature] Add portable installation #2730

Closed henrypp closed 1 month ago

henrypp commented 1 month ago

Feature Request

Unpack to folder and run which save config in this dir, not in APPDATA.

how to?

cosmic-snow commented 1 month ago

I don't think that's currently possible without modifying the source code.

Also, this has been requested before, here: #1279

henrypp commented 1 month ago

I don't think that's currently possible without modifying the source code.

u do not have code? . then in this topic @duaneking asked as:

Just use an .ini file and your going to have the most portability and ease. This is a solved problem and its needlessly making it complicated, imho.

but what .ini file it does not telled, no details at ALL

ps: tomorrow close issue as duplicate

cosmic-snow commented 1 month ago

u do not have code?

I can't tell you all the places in the code where it stores things in user folders, I have never tried to make it portable myself.

but what .ini file it does not telled, no details at ALL

That comment doesn't really make sense. The configuration is already stored in .ini format.

I can, however, tell you the main folders involved. Also note that these are different depending on OS, but on Windows it's:

Additionally, the Qt Installer Framework may put some things into some user folder, not sure. That's not directly defined in the source code, I think. And if you change the model folder, some things are put there instead.

cosmic-snow commented 1 month ago
henrypp commented 1 month ago

That comment doesn't really make sense. The configuration is already stored in .ini format.

does not make sense? it stored in .ini file but placed in %APPDATA%, #1279 tells that it makes portable installation when i place .ini file in other place (not clarified exactly where)

cosmic-snow commented 1 month ago

does not make sense? ...

I meant it does not make sense because it already is an .ini no need to do anything else in that regard.

But yes, the configuration and all the other files' locations would have to be made flexible instead of fixed (or what the Qt API says where they should go).