its kind of a total pain in the ass to deal with. you can try jan for a while since it will manage the llama.cpp / ggml install for you and give you a whole chat interface for it too. assuming you're using the same computer you want the AI to be on.
otherwise look in to llama.cpp and particularly l...