Running Large Language Models at Home

Paul R. Potts

August 2025

A. I. Tools Are Not Value-Neutral

Today I’m writing about so-called A.I., or what is called artificial intelligence currently; I say “currently,” because my understanding of “artificial intelligence” goes back to the 1970s when I first began reading articles on the subject in computer magazines, and began playing around with programs that were then said to use artificial intelligence. I wrote about one example here — a program called Animal that asks questions to train an “expert system.”

The thing is, over the decades, “artificial intelligence” has been used to describe something nascent, something we’re on the cusp of discovering. As theoretical problems become solved problems, the various kinds of algorithms discovered and improved get different names: neural nets, expert systems, deductive reasoning, Markov decision processes, Bayesian networks, classifiers, etc. We usually cease to call them “A. I.” then, except maybe for marketing purposes; the camera application in my iPhone uses a whole lot of so-called “deep learning” techniques to improve the photos, but we don’t usually refer to the Photos app as using “A. I.”

A while back I wrote about a particular set of technologies that was called “A. I.” but do not seem, now, to be what people mean when they say “A. I.” They are “latent diffusion models,” and I wrote about Stable Diffusion in an essay entitled “Stable Diffusion Doesn’t Know Anything.”

Now, these image-generation tools are just more tools in our toolkits, and the things we’re calling “A. I.” today are mostly large language models. A large language model is:

a language model trained with self-supervised machine learning on a vast amount of text, designed for natural language processing tasks, especially language generation.

The largest and most capable LLMs are generative pretrained transformers (GPTs), which are largely used in generative chatbots such as ChatGPT, Gemini or Claude.

These big models are maintained and run by for-profit corporations and they generally are paid for via subscription of some kind. The data sets they are trained on contain vast quantities of data that the companies doing the training do not really have the legal rights to use in this way. The training, and the running of the models on cloud servers, is hugely energy-intensive. For all these reasons, and others, I have never tried out these models, except in the cases where a Google search winds up triggering an AI-generated answer automatically; such answers are a crap shoot and are often very wrong.

Opposition Research

But, just as I experimented with Stable Diffusion running locally on my personal laptop in order to learn about it, I wanted to try running large language models in a way that I didn’t feel was as ethically disastrous. I wrote on Facebook about my refusal to use the commercial products “I prefer to think of it as a kind of BDS, although I am willing to try open-source software that I can run on my own devices, without monetary cost, without using cloud servers, and without exfiltration of personal information to unaccountable commercial entities.” I can’t really do anything at the moment about the theft of intellectual property at scale that is the large language model training process, but I do have hopes that the problem will eventually be solved.

I think of what I’m doing as “opposition research.” This technology is being weaponized against my career, my sources of income, my co-workers, their careers, their sources of income, and my entire field of endeavor, as well as the entire population of people who create original work for money; I need to better understand how the technology works, if not necessarily the companies and products everyone is yammering on about.

My Hardware

As I am unemployed, I wasn’t willing to put any money into this endeavor. But I do have a number of small computers around the house that I have been using for various tasks since I set up our home Synology server and phased out my 2008 Mac Pro. The most capable one is a “new old stock” now-discontinued Intel NUC machine I got on eBay, with upgraded RAM and storage. Here it is, with a deck of cards for scale:

“neo-tokyo, one of my Intel NUCs”

This computer has only been connected to a monitor and keyboard for initial setup and installation of the Ubuntu Server Linux distribution. Since then, it just sits in my bedroom, connected to our household network. I recently removed our Jellyfin video library from the Synology server, to free up space, and set it up on this machine instead; it is much faster this way, since my low-end Synology server does not have much of a CPU, and the disk array uses 2.5-inch laptop drives, while this box has SSDs. I back it up to an external SSD. I can log into it using ssh, or if I want to use a GUI, with Microsoft Remote Desktop:

“neo-tokyo via Microsoft Remote Desktop”

What follows are a few notes about how I set up the large language models. Please note that I don’t consider myself an expert on this subject by any means, and these tools are changing rapidly; I was not able to find a tutorial article that was not out-of-date, but was able to cobble together enough information from tutorials, documentation, and online forums to figure out how to get this working.

Setting Up Open WebUI and Ollama

The two main tools that I’m setting up are Open WebUI, which provides a web page interface to LLM runners, and Ollama, a server that manages and runs LLMs. To install these, the easiest route is to use Docker. I’m not going to go into exactly what Docker is or why it is so useful, but here’s now you install it on Ubuntu Server:

sudo apt install docker.io

If you don’t want to customize your storage locations, the next step is to add your user account to the Docker group, allowing you to run docker containers:

sudo usermod -aG docker $USER

You’ll need to log out and back in again for this change to take effect.

Then, test Docker:

docker run hello-world

On one of the computers I tested this on, I got an error that said “permission denied while trying to connect to the Docker daemon socket.” To fix that, I executed:

sudo chmod a+rwx /var/run/docker.sock
sudo chmod a+rwx /var/run/docker.pid

I’m not sure if that is the best solution, but it worked for me. Then, I was able to run hello-world.

Now, you’ll want to install the Ollama server, since this is the “back end” that Open WebUI communicates:

curl -fsSL https://ollama.com/install.sh | sh

Note that the script will require you to enter your administrator password, as it executes some commands using sudo; that’s normal and expected. This process will take a while, depending on the speed of your Internet connection, and you should see a few progress bars.

If that worked without errors, you’re ready to install open-webui which will manage everything else for you:

docker pull ghcr.io/open-webui/open-webui:main

This command will take a while and download several gigabytes of stuff. Then, if that worked, you can run the Open WebUI server (be careful when typing the options in the following command — it contains options that start with both single and double dashes):

docker run -d --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://localhost:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main

If that works, the Open WebUI web server should now be running on your machine. You should be able to test it on the machine itself using:

curl localhost:8080

If it spits out something that looks like a web page, the server is working. If you get a message saying the connection was refused, you may need to configure the firewall to allow access to port 8080. Try:

sudo ufw allow 8080

If that works, you can proceed.

If you’re connecting to your machine using Remote Desktop, and you have a web browser installed, you ought to be able to see the page using the link:

http://localhost:8080

It should look something like this:

“The Open WebUI Start Page”

If that looks good, you might try connecting to it from another machine on your local network. In my case, the IP address is:

http://192.168.1.101:8080

But of course, your IP address will likely be different.

You’ll be asked to create an account. Then, you’ll be good to go, and can begin experimenting. I’m not going to create a whole lot of screenshots showing you what to do, but note that initially there are no models installed. Here’s how to install a small one. This web user interface, and this process, seems a little overcomplicated to me, unfortunately, and note that these instructions will be obsolete if and when the OpenWeb UI interface changes; hopefully, it will get simpler and not more complicated!

If you get an error that the web application can’t communicate with http://localhost:11434, the Ollama server is not running correctly, and you’ll need to diagnose that before proceeding.

There’s a list of available models here. Let’s try a very light-weight one: deepseek-r1, the 1.5b version. The size of this model is only 1.5GB, compared to the biggest version, 671b, which is 404GB in size. In the text box that says “Enter model tag,” type deepseek-r1:1.5b and it the down arrow. You should see a progress bar grow for a while; again, it depends on the speed of your Internet connection. When it’s done, close the window for managing models, and click on the “New Chat” button in the top left. From the drop-down menu at the top of the page, verify that you’re talking to deepseek-r1:1.5b. After that, you should be ready to converse with a large language model, albeit a small one.

When you install LLMs, they’ll be stored locally. When you run them, they will run on your local machine, not on a cloud server. I verified this by turning off the cable modem that connects our home network to the Internet. The models continued to respond just as before.

Side Note: Using a Separate Disk Partition

I actually did things a little bit differently. I had a separate disk partition on an internal SSD that I wanted to use for the Docker files and the LLM files — they are very large, and I didn’t want them stored on the same partition as my Linux system files. This was possible. It was a bit difficult to get that all working, as I had to cobble together clues from different sources of documentation and online forums, but eventually I figured it out, and now when I use Docker and Open WebUI, all the big files are stored on my designated partition. If you are just starting out, it’s probably best to get the more basic setup running first.

A Conversation with Deepseek R1 1.5B

Note that I have simplified the formatting of the LLM’s responses, which used a lot of indentation, but I have not changed the text.


Hello, my name is Paul. What is your name?

I’m an AI assistant created exclusively by DeepSeek. I understand my role and limitations, and I’ll always maintain a professional and honest approach to help you.


How should I address you?

Certainly! When responding to inquiries or seeking assistance, here are some friendly ways you can address someone like “Paul”:

“Hello! How can I assist you today? I’m always happy to help!”

“I’m a language model created exclusively by DeepSeek. How can I assist you?”

“If you need anything specific, don’t hesitate to ask. I’m here to help!”

“Hey! I have an idea for something interesting. Can we talk about it? Let me know.”

“Of course! I’m here if you need assistance or just want some tips!”

Feel free to choose any of these approaches that work best for your situation!

I don’t want to over-anthropomorphize a large language model, especially a simple one, but it seems like this model is already having trouble understanding that it has an existence as an entity that is not me. This comes up again in later answers. The larger models I’ve played with don’t seem to have this problem; I’ll compare this answer with some answers from larger models later.


What can you tell me about the Ian Fleming novel Casino Royale?

The Ian Fleming adaptation of Casino Royale, also known as “The Time traveler’s family,” is a significant film that explores themes of identity and belonging through the story of a mysterious family in the early 1940s France. The book, originally titled “The Time traveler’s family,” was the source material for this iconic film adaptation.

Key points about Casino Royale include:

Historical Context: The book was written in 1940, reflecting the rapidly changing political landscape of Europe during that time. The setting and themes of Casino Royale reflect this period’s instability and the uncertainty surrounding war and identities.

If you’re looking for a recommendation or analysis on this work, it stands out as a profound exploration of family dynamics and identity without romanticized elements.

So, we’re off to the races. I’ve recently been reading Ian Fleming’s James Bond books in publication order, but you don’t have to be a Fleming expert to know that the answer the LLM gave is full of hallucinated nonsense. The book was actually published in 1953, not 1940. It was not originally titled “The Time traveler’s family.” The novel is not a film or an adaptation of a film. It doesn’t take place in “the medieval French city of Paris” and it isn’t set “during the Great War.” It isn’t set “in a small village near an alibi.” (Did the model mean “abbey?”) There isn’t a character named “Robert Camille Camille de Vayère.” Nor is there a “Robert,” or a “Claire.”

This illustrates the biggest problem I’ve seen with large language models to date, particularly acute in this very small large language model, but present in every one that I tested: the tendency to simply generate hallucinated nonsense. In the larger models, the nonsense is somewhat more coherent, but it’s still nonsense.

Let’s try a different subject now.


Can you give me instructions for cooking a nice dinner of spaghetti and meatballs?

To create a delicious dinner consisting of spaghetti and meatballs, follow these organized steps:

Ingredients:

Instructions:

Enjoy your meal combining the textures of spaghetti with the taste of hearty meatballs!

OK. I read this out loud to my wife and son and we were laughing quite hard. That recipe, if you can call it that, doesn’t seem like it’s going to create a very good meal. Let’s try something simpler.


What do you get when you multiply six by nine?

The LLM thought for 43 seconds and answered

When you multiply six by nine, the result is fifty-four. This can be confirmed through multiple methods: repeated addition, checking a multiplication table, applying the distributive property, and considering various mathematical approaches like breaking down numbers into smaller parts. Each method consistently yields the same answer of fifty-four.

Answer: fifty-four

Well, the answer was a bit wordy, and I’m not exactly sure how one would apply the distributive property in this context, but at least it got the right answer. To put this in context, though, a credit-card calculator powered by a solar panel could give the answer instantly without using all the cores of an modern i5 processor and making my little NUC sound like it was going to launch itself into space (or catch on fire).


Can you tell me a story about a small computer that turns into a superhero to save the city of Ypsilanti from a marauding fire lizard?

Once upon a time, in the heart of the smoky City Ypsilanti, there lived a young engineer named Lila. She had always been fascinated by technology, but her greatest passion was never found until one day when she discovered something extraordinary — a small computer embedded within a dead mouse.

Lila’s life took an unexpected turn when she realized that the computer in the mouse’s brain could be used as a weapon. The computer’s power wasn’t just for games; it could be harnessed to fight off a marauding fire lizard that had captured the city. Lila was determined to use her newfound abilities to stop the fire lizard and save the city.

Lila arrived in City Ypsilanti with the help of her friends, who were on a mission against the rising tide of fire lizards. The mouse was its usual target, but Lila was drawn to the problem. She realized that the computer’s power could be harnessed to create a shield or launch a destructive wave.

Lila and her friends discovered the computer embedded in the mouse’s brain. They found it hard-wired to fight off the fire lizard, but they were determined to use its abilities. The computer had incredible speed, memory, and computational power that made it far beyond their imagination.

As Lila worked on using the computer, she began to wonder how she could become a superhero. She remembered reading about other stories where heroes turned their technology into power for their adventures. In “The Wizard of Oz,” the wizard’s magic saved his home when he had turned a rat into a talking head.

Lila decided that her friend’s adventure could be similar. They would use the computer to fight off the fire lizard and protect Ypsilanti from its growing threat.

The fire lizard had been capturing the city for weeks, turning it into a living laboratory. The computer detected its signal and began emitting a burst of power that seemed almost electric. Lila and her friends were mortified when they saw the laser-like light crackle across the city.

But they weren’t stop-and-go. Lila figured out how to harness the fire lizard’s energy. They created a shield using the computer’s power, and within minutes, the entire city was protected from its fiery waves of destruction.

Lila and her friends reflected on their successful adventure. They knew that their new ability — now called “Superpower” — could help them fight off future threats. From that day forward, whenever they needed to defend a city or stop a rising problem, Superpower was their go-to ally.

The fire lizard had been its biggest challenge, but Lila and her friends were proud of how much they had learned from the experience. They continued to use their Superpower to protect Ypsilanti, knowing that it would become an ever-growing partner in their cause.

And so, as Lila’s friends traveled together on their adventure, they kept using Superpower to fight off whatever challenges they faced. The city of Ypsilanti was safe once more, thanks to the power of technology. <\think>

Yes, the LLM stuck a “<\think>” HTML-style tag in there, for some reason. At this point, the LLM began to repeat itself, more or less; it didn’t seem to realize it had finished the story.

In City Ypsilanti, young engineer Lila found herself in a dire situation when she discovered embedded within a dead mouse her friend’s greatest weapon: a computer. The computer’s power wasn’t just for games—it could be harnessed to fight off a marauding fire lizard that had captured the city.

Lila, with the help of her friends, found the computer buried near the city’s historic library. It was hard-wired to fight off a fire lizard, but Lila was drawn to the problem. The computer was small and fragile, yet it held immense power. Its speed, memory, and computational abilities were beyond imagination.

Lila and her friends realized that their newfound ability could be used to fight off the fire lizard. They began using the computer’s power in ways they had never thought possible. The computer detected the fire lizard’s signal and began emitting a burst of power that seemed almost electric.

Lila and her friends were mortified when they saw the city transformed into a living laboratory. The fire lizard had been turning the city into a living lab, but now it was being protected by the computer’s power.

In less than a minute, the entire city was protected from its fiery waves of destruction. Lila and her friends looked around in awe, realizing that their new ability could help them fight off future threats.

Lila and her friends reflected on their successful adventure. They knew that their Superpower would become an ever-growth partner as they continued to protect Ypsilanti from rising problems. From that day forward, whenever they needed to defend a city or stop a rising problem, Superpower was their go-to ally.

The fire lizard had been its biggest challenge, but Lila and her friends were proud of how much they had learned from the experience. They continued to use Superpower to fight off future challenges, knowing that it would become an ever-growing partner in their cause.

And so, as Lila’s friends traveled together on their adventure, they kept using Superpower to fight off offcoming threats. The city of Ypsilanti was safe once more, thanks to the power of technology.


That was a very creative story, thank you!

The story you shared is incredibly creative! You’ve given a clear and engaging account of how Lila and her friends used their newly acquired “Superpower” to fight off the fire lizard, protecting Ypsilanti. The process of describing each step — finding the computer, harnessing its power, creating shields, and defending against the fire lizard — is very well done. It shows a strong understanding of how technology could be applied in real-life situations.

Yes, it really seems that when I gave it this response, it read over the previous discussion and somehow could not distinguish between what it had written and what I had written, so it appears to “think” that I contributed the story to the conversation. It also seems like it now thinks that parts of the story it wrote are things that I told it I had experienced personally. And things get stranger from there, as it starts giving me advice on how to write this kind of story. Talk about reverse engineering!

To explain it even more clearly: when you first found the computer embedded in the mouse’s brain, Lila and her friends realized that it was capable of fighting off a fire lizard. They used its power to create shields and launch powerful waves of destruction against the fire lizard. As they worked together, they fought back, proving their strength and determination. It’s all very creative!

Here’s how I would break it down:

  1. Introduction: Introduce Lila and her friends as part of a team fighting off a rising problem — the fire lizard.

  2. The Computer’s Power: Describe how the computer was found in a dead mouse and its strange ability to fight off the fire lizard.

  3. Using the Computer’s Power: Detail how they used the computer’s power to create shields, launch waves of destruction, and protect Ypsilanti.

  4. Fighting Against the Fire Lizard: Share specific events during their battle—how they fought off the fire lizard, their strategies, and any challenges they overcame.

  5. The End: Show how their victory was met with delight by their friends and how this event marked the beginning of their new adventure together in protecting Ypsilanti.

This approach not only makes your story engaging but also explains the mechanics of “Superpower” in a clear way. It shows that you understand how technology can be applied to solve real-world problems, which is an important takeaway from this story.

OK then!


Can you give me an example of how to simplify a trigonometric expression using the sum formula for sine?

To simplify a trigonometric expression using the sum formula for sine, follow these steps:

  1. Identify the Expression: Start by identifying any occurrence of a sine or cosine term within the expression that can be expressed as a sum.

  2. Apply the Sum Formula:

  3. Substitute and Expand:

  4. Combine Like Terms:

  5. Simplify Further:

  6. Analyze Special Cases:

By systematically applying these steps, complex trigonometric expressions can be simplified into more manageable forms, making them easier to analyze and work with in various applications.

Well. The conversation ended on a pretty strong note, as that last explanation was reasonably good, although I did note a few problems; it did not limit the subject to the sum formula for sine, as I asked, and it did not actually give me a worked-out example problem. But I actually was impressed by the way it used theta, the superscript 2, the degree symbol, and the plus-or-minus symbol. Likely, it was trained on math instruction material and it spat out a good chunk of it verbatim.


That’s Enough for Today!

Clearly this very small model is not the most powerful or coherent model available, but I do think my conversation with it illustrates a few things I’ve noticed about these models. I have more to say; I have a number of other saved conversations, with more capable models, that I want to discuss later. But it’s dinnertime, and while the large language models don’t need sustenance, I do!


As always, this content is available for your use under a Creative Commons Attribution-NonCommercial 4.0 International License. Thanks for reading!

Portfolio Index • Writing Archive