![]() |
VOOZH | about |
We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.
Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.
Follow TNS on your favorite social media networks.
Become a TNS follower on LinkedIn.
Check out the latest featured and trending stories while you wait for your first TNS newsletter.
PrivateGPT is an AI project that allows you to ask questions about your own documents using large language models.
nvidia-sma -aIf you receive an error and you know you have an NVIDIA GPU, make sure to install the required drivers. On a Ubuntu machine, you can check for available drivers with one of the following two commands, depending on your configuration: Desktop:
sudo ubuntu-drivers listServer:
sudo ubuntu-drivers list --gpgpuYou can then install the driver that’s the best match for your system with:
sudo ubuntu-drivers installAgain, if you don’t have an NVIDIA GPU, Ollama will still work — it’ll just be excruciatingly slow. If you just want to see how to get it up and running (even without an NVIDIA GPU), you can install it and run it, but know that it’s going to be hair-pullingly slow. Point made. Let’s install.
curl -fsSL https://ollama.com/install.sh | shIf the command reports that curl isn’t installed, you can add it with:
sudo apt-get install curl -yOr, if you prefer wget, you can download that installer with:
wget https://ollama.com/install.shIf you run the command with curl, the installer will automatically start. If you run it with wget, you’ll then have to give the file executable permissions with:
chmod u+x install.shYou can then run the script with:
./install.sh
ollama run llama3Since this is the first time you’ve run the command, it will have to download the library. When the download is complete, you’ll see a new prompt that looks like this:
Send a message (/? for help)This is your prompt. Type a query such as:
What is Linux?If your have met the system requirements, you should receive a response fairly quickly. Otherwise, give it time to answer. When you’re done using Ollama, exit out of the prompt with Ctrl+D. You can use any of the listed LLMs that you want. Just remember to run this command:
ollama run LLM_NAMEReplace LLM_NAME with the name of the model you want to use. You could give anyone access to this machine and show them how to run their own queries via Ollama. Allow them to SSH into the system and they can conveniently access their new, locally installed AI from their desktop. And that’s all there is to installing and using a private AI on a local Linux machine. If you’re worried about privacy or any other issue that comes along with using public AI, this is a great option.