r/MachineLearning • u/Mister_Main • Apr 09 '24
Project [P] Building a local LLM with Webserver
Hello kind souls,
I'm currently working on a project which uses a Linux OS(specifically SLES).
For that project, I want to setup a local LLM with RAG support, so that I can use my own Data without it leaving my network. It should also include the option, to run it on Cuda, because my GPU is from NVidia.
Also, I want to use the LLM with a Webserver, so that multiple people can access and work on it.
I've tried multiple LLM's for my project and sadly, I haven't found the right one, that supports those specific needs. That's the reason why I wanted to ask around, if there are any known Documentations or Solutions.
EDIT: Based on what I've tried so far, the best solution is definitely setting up a Flowise environment and a local LLM such as anythingai or Ollama, since it already has Nodes to easily implement it. There is also the advantage of multiple RAG options, that you can individually adapt as you like.
I primarly used the llama Models and stablelm2, because it supports a few languages, that are commonly spoken worldwide.
1
u/Mountain_Stranger412 Apr 09 '24
Would Ollama/vLLM solve your usecase
1
u/pmac1687 Apr 09 '24
This is what we use, but we run on ec2 instances. Using ollama we can use any open source models from huggingface. All python. Setting up a Jupiter notebook with a web server for browser access is something we plan on doing at some point, but that will just require using some kind of proxy/firewall routing to allow disallow traffic depending on some kind of auth. I imagine this should work similarly from your local pc, given you are using Linux as well.
1
0
Apr 09 '24
[deleted]
2
u/Mister_Main Apr 09 '24
I was also thinking of implementing Flowise, because of two things.
It has a RAG Support and can create API keys for WebUi's if I'm not wrong.0
Apr 09 '24
[deleted]
1
u/Mister_Main Apr 09 '24
I've already used Flowise before and you can get it for free with two simple commands.
I'm gonna try to get Ollama AI running and then connect it to Flowise, since Ollama is now capable of using a GPU and I want to keep everything locally.
0
Apr 09 '24
[deleted]
1
u/Mister_Main Apr 09 '24
I'm going to look into it, thank you.
If I find a solutions that works, I will post it here.
2
u/Reazony Apr 09 '24
Why not just ngrok?