Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI Any-Device Offload

ComfyUI Extension: ComfyUI Any-Device Offload

Repo Name

ComfyUI-AnyDeviceOffload

Author
FearL0rd (Account age: 3646 days)
Nodes
View all nodes(1)
Latest Updated
2026-02-06
Github Stars
0.03K

How to Install ComfyUI Any-Device Offload

Install this extension via the ComfyUI Manager by searching for ComfyUI Any-Device Offload
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Any-Device Offload in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ComfyUI Any-Device Offload Description

ComfyUI Any-Device Offload optimizes model execution by managing memory allocation across devices, preventing Out of Memory errors, enabling multi-GPU workflows, and resolving crashes on CPUs or secondary GPUs.

ComfyUI-AnyDeviceOffload Introduction

ComfyUI-AnyDeviceOffload is a powerful extension designed to give you complete control over where your AI models run and how they utilize your computer's resources. Whether you're working with a single GPU, multiple GPUs, or even a CPU, this extension allows you to dictate exactly where each model, VAE (Variational Autoencoder), or CLIP (Contrastive Language–Image Pretraining) operates. This flexibility helps solve common issues like "Out of Memory" (OOM) errors and persistent crashes, especially when running complex workflows on less powerful hardware. By optimizing resource allocation, ComfyUI-AnyDeviceOffload enhances your workflow efficiency, making it an invaluable tool for AI artists looking to maximize their hardware's potential.

How ComfyUI-AnyDeviceOffload Works

At its core, ComfyUI-AnyDeviceOffload functions by allowing you to manually select the device (GPU or CPU) on which each component of your AI workflow runs. Think of it as a traffic controller for your computer's resources, directing each model to the most suitable lane (device) to ensure smooth operation. This is particularly useful when dealing with high-demand processes that can overwhelm a single device. By distributing the workload across multiple devices, you can prevent crashes and optimize performance. The extension also includes intelligent VRAM management, which can either keep models in memory for quick access or unload them immediately after use to free up resources for other tasks.

ComfyUI-AnyDeviceOffload Features

  • Manual Device Selection: You can force specific models to run on designated devices such as cuda:0, cuda:1, cpu, or Mac's mps. This feature is crucial for managing resources effectively, especially in multi-GPU setups.
  • Intelligent VRAM Management:
  • Keep in Memory (True): Keeps models loaded in VRAM for faster access during repeated runs.
  • Keep in Memory (False): Unloads models from VRAM immediately after use, freeing up space for other applications. This is particularly beneficial for systems with limited VRAM.
  • VAE Patcher: Automatically resolves common errors related to data type mismatches and computation engine issues. It ensures that inputs and weights are converted to compatible types on the fly, maintaining workflow stability.
  • CPU "Safe Mode": Redirects operations that typically cause crashes on CPUs to more stable alternatives, ensuring that your workflow can run smoothly even on less powerful hardware.

ComfyUI-AnyDeviceOffload Models

While the extension itself does not introduce new models, it significantly enhances the performance and stability of existing models by optimizing their deployment across available hardware. This means you can use your preferred models more effectively, regardless of your system's limitations.

What's New with ComfyUI-AnyDeviceOffload

  • v1.0.0: Initial release providing comprehensive control over model execution and memory management.
  • v1.0.1: Default selections optimized for beginners, making it easier to get started with ComfyUI.
  • v1.0.2: Added support for legacy GPUs and improved dynamic device switching, enhancing compatibility and performance on older hardware.
  • v1.0.3: Made "Vae Patched" the default mode for safer decoding, reducing the likelihood of errors during model execution.

Troubleshooting ComfyUI-AnyDeviceOffload

Here are some common issues and their solutions:

  • Error: "Input type and bias type should be the same."
  • Solution: Switch the vae_mode to Vae Patched. This adjustment ensures compatibility by handling data type mismatches.
  • xFormers Error on CPU:
  • Solution: Ensure you are using the latest version of the extension, which automatically patches xFormers for CPU compatibility. Restart ComfyUI if necessary.
  • GPU Memory Not Clearing:
  • Solution: Disable the keep_in_memory option to activate the "Kill Switch," which clears the CUDA cache immediately after use.

Learn More about ComfyUI-AnyDeviceOffload

To further explore the capabilities of ComfyUI-AnyDeviceOffload, consider visiting community forums and tutorials where AI artists share their experiences and tips. Engaging with these resources can provide valuable insights and support as you integrate this extension into your workflow.

ComfyUI Any-Device Offload Related Nodes

RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

ComfyUI Any-Device Offload detailed guide | ComfyUI