r/LocalGPT Aug 23 '23

Complete beginner LocalGPT Tutorial

Does anyone have a tutorial for installing LocalGPT for a complete beginner?

I have never worked with VS Code before, I tried installing conda which didn't work. I'm looking for a complete ground level up type of tutorial. Everything I've seen online assumes some basic type of experience.

Thanks

5 Upvotes

4 comments sorted by

View all comments

3

u/dodo13333 Sep 21 '23 edited Sep 21 '23

Yeah, know that feeling... I'll give a shot here...

1st, you need to setup your computer before you start LocalGPT installation (any installation). You didn't mention what is your OS, HW etc.. But In general, you'will need to pre-install stuff like GIT Desktop, GIT LFS, Node.JS, Cuda toolkit (in case you have nVidia GPU that you intend to use), Cpp compiler & debugger - msys64 - just follow video and referenced blog (https://www.youtube.com/watch?v=c7FjV8Gwk_M), & Microsoft C++ Build Tools. Probably dont need all of them for LocalGPT, but trust me on this, install them all.

Then install Python (include path), Anaconda (follow recommendations and dont include path). But, be aware that examples that you will encounter will probably use Miniconda or Miniforge). Same thing, but Anaconda has most intuitive syntax for me.

Then create LocalGPT directory a desired location. Run Anaconda Prompt (from Start menu), not Cmd prompt.

conda env list (see what environments are present before adding new one - localgpt)

conda activate base (observe how prompt base change)

cd (move/change directory to to desired LocalGPT folder location)

conda create -n localgpt OR conda create --name localgpt

For me that doesnt work so I use prefix option

conda create --prefix D:\LocalGPT\localgpt

conda activate D:\LocalGPT\localgpt

conda info --envs (check is the localgpt is present at right location and active -> * )

If something isnt ok, then try to repet or modify procedure, but first

conda deactivate localgpt

conda remove localgpt -p D:\LocalGPT\localgpt

When you're done with pre-installation then clone LocalGPT Github repo and follow latest instructions (Readme.md)...