No GPU? This is the updated version of my free VRAM server video. Run a 19 GB AI model for free with Ollama on Kaggle's two free Tesla T4 GPUs, with about 30 GB of VRAM.
I show the real speed (about 12 tokens per second), the real limits, and what I corrected from my last video.
No GPU? Here is how you can run a 19 GB AI model for free with Ollama on Kaggle's two free Tesla T4 GPUs, with about 30 GB of VRAM.
I show the real speed (about 12 tokens per second), the real limits, and one correction from my last video on this topic.
Kaggle: https://www.kaggle.com/
Model: https://huggingface.co/ggml-org/Qwen3.8-27B-GGUF
Kaggle Acceptable Use Policy: https://www.kaggle.com/aup
CHAPTERS
0:00 Why this model will not fit on your GPU
0:24 What VRAM is
0:43 What Kaggle gives you for free
1:07 Turn on the free GPU
1:25 What we really get: 30 GB, not 32
2:03 Install Ollama
2:36 Start Ollama
2:44 Download the 19 GB model
3:09 Ask the first question
3:35 Is it really running on the GPU?
4:03 The real speed test
4:34 The 4 real limits
5:07 My correction: why no tunnel
5:54 Turn off the session
6:04 Recap
COMMANDS
Paste each block into its own Kaggle notebook cell. Turn on GPU T4 x2 first, in Settings, then Accelerator.
Check the GPUs:
!nvidia-smi
Install Ollama:
!sudo apt-get update -qq
!sudo apt-get install -y -qq zstd
!curl -fsSL https://ollama.com/install.sh | sh
Start Ollama:
import subprocess, time
subprocess.Popen(['ollama', 'serve'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
time.sleep(5)
print('Ollama started')
Download the model:
!ollama pull hf.co/ggml-org/Qwen3.8-27B-GGUF:Q4_K_M
!ollama list
Ask it a question:
import json, urllib.request
MODEL = 'hf.co/ggml-org/Qwen3.8-27B-GGUF:Q4_K_M'
END = chr(60) + '/think' + chr(62)
def ask(prompt):
body = {'model': MODEL, 'prompt': prompt, 'stream': False}
req = urllib.request.Request('http://127.0.0.1:11434/api/generate', json.dumps(body).encode(), {'Content-Type': 'application/json'})
r = json.load(urllib.request.urlopen(req, timeout=1800))
print(r['response'].split(END)[-1].strip())
print('---')
print('load time:', round(r['load_duration'] / 1e9), 'seconds')
print('speed:', round(r['eval_count'] / (r['eval_duration'] / 1e9), 1), 'tokens per second')
ask('In 3 short sentences, explain what VRAM is.')
Check that it is on the GPU:
!ollama ps
!nvidia-smi --query-gpu=index,name,memory.used,memory.total --format=csv
When you finish, click the power button to stop the session. This saves your hours.
THE LIMITS
30 GPU hours per week. 12 hours per session. When the session ends, Ollama and the model are gone. This runs on Kaggle's computers, so it is not private. Don't paste passwords, API keys or client code.
GIF CREDITS (via GIPHY)
Time To Say Goodbye Sad Tiger GIF, frommemetoyou: https://giphy.com/gifs/tigger-leaving-snow-502lDJxzzfZnfWD5pV
Confused Hands Up GIF by STRAPPED!, STRAPPEDUS: https://giphy.com/gifs/STRAPPEDUS-druski-druski2funny-meme-n4FCJYLldGPC95d4ku
Sad Cry GIF, lasanakey: https://giphy.com/gifs/cry-pug-chihuahua-jMT0RXoFezGTgleWb4
Cup Of Tea GIF by Frankie, frankiegloverfinlay: https://giphy.com/gifs/cup-of-tea-cuppa-nice-aZdCfWI98ZBttDJHj8
Baby Thank You GIF: https://giphy.com/gifs/thank-you-thanks-thumbs-up-BYoRqTmcgzHcL9TCy1