Want to run large AI models but don't have enough GPU or VRAM? In this video, I show you how to run powerful AI models completely online, for free, using a Kaggle GPU notebook, Ollama, and a Cloudflare tunnel — no local hardware required.
What you'll learn:
✅ Setting up a free GPU notebook on Kaggle (T4 x2)
✅ Installing Ollama inside your Kaggle notebook
✅ Downloading an AI model from Hugging Face
✅ Exposing your model to the internet with a Cloudflare tunnel
✅ Connecting it to Hermes Agent on your local machine
✅ Live test: running the model and chatting with it
Kaggle:
https://www.kaggle.com/
-----------------------
Hugging Face:
https://huggingface.co/
---------------------
Install Zstandard:
!sudo apt-get install zstd
--------------------
Install Ollama:
!curl -fsSL https://ollama.com/install.sh | sh
--------------------
Start Ollama:
import subprocess
import time
subprocess.Popen(
["ollama", "serve"],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL
)
time.sleep(5)
print("Ollama started")
------------------------------
Run the AI Model:
!ollama run hf.co/JonathanColetti/Qwen3.8-27B-Uncensored-GGUF:Q4_K_M
!ollama run --insecure hf.co/theLittleStone/Qwen3.6-27B-AEON-Ultimate-Uncensored-MTP-GGUF:Q4_K_M
--------------------------
Install Cloudflared:
!wget -q https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
!sudo dpkg -i cloudflared-linux-amd64.deb
-------------------------
Confirm Cloudflared Installation:
!cloudflared --version
-----------------
Create the Cloudflare Tunnel:
import subprocess
import time
cloudflared = subprocess.Popen(
[
"cloudflared",
"tunnel",
"--url", "http://127.0.0.1:11434",
"--http-host-header", "localhost:11434"
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
text=True
)
time.sleep(8)
for _ in range(30):
line = cloudflared.stdout.readline()
if line:
print(line, end="")
---------------------
⚠️ Kaggle's free GPU quota has weekly limits — check Kaggle's current terms before relying on this for long-running or critical work.
⚠️ When choosing models from Hugging Face, be mindful of unfiltered/uncensored models — they lack safety guardrails and can produce harmful or inappropriate output. Use responsibly.
If this helped, don't forget to like and subscribe. If you have any questions, drop them in the comments!
#FreeGPU #Kaggle #Ollama #Cloudflare #HermesAgent #FreeAI #AIModels #SelfHosted #DeveloperTools #2026