How to use open-source AI models without installing anything
You can try an open-source AI model on a cloud GPU without installing software on your computer. Runpod, the AI developer cloud, offers four ways to do that, and they differ in how much you control and how you pay:
- Call a hosted model through a Public Endpoint. There is nothing to deploy, and you pay per token, image or second of video.
- Launch a pod from a template: a GPU container you rent by the second, with JupyterLab, a web terminal and SSH ready. You pick the model and software.
- Open a notebook on a pod and run a model card's Hugging Face Transformers example as written.
- Deploy the model to a Serverless endpoint from the Runpod Hub, which serves an OpenAI-compatible API and scales to zero when idle.
An open-source model, in common use, is one whose weights you can download and run. The stricter term is open-weight, because the Open Source Initiative's Open Source AI Definition 1.0 also asks for training code and training-data details that many models do not publish. This guide names each model's license, because the license decides whether you can use the output commercially.
You need a cloud GPU when the model's weights and working memory do not fit in the GPU memory you have. An 8-billion-parameter model needs about 16 GB for its weights alone at 16-bit precision, more than most laptops have. A cloud template also saves you from configuring CUDA, drivers and Python locally.
| Path | Time to first output | What you manage | How you pay | Best for |
|---|---|---|---|---|
| Public Endpoint | Under a minute | Nothing but the API call | Per token, image or second of output | Comparing models, prototypes |
| Pod from a template | A few minutes | The container, model and software | Per second while the pod runs, plus disk | Chat UIs, ComfyUI, experiments |
| Notebook on a pod | A few minutes, plus the model download | Your Python environment and code | Per second while the pod runs, plus disk | Running model card examples, fine-tuning |
| Serverless from the Hub | Several minutes for the first deploy | Model choice and endpoint settings | Per second while workers run, zero when idle | An API your app calls |
Times are typical and depend on model size, because every path except Public Endpoints downloads the weights on first start.
Local setup and GPU memory requirements
Running a model locally needs a matching CUDA driver, a clean Python environment and tens of gigabytes of disk, but the hard limit is GPU memory.
A model's weights take roughly its parameter count times the bytes per parameter: 2 at BF16, the 16-bit format most open models ship in, and about 0.5 for 4-bit formats such as GGUF, AWQ or MXFP4, at some cost in quality. Plan for 20 to 30 percent headroom for activations and the KV cache, and more for long contexts or many requests at once. For Qwen3-8B, each token of context takes about 147 KB (derived: 2 for keys and values x 36 layers x 8 KV heads x 128 dimensions x 2 bytes), so a 16,384-token conversation adds about 2.4 GB to 16.4 GB of weights and a 32,768-token one adds about 4.8 GB.

VRAM requirements for the models in this guide:
- Whisper large-v3 has about 1.55 billion parameters, so its weights need about 3.1 GB at 16-bit (derived: 1.55 x 2). In Runpod benchmarks run in September 2026, it peaked at 3.2 GB at float16 on an L4 (faster-whisper, one request at a time, beam size 5, one run).
- Qwen3-8B has 8.2 billion parameters, so it needs about 16.4 GB at BF16 (derived: 8.2 x 2) and fits on a 24 GB GPU. In Runpod benchmarks run in September 2026, vLLM on a 24 GB GPU had room for about 31,000 tokens of KV cache, about two 16,384-token conversations. The 4-bit Ollama build is a 5.2 GB download.
- gpt-oss-20b has 21 billion parameters with 3.6 billion active per token and ships in MXFP4. OpenAI states it runs within 16 GB of memory, and the Ollama build is a 14 GB download.
- FLUX.1 [schnell] and FLUX.1 [dev] are 12-billion-parameter image models, so the transformer alone needs about 24 GB at BF16 (derived: 12 x 2) before the text encoders. In Runpod benchmarks run in September 2026, FLUX.1 [dev] peaked at 33.8 GB on an L40S for one 1024 x 1024 image in 28 steps and 39.5 GB for a batch of four (diffusers, one run each), so plan on a 48 GB GPU.
- A 70-billion-parameter model needs about 140 GB at BF16 (derived: 70 x 2), which leaves no headroom on a 141 GB H200. Plan on a 180 GB B200 or two 80 GB GPUs, or quantize to 4-bit, which needs about 35 GB (derived: 70 x 0.5).
Path 1: Call a hosted model through Public Endpoints
Public Endpoints are models Runpod has already deployed. You call them with your Runpod API key and pay per request, with no GPU to pick and no idle time. The catalog covers text, image, video and audio models, including Qwen3 32B AWQ, IBM Granite 4.0 H Small, Moonshot Kimi, FLUX.1 [dev] and [schnell], Qwen Image, Wan 2.x and Chatterbox Turbo, and many have a browser playground in the Runpod Hub.
The text models provide an OpenAI-compatible API. To use the OpenAI SDK, change the API key, base URL and model name:
# pip install openai
# Create an API key in the Runpod console (Settings > API Keys), then:
# export RUNPOD_API_KEY="rpa_..."
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["RUNPOD_API_KEY"],
base_url="https://api.runpod.ai/v2/qwen3-32b-awq/openai/v1",
)
response = client.chat.completions.create(
model="Qwen/Qwen3-32B-AWQ",
messages=[{"role": "user", "content": "Explain what a KV cache is in two sentences. /no_think"}],
max_tokens=512,
)
print(response.choices[0].message.content)Qwen3 32B AWQ costs $10.00 per 1M tokens as of November 19, 2026. A November 30 test billed $0.00162 for a request of 62 input and 100 output tokens. Check the model's docs page for the current rate and billing basis before you budget against it. Image models bill per megapixel or image and video models per second of output, and failed generations are not charged.
Qwen3 reasons before it answers, and the reasoning comes back in the reply inside <think> tags and counts against max_tokens. The example adds /no_think to the end of the message for a direct answer, which starts with an empty <think></think> block you can strip.
Use Public Endpoints to test a model on your task before renting a GPU. For a model outside the catalog, a fine-tuned variant or full control over serving settings, rent the GPU.
Path 2: Launch a pod from a template
A pod is a container with a dedicated GPU. Runpod's official templates, including Runpod PyTorch 2.8.0 (CUDA 12.8, Ubuntu 24.04), ComfyUI and a ROCm PyTorch template for AMD GPUs, come with the CUDA driver, PyTorch and JupyterLab installed and matched. Each mounts a persistent volume at /workspace and exposes JupyterLab on port 8888 and SSH on port 22.
To launch one:
- In the Runpod console, open Pods and click Deploy.
- Choose Secure Cloud and a GPU with enough memory for your model (see Table 2).
- Pick a template, for example Runpod PyTorch 2.8.0 or ComfyUI.
- Set the volume disk large enough for the model weights you plan to download, then deploy on demand.
- When the pod's telemetry starts reporting, click Connect and open JupyterLab, the web terminal or a service on an HTTP port.
Every HTTP port you expose is reachable at https://POD_ID-PORT.proxy.runpod.net. The URL is public, so put authentication in front of anything you leave running.
Run an LLM in a pod with Ollama
The commands below install Ollama, start its server and load Qwen3-8B for chat. This follows the Runpod docs tutorial for Ollama, with a current model.
When you deploy, edit the template to add OLLAMA_HOST=0.0.0.0 and OLLAMA_MODELS=/workspace/ollama (which keeps models on the volume) as environment variables and 11434 as an HTTP port. Then run these commands in the web terminal (the installer needs lshw to detect the GPU and zstd to unpack):
apt update && apt install -y lshw zstd
(curl -fsSL https://ollama.com/install.sh | sh && ollama serve > ollama.log 2>&1) &
ollama run qwen3:8bFor OpenAI's open-weight model, run ollama run gpt-oss:20b instead (a 14 GB download). After a pod restart, rerun the second command to reinstall Ollama. The models stay on the volume. To call the model from your laptop, use the proxy URL:
curl https://POD_ID-11434.proxy.runpod.net/api/generate -d '{
"model": "qwen3:8b",
"prompt": "Write a haiku about GPUs.",
"stream": false
}'Generate images with the ComfyUI template
The ComfyUI template opens ComfyUI on port 8188 from the Connect menu. To run an LLM, Whisper and ComfyUI side by side, see how to run Ollama, Whisper and ComfyUI together in one container. Load a workflow and download the model files it asks for into the models folder under /workspace. FLUX.1 [schnell] is Apache 2.0 licensed and FLUX.1 [dev] is non-commercial. Both are gated on Hugging Face, so accept the terms and use a Hugging Face token.
Path 3: Run a model card's example in a notebook
Most Hugging Face model cards include a Transformers example, and a PyTorch template pod runs it as written in JupyterLab. Set HF_HOME to a folder on the volume so the weights survive a restart.
# Run in JupyterLab on a Runpod PyTorch 2.8.0 pod with 24 GB or more of GPU memory.
# Qwen3 needs transformers 4.51.0 or later; older versions fail with KeyError: 'qwen3'.
# !pip install -U "transformers>=4.51.0" accelerate
import os
os.environ["HF_HOME"] = "/workspace/hf" # keep downloaded weights on the persistent volume
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Qwen/Qwen3-8B" # Apache 2.0, 8.2B parameters
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
dtype=torch.bfloat16, # on transformers older than 4.56, use torch_dtype=torch.bfloat16
device_map="auto",
)
messages = [{"role": "user", "content": "Give three uses for a 24 GB GPU."}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True, enable_thinking=False # skip Qwen3's thinking trace and answer directly
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(output[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))You can also transcribe audio in the notebook with Whisper. Whisper large-v3 is Apache 2.0 licensed and fits comfortably on the smallest GPU on Runpod Secure Cloud:
# Run in the same notebook. Reading audio files needs ffmpeg:
# !apt-get update && apt-get install -y ffmpeg
import os
os.environ["HF_HOME"] = "/workspace/hf" # keep downloaded weights on the persistent volume
import torch
from transformers import pipeline
asr = pipeline(
"automatic-speech-recognition",
model="openai/whisper-large-v3", # Apache 2.0, about 1.55B parameters
dtype=torch.float16, # on transformers older than 4.56, use torch_dtype=torch.float16
device="cuda:0",
)
result = asr("/workspace/meeting.mp3", return_timestamps=True)
print(result["text"])
for chunk in result["chunks"][:5]:
print(chunk["timestamp"], chunk["text"])Upload the recording to /workspace first. For recordings over 30 seconds, return_timestamps=True turns on Whisper's sequential long-form decoding, which the model card recommends, and timestamps each segment. Whisper does not label speakers, so meeting transcripts also need a diarization model such as pyannote.audio. The faster-whisper library runs the same model faster with int8 weights.
For gated models such as Llama 3.1 8B Instruct, accept the license on Hugging Face, then log in from the notebook with your token.
Path 4: Deploy a model as a Serverless endpoint
A pod left running for an app bills for every idle hour. A Serverless endpoint runs workers only while requests are in flight. The vLLM worker in the Runpod Hub deploys most Hugging Face text models with no code:
- Open the vLLM worker repo in the Runpod Hub and click Deploy.
- Enter the model name, for example Qwen/Qwen3-8B.
- Choose a GPU tier with at least 24 GB of memory for an 8B model at BF16. The worker defaults to 80 GB GPUs, which an 8B model does not need.
- Under Advanced, set Max Model Length to a context length your GPU can hold, such as 8192.
- Create the endpoint and copy its endpoint ID.
After the first deploy, which takes several minutes to download the weights, the endpoint serves an OpenAI-compatible API:
import os
from openai import OpenAI
ENDPOINT_ID = "your-endpoint-id" # from the Serverless console
client = OpenAI(
api_key=os.environ["RUNPOD_API_KEY"],
base_url=f"https://api.runpod.ai/v2/{ENDPOINT_ID}/openai/v1",
timeout=300, # covers a request that arrives while a worker is starting
)
response = client.chat.completions.create(
model="Qwen/Qwen3-8B", # must match the model you deployed
messages=[{"role": "user", "content": "Summarize what vLLM does. /no_think"}],
max_tokens=512, # the worker's default is 16 tokens
)
print(response.choices[0].message.content)Set max_tokens on every request, because the worker's default of 16 tokens truncates most answers, and keep /no_think in the message: without it, Qwen3-8B spent all 512 tokens reasoning in a November 30 test and never answered. The first request to a new endpoint pays a cold start: Runpod starts a worker, pulls the container and loads the weights into GPU memory, and larger models take longer. In that test, on a 48 GB GPU, the first request to a new endpoint waited about 198 seconds while the worker loaded Qwen3-8B, and a request to the warm worker started in 18 ms. FlashBoot, on by default for endpoints created in the console, shortens later cold starts by retaining worker state after spin-down and helps most with steady traffic. Setting active workers to 1 or more removes cold starts but bills continuously. That is why the client timeout above is generous.
Which GPU to pick for each model
Choose a GPU with enough memory for the model weights, KV cache and activations. For ways to fit a larger model on the GPU you have, see the guide to avoiding OOM crashes for large models.
| Workload | Example models | GPU memory | Recommended GPU | Secure Cloud rate |
|---|---|---|---|---|
| Speech to text, small LLMs at 4-bit | Whisper large-v3, qwen3:8b and gpt-oss-20b in Ollama | 24 GB | RTX A5000 or L4 | {{gpu:rtx-a5000}}/hr or {{gpu:l4}}/hr |
| 7B to 8B LLMs at BF16 | Qwen3-8B, Llama 3.1 8B Instruct | 24 to 48 GB | RTX A5000, or L40S for more traffic | {{gpu:rtx-a5000}}/hr or {{gpu:l40s}}/hr |
| Image generation | FLUX.1 | 48 GB | L40S or RTX A6000 | {{gpu:l40s}}/hr or {{gpu:rtx-a6000}}/hr |
| 30B to 70B LLMs at 4-bit | Qwen3 32B AWQ, 70B models at AWQ | 48 GB for 32B, 48 to 96 GB for 70B | L40S for 32B, RTX PRO 6000 or H100 SXM for 70B | {{gpu:l40s}}/hr, {{gpu:rtx-pro-6000}}/hr or {{gpu:h100-sxm}}/hr |
| 70B LLMs at BF16 | 70B-class instruct models | 170 GB or more | B200 (short contexts) | {{gpu:b200}}/hr |
GPU memory is derived from parameter count times bytes per parameter plus headroom (see Figure 2). Rates are live Secure Cloud on-demand prices. A B200 fits a 70B model at BF16 only with short contexts. For long ones, use two 80 GB GPUs or a 4-bit build.
Also check whether the GPU meets your response-time and throughput requirements. In Runpod benchmarks run in November 2026, Qwen3-8B generated 16.6 tokens per second for a single request on an L4, 40.5 on an RTX A5000 and 45.6 on an L40S. Held to a first token within one second and 50 ms per token after that, the RTX A5000 served 8 requests per second and the L40S 16, while the L4 missed the target even at one request. Each card ran once on Secure Cloud with vLLM 0.34.0, no quantization and requests of about 140 tokens in and 128 out.
Recommended for:
- Whisper and LLMs up to 8B, at 4-bit or BF16: RTX A5000 at {{gpu:rtx-a5000}}/hr on Secure Cloud. The L4 at {{gpu:l4}}/hr also has 24 GB, but it generated less than half the RTX A5000's tokens per second for Qwen3-8B in Runpod benchmarks.
- Single-GPU work with BF16 LLMs, 32B models at 4-bit, FLUX and fine-tuning with LoRA: L40S at {{gpu:l40s}}/hr on Secure Cloud.
- 70B-class models at 4-bit: RTX PRO 6000 at {{gpu:rtx-pro-6000}}/hr on Secure Cloud.
- 70B-class models at full precision on one GPU: B200 at {{gpu:b200}}/hr on Secure Cloud.
What it costs to try a model
Runpod has no free tier, and usage is deducted from prepaid credits. Pods are billed per second for compute and for container and volume disk, and data transfer is free. To deploy a pod, your balance must cover one hour of its rate, such as {{gpu:l4}}/hr for an L4 on Secure Cloud, though you pay only for the seconds it runs.
To get a cost per million tokens or per hour of audio, divide the hourly rate by what the GPU produces in an hour. The examples below use Runpod benchmarks from November 2026 to estimate chat and transcription costs.
For chat with Qwen3-8B, an L40S held to the same latency target at 16 requests per second generated 1,843.7 output tokens per second in aggregate (measured), or about 6.6 million an hour (derived: 1,843.7 x 3,600). At that load, 1M output tokens cost the L40S rate of {{gpu:l40s}}/hr on Secure Cloud divided by 6.6 while it stays that busy. Idle hours raise that figure, and Serverless avoids paying for them by scaling to zero.
For transcription, Whisper large-v3 ran 18 times faster than real time on an L4, so an hour of audio takes about 3.3 minutes (derived: 60 / 18) and costs about 6 percent of the L4 rate of {{gpu:l4}}/hr on Secure Cloud. That run used faster-whisper 1.2.1 at int8_float16 on about four minutes of English speech, one clip at a time.
For fine-tuning on a budget, a single L40S at {{gpu:l40s}}/hr on Secure Cloud handles LoRA runs on models up to 8B, and per-second billing means you pay only while the job runs.
To limit test costs:
- Use Public Endpoints to shortlist models before you rent a GPU, since you pay per request and never for idle time.
- Stop or terminate pods when you finish. A stopped pod still pays for its volume disk at a higher rate, and only terminating ends all charges.
- Turn on low-balance notifications or auto-pay. When the balance reaches zero, running pods stop, and pods without a network volume are terminated with their data. Without auto-pay, prepaid credit also caps what a forgotten pod can cost.
Bring your own container
When a template does not fit, any Docker image you can push to a registry runs as a pod or a Serverless worker. Use a CUDA base image your GPU's driver supports, install dependencies at build time, start a server that keeps running, expose its port and build for linux/amd64.
Keep large weights out of the image and on /workspace or a network volume, which several pods or workers can share.
Troubleshooting
- The proxy URL returns 502. The service has not started or is not listening on 0.0.0.0. For Ollama, check that OLLAMA_HOST=0.0.0.0 is set.
- The proxy URL returns 524 on long requests. The proxy closes connections after 100 seconds, so stream the response or poll a job ID.
- CUDA out of memory at load. Lower the context length (Max Model Length on Serverless), use a quantized build or move up a GPU in Table 2.
- 401 or "access to model is restricted" from Hugging Face. The model is gated, so accept its license and pass a Hugging Face token.
- Answers stop after a few words on Serverless vLLM. Set max_tokens, because the worker defaults to 16 tokens.
- The pod will not deploy. Your balance must cover one hour of the configuration.
- Downloaded models disappear after a restart. Container disk is erased when the pod stops, so save models under /workspace.
Frequently asked questions
What does it mean to run an open-source AI model?
It means loading a model's published weights on hardware you control instead of calling a vendor's closed API.
When do I need a cloud GPU to run an open-source model?
When the weights and KV cache do not fit your GPU memory, which is true of most 8B and larger models at 16-bit on a laptop.
How can a beginner try an open-source model without setting up a server?
Call a Public Endpoint. There is nothing to deploy, the text models accept OpenAI SDK requests and you pay only for the tokens or images each request uses.
Can I run open-source models on Runpod for free?
No. Runpod has no free tier, but billing is per second, so a short pod test costs a fraction of the hourly rate.
How do I run open-source models in the cloud at low cost?
Shortlist models on Public Endpoints, size the GPU from the weights, use 4-bit builds for experiments, terminate pods when you finish and use Serverless for uneven traffic.
Which GPUs on Runpod can run open-source models?
Every GPU on Runpod Secure Cloud runs PyTorch models, from 16 GB cards such as the RTX 2000 Ada up to the H200, B200 and B300, and AMD MI300X GPUs run them through the ROCm template. Pick by memory using Table 2.
How much VRAM do FLUX.1, Whisper large-v3 and 8B LLMs need?
Qwen3-8B and Llama 3.1 8B need about 16 GB at BF16 (derived: 8 x 2) plus the KV cache, so a 24 GB GPU runs either. FLUX.1 [dev] peaked at 33.8 GB in Runpod benchmarks, so it needs a 48 GB GPU as shipped, though FP8 builds (about 12 GB for the transformer, derived) should fit 24 GB. Whisper large-v3 peaked at 3.2 GB, or about 2 GB with faster-whisper at int8, and OpenAI states that gpt-oss-20b runs within 16 GB.
Can I run my own fine-tuned model or a Hugging Face checkpoint?
Yes. Load any Hugging Face model ID or local checkpoint in a pod, or enter the model ID when you deploy the vLLM worker on Serverless. Gated models need a Hugging Face token.
Run it on Runpod
Choose a Runpod product based on what you need to do:
- Evaluate: Public Endpoints, to compare hosted models by output quality and cost per token.
- Experiment and build: Pods from the PyTorch or ComfyUI template.
- Fine-tune: Pods for single-GPU LoRA on an L40S, Clusters for multi-node training.
- Serve: Serverless with the Hub vLLM worker, which scales to zero.
Start with a Public Endpoint call or a pod to test the model. If your app needs an API with intermittent traffic, deploy it on Serverless.
Sources
- Runpod docs, Billing overview: https://docs.runpod.io/accounts-billing/billing
- Runpod docs, Pod pricing: https://docs.runpod.io/pods/pricing
- Runpod docs, Public Endpoints overview and Qwen3 32B AWQ model page: https://docs.runpod.io/public-endpoints/overview
- Runpod docs, Expose ports: https://docs.runpod.io/pods/configuration/expose-ports
- Runpod docs, Set up Ollama on a pod: https://docs.runpod.io/tutorials/pods/run-ollama
- Runpod docs, Deploy vLLM on Runpod Serverless: https://docs.runpod.io/serverless/vllm/get-started
- Runpod docs, OpenAI API compatibility: https://docs.runpod.io/serverless/vllm/openai-compatibility
- Qwen3-8B model card: https://huggingface.co/Qwen/Qwen3-8B
- gpt-oss-20b model card: https://huggingface.co/openai/gpt-oss-20b
- FLUX.1 [schnell] and FLUX.1 [dev] model cards: https://huggingface.co/black-forest-labs
- Whisper large-v3 model card: https://huggingface.co/openai/whisper-large-v3
- Llama 3.1 8B Instruct model card: https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct
- Ollama library: https://ollama.com/library
- Open Source Initiative, The Open Source AI Definition 1.0: https://opensource.org/ai/open-source-ai-definition
- vLLM docs, vllm serve: https://docs.vllm.ai/en/latest/cli/serve.html
Related guides
- Security Measures to Expect from AI Cloud Deployment Providers
- Scale AI Models Without Vendor Lock-In (Runpod)
- Runpod Secrets: Scaling LLM Inference to Zero Cost During Downtime
- How to Run Ollama, Whisper, and ComfyUI Together in One Container
- Runpod’s Prebuilt Templates for LLM Inference
- MLOps Workflow for Docker-Based AI Model Deployment
