Language: English
Rent a GPU

Guide · ComfyUI · FLUX.1 [dev] · Blackwell

How do you run ComfyUI with FLUX on a rented RTX 5090?

Last updated: · 5 min read

Quick answer

Can an RTX 5090 run FLUX.1 dev in ComfyUI?

Yes. FLUX.1 [dev] in full precision needs 28 GB of VRAM and the RTX 5090 has 32 GB, so it runs without offloading. On RentGPUCrypto the card costs $0.52 per hour, paid in Monero, Bitcoin or USDT with no KYC. Install a CUDA 12.8 build of PyTorch first.

In brief
  • Blackwell needs CUDA 12.8 wheels: older PyTorch builds fail on the RTX 5090 with a "no kernel image" error.
  • Four files: the FLUX.1 [dev] weights, the autoencoder, and two text encoders (CLIP-L and T5-XXL).
  • Gated and non-commercial: accept the FLUX.1 [dev] licence on Hugging Face; commercial use needs a licence from Black Forest Labs.
  • No public port: ComfyUI listens on 127.0.0.1:8188 and you open it through an SSH tunnel.
  • Cost: a 10-hour block of RTX 5090 time is $5.20.

Which files does the FLUX workflow need, and where do they go?

FLUX.1 [dev] files for ComfyUI, their Hugging Face source and the ComfyUI folder they belong in
FileRoleHugging Face repositoryComfyUI folder
flux1-dev.safetensorsDiffusion transformerblack-forest-labs/FLUX.1-dev (gated)models/diffusion_models
ae.safetensorsAutoencoder (VAE)black-forest-labs/FLUX.1-dev (gated)models/vae
clip_l.safetensorsText encodercomfyanonymous/flux_text_encodersmodels/text_encoders
t5xxl_fp16.safetensorsText encodercomfyanonymous/flux_text_encodersmodels/text_encoders

Why does the RTX 5090 need a special PyTorch build?

The RTX 5090 is a Blackwell card, and PyTorch only ships kernels for it in its CUDA 12.8 and newer wheels. With an older wheel, the first image fails with an error about no kernel image being available for the device. The fix is one pip install from PyTorch's cu128 index.

The NVIDIA driver on the instance already supports the card; you only replace the Python packages. Use a virtual environment so the preinstalled PyTorch of the image stays untouched for other work. nvidia-smi shows the driver and the CUDA version it supports.

How do you install ComfyUI step by step?

Launch an RTX 5090 instance with the PyTorch with CUDA · Ubuntu image and your SSH public key, connect with the SSH command from the instance page, then follow these steps.

  1. Create a virtual environment

    Python's venv keeps ComfyUI's packages apart from the system ones.

  2. Install PyTorch for CUDA 12.8

    Use the cu128 index URL from pytorch.org, then check that torch.cuda.get_device_name(0) names the RTX 5090.

  3. Clone ComfyUI

    Clone the official repository and install its requirements file.

  4. Download the four model files

    Log in to Hugging Face after accepting the FLUX.1 [dev] licence, then download each file into its folder from the table.

  5. Start the server on localhost

    python main.py --listen 127.0.0.1 --port 8188 keeps the interface off the public network.

Install ComfyUI and FLUX.1 [dev] on an RTX 5090
python3 -m venv ~/comfy && source ~/comfy/bin/activate
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
python -c "import torch; print(torch.cuda.get_device_name(0))"

git clone https://github.com/comfyanonymous/ComfyUI.git ~/ComfyUI
cd ~/ComfyUI && pip install -r requirements.txt

pip install -U "huggingface_hub[cli]"
hf auth login
hf download black-forest-labs/FLUX.1-dev flux1-dev.safetensors --local-dir models/diffusion_models
hf download black-forest-labs/FLUX.1-dev ae.safetensors --local-dir models/vae
hf download comfyanonymous/flux_text_encoders clip_l.safetensors t5xxl_fp16.safetensors --local-dir models/text_encoders

python main.py --listen 127.0.0.1 --port 8188

How do you open the ComfyUI interface?

Forward port 8188 over SSH from your own computer, then browse to http://127.0.0.1:8188. The tunnel stays open as long as the SSH session does. Add -N if you only want the forward and no shell.

In ComfyUI, load the FLUX dev example workflow from the ComfyUI examples site, or build it from a Load Diffusion Model node, a DualCLIPLoader set to the flux type, and a VAE loader. Point each loader at the file names from the table above.

SSH tunnel for ComfyUI
ssh -p <port> -N -L 8188:127.0.0.1:8188 root@<host>

What does a FLUX session cost on RentGPUCrypto?

A session costs the minutes it runs at the RTX 5090 rate, nothing while it is stopped. According to RentGPUCrypto's price check of 3 December 2026, the RTX 5090 is $0.52 per GPU-hour on 10- and 24-hour blocks and $0.49 on a 720-hour block, which makes a month of one card $352.80.

The model files stay on the NVMe disk when you press Stop, so the next session starts without a download. Delete the instance only when the outputs are copied out; the data transfer guide shows rsync for that.

What if the RTX 5090 is overkill?

For SDXL and SD 1.5 workflows, an RTX 4090 is enough and cheaper. SDXL needs 12 GB, well within the RTX 4090's 24 GB, at $0.37 per hour. FLUX also runs on the RTX 4090 with an FP8 copy of the weights, at some cost in detail.

For video models such as Wan 2.1 14B (40 GB in full precision), an L40S is the safer choice. The best GPU for Stable Diffusion ranking compares the options, and RentGPUCrypto's environment setup service installs ComfyUI with one model for $49.

ComfyUI and FLUX on an RTX 5090: questions

Why does ComfyUI say no kernel image is available?

The installed PyTorch was built for an older CUDA and has no Blackwell kernels. Reinstall torch, torchvision and torchaudio from the cu128 index at download.pytorch.org inside the ComfyUI environment, then restart ComfyUI.

Can I use the T5 encoder in FP8 to save memory?

Yes. ComfyUI's text encoder repository also has t5xxl_fp8_e4m3fn.safetensors. On an RTX 5090 the FP16 encoder fits next to the FLUX weights, so FP8 is mainly useful on cards with less memory.

Can I install custom nodes?

Yes, you have root. Clone nodes into custom_nodes or install ComfyUI-Manager. Check each node's code before running it, since nodes run Python with full access to the instance.

How do I keep ComfyUI running after I disconnect?

Start it inside tmux or screen, or as a systemd service. The instance keeps running and billing until you press Stop in the dashboard, so stop it when the batch is done.

Can I pay for the RTX 5090 in Monero?

Yes. RentGPUCrypto accepts Monero directly, plus Bitcoin, USDT, USDC, ETH, SOL and LTC, with no ID and no email. GPU-hours never expire.

Verdict
  • The RTX 5090 runs FLUX.1 [dev] in full precision on one card, at $0.52 per hour.
  • Install PyTorch from the cu128 index first; it is the one step that differs from older cards.
  • Keep ComfyUI on 127.0.0.1 and reach it through an SSH tunnel; respect the [dev] licence for commercial work.
Sources (5)
  1. ComfyUI repository and install instructions — ComfyUI
  2. ComfyUI examples: Flux — ComfyUI
  3. FLUX.1 [dev] model card and licence — Black Forest Labs / Hugging Face
  4. PyTorch: start locally (CUDA 12.8 wheels) — PyTorch
  5. NVIDIA GeForce RTX 5090 — NVIDIA

Render FLUX on an RTX 5090

$5.20 for 10 GPU-hours, paid in crypto with no KYC. Unused hours stay on your account.

RTX 4090 from $0.37/hr · no KYC

Rent a GPU