Language: English
Rent a GPU

Guide · Ollama · one card or several

How do you set up Ollama on a rented GPU?

Last updated: · 5 min read

Quick answer

Can you run Ollama on a rented GPU?

Yes. On a RentGPUCrypto instance, Ollama installs with one command and finds the NVIDIA GPU on its own. An RTX 4090 at $0.37 per hour runs Qwen3 32B in 4-bit (22 GB). Keep the API on port 11434 behind an SSH tunnel. Pay in Monero or Bitcoin, no KYC.

In brief
  • Install: the official script sets up the ollama binary and a systemd service on Ubuntu.
  • Models: tags such as qwen3:32b or llama3.1:8b download 4-bit builds by default.
  • Several GPUs: Ollama splits a model across cards only when one card is too small.
  • Access: the API listens on 127.0.0.1:11434; forward it over SSH instead of opening it.
  • Storage: models live under the service's home on the NVMe disk, kept while the instance is stopped.

Which card suits which Ollama model?

4-bit sizes from RentGPUCrypto's VRAM rule (FP16/BF16 2 bytes, FP8/Q8 1.06 bytes, Q4 0.56 bytes per parameter, x1.2 for the KV cache and runtime). Ollama's default tags are 4-bit.

Popular Ollama models in 4-bit, VRAM needed and the smallest RentGPUCrypto GPU
ModelOllama tag4-bit VRAMSmallest GPUCost per hour
Llama 3.1 8Bllama3.1:8b5 GBRTX 4090$0.37/hr
Qwen3 14Bqwen3:14b10 GBRTX 4090$0.37/hr
Qwen3 32Bqwen3:32b22 GBRTX 4090$0.37/hr
Llama 3.3 70Bllama3.3:70b47 GBL40S$0.99/hr
Qwen3 235B-A22Bqwen3:235b158 GB2× A100 80GB$2.38/hr

Why pick Ollama over vLLM?

Ollama is the quickest way from a bare GPU to a working chat model for one person. It bundles llama.cpp, picks a quantised file for you and needs no Python environment. You type ollama run and talk to the model a minute after the download ends.

vLLM wins when many requests arrive at once: it batches them and keeps the GPU busy. For a private assistant, a coding helper or an evaluation script that sends one prompt at a time, Ollama is enough. The Llama 70B with vLLM guide covers the other path.

What are the steps from launch to first answer?

  1. Launch the instance

    In the dashboard, Launch a GPU: pick the card, 1× for most models, the PyTorch with CUDA · Ubuntu image and paste your SSH public key. The launch help page shows each field.

  2. Connect

    When the instance shows Running, copy the SSH command from its page and connect.

  3. Install Ollama

    Run the install script. It detects the NVIDIA driver and starts the ollama service.

  4. Pull and run a model

    ollama pull qwen3:32b, then ollama run qwen3:32b. ollama ps shows whether it sits fully on the GPU.

Install, pull, run
curl -fsSL https://ollama.com/install.sh | sh
systemctl status ollama --no-pager
ollama pull qwen3:32b
ollama run qwen3:32b "Write a bash loop that renames *.jpeg to *.jpg"
ollama ps

How do you call the Ollama API from your laptop?

Forward port 11434 through SSH and send requests to localhost. By default the service listens only on the loopback interface, which is what you want on a machine with a public IP. The tunnel carries the traffic encrypted, and nobody else can reach the model.

Ollama also exposes an OpenAI-compatible route at /v1/chat/completions, so tools written for the OpenAI client work once their base URL is http://127.0.0.1:11434/v1.

Tunnel and a request to the native API
ssh -p <port> -N -L 11434:127.0.0.1:11434 root@<host>

curl http://127.0.0.1:11434/api/generate \
  -d '{"model": "qwen3:32b", "prompt": "Explain RAID 10 briefly.", "stream": false}'

Should you set OLLAMA_HOST to 0.0.0.0?

Only behind a firewall or an authenticating proxy, because Ollama's API has no password. Anyone who finds the port could run prompts on your GPU-hours and pull or delete models. If a web interface such as Open WebUI runs on the same machine, it can reach Ollama on 127.0.0.1 and you tunnel only the web interface.

When you truly need another listen address, set it in a systemd override rather than in your shell, so it survives restarts. The instance security guide shows a ufw setup.

systemd override (only with a firewall in place)
sudo systemctl edit ollama
# add:
# [Service]
# Environment="OLLAMA_HOST=0.0.0.0:11434"
sudo systemctl daemon-reload && sudo systemctl restart ollama

What does a day of Ollama cost?

You pay only for the minutes the instance runs, at the GPU's hourly rate. According to RentGPUCrypto's price check of 3 December 2026, an RTX 4090 costs $0.37 per GPU-hour on a 10-hour block and a 24-hour block is $8.88. Stop the instance at night: the disk and the downloaded models stay, and no GPU-hours are drawn while it is stopped.

A 70B model in 4-bit needs 47 GB, which means an L40S at $0.99 or two RTX 4090 cards. Ollama splits the layers over both cards; generation is slower than on one big card but costs less.

If you only need Ollama for an afternoon of tests, a 10-hour block is enough, and the hours you do not use stay on the account for the next session.

Ollama on a rented GPU: questions

Does Ollama use every GPU of the instance?

It loads a model on one GPU when it fits and spreads it over several only when it does not. To run different models on different cards, start separate Ollama instances with CUDA_VISIBLE_DEVICES set to one card each and different ports.

Where does Ollama store the models?

With the Linux install script, under /usr/share/ollama/.ollama/models. Set OLLAMA_MODELS in a systemd override to move them. The disk is kept while the instance is stopped and wiped when you delete it.

Can Ollama run DeepSeek R1 671B?

Yes, the deepseek-r1:671b tag exists, but its 4-bit weights need 451 GB by RentGPUCrypto's rule: 4× H200. For that size, vLLM serves requests more efficiently.

Which GPU should a beginner rent for Ollama?

An RTX 4090 at $0.37 per hour. Its 24 GB hold any model up to about 32B parameters in 4-bit, and a 10-hour block costs $3.70.

Can someone set Ollama up for me?

Yes. RentGPUCrypto's environment setup service installs Ollama, loads one model of your choice and tests it, for $49 per instance.

Verdict
  • Ollama is the fastest start for one user: one install command, one pull, a chat in the terminal.
  • An RTX 4090 covers most 4-bit models up to 32B; rent an L40S or two RTX 4090 cards for 70B.
  • Keep port 11434 on localhost and use an SSH tunnel; stop the instance between sessions.
Sources (5)
  1. Ollama on Linux: install and systemd — Ollama
  2. Ollama FAQ: OLLAMA_HOST, model location, GPUs — Ollama
  3. Ollama API reference — Ollama
  4. Ollama OpenAI compatibility — Ollama
  5. NVIDIA GeForce RTX 4090 — NVIDIA

Run Ollama on an RTX 4090

$3.70 for 10 GPU-hours, paid in crypto, no ID, no email.

RTX 4090 from $0.37/hr · no KYC

Rent a GPU