Ali SadeghiPortfolio detail page
Go to Ali's portfolio

Ollama

Local LLM Runtime

Used Ollama to run and manage local LLMs and connect them to Fabrexa AI Bot through its local API.

Ollama logo

Where It Helps

  • Running different LLMs locally without depending on external AI APIs
  • Exposing local models through a simple API for use inside applications
  • Testing and switching between models based on system resources and project needs

Story

I started working with Ollama in 2026 because of a specific need in my Fabrexa AI project.

I wanted to build a Telegram bot that could connect to AI models running locally on my own computer instead of depending on online AI services.

That's when I discovered Ollama and realized how powerful and useful it was. It made running local models much easier, and it also had a local API that I could connect to directly from my own project.

Depending on what I needed and what my computer could handle, I would download different models from Hugging Face, import them into Ollama, and let Fabrexa AI Bot access them through Ollama's API. The bot could send a message to the selected local model and return its response directly in Telegram.

At one point, I was also looking for different models on Hugging Face for a particular use case. I think I downloaded around six different local models, built using different technologies and approaches. I used Ollama to run, test, and experiment with all of them to see how each one behaved and what kind of responses it produced.

I really enjoyed that part of working with local models. Being able to run different models on my own computer, experiment with them, and use them without depending on an online service was pretty cool.

Later, during a nationwide internet shutdown in Iran, Ollama became useful to me in a completely different way.

Thankfully, I had already discovered Ollama and downloaded a local DeepSeek model! During that roughly one-month period when the internet was cut off and I couldn't access online LLMs, I used Ollama to cover my day-to-day LLM needs.

Of course, the quality wasn't anywhere near what I was used to from online models, but it was really useful in those circumstances. At least I had a model I could run on my own computer and use for the things I needed.

Overall, Ollama has been a really cool and practical tool for me, from building a Telegram bot and experimenting with different models to relying on a local LLM when I couldn't access online ones.

It made running local models and connecting them to my own projects much easier, and it's still one of those tools I enjoy playing around with. :)

Ask ChatGPT

Get a summary or ask questions about this page.

Open in ChatGPT