Install xformers comfyui 4780] (c) Microsoft Corporation. 6w次,点赞20次,收藏31次。在使用pip install xformers安装xformers时,发现总是会把我环境中的pytorch重新安装,并且会安装CUDA12版本的pytorch, 而我环境是CUDA 11. 手动安装 xformers:你可以手动安装 xformers,之后 ComfyUI 将自动使用它 [1]。. 来 Oct 9, 2024 · 5. Set up Pytorch. 0以降はCuDNN9. Thank you :) Apr 27, 2025 · ComfyUI 安装指南. 23在当前环境肯定是适配的。后续几张图中,pip list中xformers版本一开始装错了,重装后没有重新截图,就直接在图上改了下版本,凑合看! pip install xformer pip install xformers==0. XFormers: A collection of composable Transformer building blocks. Then ComfyUI will use xformers automatically. Mar 2, 2025 · Hardware and software needed to run ComfyUI and optimum set-up. 8,这就导致我原本的开发环境不可用了。 python_embeded\python. Since the latest git pull + restart comfy (which also updates front end to latest), every workflow I open shows groups and spaghetti noodles/lines stuck in place in smaller resolution in upper left, while the nodes themselves can be resized bigger or smaller. Python 3. According to this issue , xFormers v0. exe -m pip install -U xformers --no-dependencies python_embeded\python. post2+cu118 It may be as simple as adding a command to my open-comfy. XFormers aims at being able to reproduce most architectures in the Transformer-family SOTA,defined as compatible and combined building blocks as opposed to monolithic models Mar 11, 2023 · Hello, how do I disable xformers from ComfyUI? I find it inconsistent and as I don't use it with automatic1111 I wanted to be able to disable as well in ComfyUI. Firstly, software updates often include bug fixes, security patches, and performance improvements. There's an argument --disable-xformers, but I don't know how to use it. 10. 7. exe -m pip install -U xformers --no-dependencies Sep 9, 2024 · Expected Behavior. If you want to install then use this command. 25. 2. whl をダウンロードして、 E/ComfyUI の下に入れて、 pip install xformers-0. Lets see how we can install and upgrade the Xformers. Place the downloaded models in \ComfyUI\models\checkpoints folder, and you are ready to launch it as usual using the “python main. You can open up your favorite terminal and activate it: source path_to_other_sd_gui/venv/bin/activate Feb 22, 2024 · It is widely used by researchers for Computer Vision, NLP(Natural Language Processing), etc. After xFormers is installed, you can use enable_xformers_memory_efficient_attention () for faster inference and reduced memory consumption, as discussed here. bat 中添加命令:--disable-xformers,与在 SD WebUI 中的使用方式不同。 多说一句,可能并不是所有的 AI 软件都适合自行安装 xformers,我在 WebUI Forge 中安装后导致软件无法启动,不 Proceed with the installation of Ascend Basekit, which includes the driver, firmware, and CANN, following the instructions provided for your specific platform. 0Dev版を例にとって記述しているので割愛 Dec 29, 2023 · ComfyUI は、Stable Diffusion 用のノードベースのユーザー インターフェイスです。ここではWindowsのインストールを「安全に、完璧に」インストールする方法について説明します。 注意! ComfyUIはローカル環境にインストールした後、使いたい拡張機能やモデルを別途、インストールする必要があり Apr 8, 2025 · タイトルのままですが。StableMatrix をインストールした時 StableDiffusion の Reforge の xFormers についてはインストールまでしましたが。。。ComfyUI も xFormers が有効になってないことに気が付きました。。 ちなみに、今回、ちょっと結論を先に言いますが、私は xFormers の効果が出ませんでした💦 ↓ We would like to show you a description here but the site won’t allow us. Feb 24, 2024 · How To Install ComfyUI . 1+cu121. I expect nodes and lines and groups to scale with each other when I zoom in and out. This automatically enables xformers. 3-cp311-cp311-win_amd64. Mar 23, 2024 · Answer: 要使用xformers,需要确保在ComfyUI的安装目录下有xformers文件夹。如果在安装过程中没有找到xformers文件夹,可以尝试从GitHub等网站上下载并将其复制到ComfyUI的安装目录中[1]。另外,还需要注意xformers与PyTorch、CUDA等软件的版本兼容性[6][7]。如果遇到依赖冲突 If you do simple t2i or i2i you don't need xformers anymore, pytorch attention is enough. When accessing from other devices on the LAN, these settings cannot be xformers is automatically detected and enabled if found, but it's not necessary, in some cases it can be a bit faster though: pip install -U xformers --no-dependencies (for portable python_embeded\python. Jan 26, 2024 · Install XFormers: Activate your ComfyUI environment and install the downloaded wheel file using `pip install <wheel_filename>`. I have no idea where to download it, as I already have it for stable diffusion. This will help you install the correct versions of Python and other libraries needed by ComfyUI. exe -m pip install xformers --no-deps Jan 1, 2025 · xformers的安装与否并不影响comfyui可以正常运行,图像还是可以正常生成的,只是速度会慢一些,如果你的显卡本身显存不大,还是建议更新安装下的。这里我用4090测试了下,本来以为可能没什么影响,实际发现就算是4090这种大显存的显卡,仍然能带来不小的 Dec 8, 2024 · ***I USE COMFYUI BUT YOU CAN USE THIS GUIDE FOR ANY PYTHON ENV*** I Notice some people might have debloated versions of windows that might prevent some of the steps from completing succesfully I recommend installing WezTerm on that case and use wezterm as a terminal for this installation if you experiment problems with other terminals like powershell Oct 19, 2023 · Why is it important to update xformers in ComfyUI? Updating xformers in ComfyUI is crucial for several reasons. Actual Behavior. 0, which has no compatible version of xformers, so the log complained that I had no xformers installed. Create an environment with Conda. 16 cannot be used for training (fine-tune or DreamBooth) in some GPUs. **I USE COMFYUI BUT YOU CAN USE THIS GUIDE FOR ANY PYTHON ENV** I Notice some people might have debloated versions of windows that might prevent some of the steps from completing succesfully I recommend installing WezTerm on that case and use wezterm as a terminal for this installation if you experiment problems with other terminals like powershell Apr 3, 2024 · The script then walks through the process of downloading and extracting Comfy UI, setting up the installation directory, and configuring the Nvidia GPU bat file for easy access. Sep 10, 2024 · How do I completely uninstall all remnants of ComfyUI, and reinstall it with xFormers (that work with it) and then prevent ComfyUI, PyTorch, CUDA, xFormers, or anything else from updating or changing at all? In this folder: \ComfyUI\python_embeded\Lib\site-packages\xformers Open a CMD window and run this command: pip install --upgrade xformers Mar 26, 2023 · If you have another UI installed and working with it's own python venv you can use that venv to run ComfyUI. 23 Jul 25, 2024 · Pytorch 2. Go to the dist directory in your xformers folder and run the following: pip install <xformers whl> Where <xformers whl> is the name of the . exe -m pip install -U xformers --no-dependencies). I achieved huge improvements in memory efficien xFormers. For ComfyUI portable user: python_embeded\python. We would like to show you a description here but the site won’t allow us. Install xFormers from pip: Mar 16, 2024 · 来克隆Xformers仓库。 3、进入刚刚下载的Xformers文件夹中,执行命令: cd xformers. 2. 5, après avoir posté ceci, j'ai essayé d'installer xformers avec "pip install xformers" et maintenant il semble qu'il essaie de l'utiliser Utilisation de l'attention xformers dans VAE. Step 8: Create a batch file to automatically launch SD with xformers: Go to your Stable Diffusion directory and put the following in a new file. In our tests, the optimizations performed in the attention blocks allow for both faster speed and reduced memory consumption. Jan 30, 2025 · Update 20250501 Official PyTorch 2. Please share your tips, tricks, and workflows for using this software to create your AI art. 19045. Why Python, CUDA, Pytorch and Xformers are important. Server configuration is done on the server side (host side) of ComfyUI Desktop, where you can set up ComfyUI’s LAN access settings, various precision settings, and cache settings, etc. Step 7: Install Xformers. xformers version: 0. By updating xformers, you ensure that your ComfyUI application remains stable and secure. Now, Xformers(helps to faster the render time) will be detected automatically. I will refrain from updating ComfyUI until the next xformers release is ready. Table of Contents: Steps to install Xformers for Automatic1111/Forge Just installed ComfyUI and ran it once, and there's no xformers anywhere. 6. (I literally gave the information today in this discussion: #5240 (comment)) Sep 21, 2024 · 本集概要必要的软件安装指南Anaconda创建独立虚拟环境ComfyUI本体安装ComfyUI环境配置及调用虚拟环境touch+xformers认知依赖包列表的文件requirements认知自动requirements Jul 16, 2024 · xformers要指定版本,下面的0. Recommended to use xformers if possible: Apr 18, 2025 · pip install xformers Configuration. 14. However, the current portable version doesn't come with xformers by default because pytorch now includes xformers capabilities on its own without xformers. dev0-cp310-cp310-win_amd64. Why is it important to update xformers in ComfyUI? Updating xformers in ComfyUI is crucial for several reasons. The basics on installation with potential pitfalls. Sep 9, 2024 · Expected Behavior. 2, and re-installed xformers 0. L:\ComfyUI\python_embeded\python. Here are the different ways to install ComfyUI: Quick Portable Install (Windows) ComfyUI comes with a portable version that can be installed with a single click. py --auto-launch If it's not, I'd be grateful for a link to a page that explains how to install etc. Aug 1, 2023 · so there is no way of making it "faster' woth SDP or XFORMERS? You can install xformers manually. Install Miniconda. If you need to use a previous version of PyTorch, then we recommend you install xFormers from source using the project instructions. 0. The process of installing ComfyUI is very simple and straightforward. Read the Apple Developer guide for accelerated PyTorch training on Mac for instructions. 17. txt Currently even if this can run without xformers, the memory usage is huge. Generating First Images Apr 26, 2025 · After the installation is complete, restart WSL to finalize the setup. 8k次,点赞33次,收藏27次。xformers的安装与否并不影响comfyui可以正常运行,图像还是可以正常生成的,只是速度会慢一些,如果你的显卡本身显存不大,还是建议更新安装下的。 Jun 3, 2024 · Torch version looks ok and this should have worked:Torch 版本看起来不错,这应该有效: python_embeded\python. 13 que j'ai utilisé avec automatic111 auparavant. bat file. 0+cu126が公開されています。 Start Locally Start Locally pytorch. Once the installations are complete, you need to configure your model to utilize Xformers. py Alternatively, you can use the xformers option: Oct 15, 2022 · We go over how to use the new easy-install process for the XFormers library with the new AUTOMATIC1111 webui. This can be done by modifying the configuration file of your Stable Diffusion setup. Following these simple steps, you should successfully install XFormers in your ComfyUI environment. py” command. Yes, I have A1111 and Comfy on the same device, I"m doing some experimenting. Install Dependencies. Sep 14, 2024 · Microsoft Windows [Versión 10. For Windows and Linux, adhere to the ComfyUI manual installation instructions. Cheers in advance, Chris Posted by u/chadlivestreamer - 6 votes and 1 comment Jul 27, 2023 · Any current macOS version can be used to install ComfyUI on Apple Mac silicon (M1 or M2). To test your installation, start WSL and activate your Conda environment: conda activate comfy Navigate to the ComfyUI main folder again: cd ~/ComfyUI Launch the ComfyUI by executing: python main. Sep 2, 2024 · 本文解决使用 comfyui 时出现“no module 'xformers”错误的问题。发生该错误是因为 comfyui 需要“xformers”模块,但该模块可能未安装。文章提供了两种解决方案:安装我们缺少的模块 6 days ago · XFormers: A collection of composable Transformer building blocks. Jul 31, 2023 · ComfyUI. We recommend xFormers for both inference and training. txt. bat inside the update folder. exe -m pip install -U xformers --no-dependencies Welcome to the unofficial ComfyUI subreddit. post1. VRAM requirements are pretty hefty, but far less than the original repo due to offloading. /venv/scripts/activate pip install xformers . 11. 5. Step 6: Running ComfyUI. 26. Just install xformers through pip. これでインストールできます。 2023/07/09 変更 xformers (推奨) 続いて、xformers のインストールです。 pip install xformers -U Oct 14, 2024 · First, you should start by upgrading ComfyUI by using update_comfyui_and_python_dependencies. If you don’t want to install using a Command Prompt, I’d recommend this method. 进入xformers文件夹。 4、然后,再执行命令: git submodule update --init --recursive. For example 48 frames at 768x512 fit in 15GB, less frames/smaller res can fit 10GB. Jan 25, 2025 · 文章浏览阅读2. Mar 9, 2025 · 文章浏览阅读1. Ensure that the Xformers option is enabled in the configuration settings. But for many nodes, most the more heavy CN preprocessors for exemple (geowizard, depthfm etc) and many other Xformers is mandatory, without it the vram usage increase is quite big and pytorch attention seems to do nothing there. Please keep posted images SFW. Apr 25, 2024 · I found out that after updating ComfyUI, it now uses torch 2. 0 wheels with Blackwell 50 series support and xFormers have been released Pull Request have been merged into dev branch #16972 Updated instructions on how to in Feb 6, 2024 · 在安装 xformers 时,你可以按照以下步骤进行操作: 1. 27. WebUI 실행 시 --xformers 플래그를 사용합니다. org SD Forge及びreForgeに関しては、既に下の記事で2. So I downgraded torch to 2. exe -s -m pip install insightface-0. Well, Stable Diffusion WebUI uses high end GPUs that run with CUDA and xformers. 4. 来更新和初始化子模块。 5、安装Xformers所需的依赖。在命令行中执行命令: pip install -r requirements. Current Version: ComfyUI Desktop v0. Next, install the necessary packages for torch-npu by adhering to the platform-specific instructions on the Installation page. xに対応しており、かつ現在は最新の 2. C:\Users\ZeroCool22\Desktop\SwarmUI\dlbackend\comfy\python_embeded>activate C:\Users\ZeroCool22\Desktop\SwarmUI\dlbackend\comfy\python_embeded>conda. u/echo off cd /d D:\work\ai\ComfyUI call conda activate sd python main. 本节主要涵盖了 ComfyUI 中常见的安装类型说明,包括软件本身、插件、绘图模型等。我们将为您提供详细的安装步骤和注意事项,帮助您顺利搭建 AI 图像生成环境。 ComfyUI 在不同设备上的安装方法 After xFormers is installed, you can use enable_xformers_memory_efficient_attention() for faster inference and reduced memory consumption as shown in this section. bat activate (base) C:\Users\ZeroCool22\Desktop\SwarmUI\dlbackend\comfy\python_embeded>python. It proceeds to explain the installation of xformers and PyTorch for optimized performance. Set up the ComfyUI prerequisites. But I'll try a new venv with python 3. Git clone the repo and install the requirements. After that, you have to uninstall and reinstall xformers. 0+cu126の登場 先日来、私はPytorchにフォーカスしていた記事を記載していましたが、 2. Todos los derechos reservados. Recommended to use xformers if possible: Tested to work in Linux, and on Windows with current ComfyUI portable (pytorch ): pytorch version: 2. If you didn't unpack the portable version of ComfyUI then that directory won't be there, you would have utilized a virtual Python environment to complete the installation and, because of that experience, you would already know how to perform the task and no, you would not do the same things as I suggested and the process differs depending on the virtual environment implementation. xFormers 활성화 Set XFORMERS_MORE_DETAILS=1 for more details xformers version: 0. Finally, adhere to the ComfyUI manual installation guide Jan 29, 2023 · こちらから xformers-0. However, using xformers doesn't offer any particular advantage because it's already fast even without xformers. 2, torchvision to 0. (ignore the pip errors about protobuf) [ ] Apr 27, 2025 · ComfyUI Server Configuration Instructions. Once again, our older post on ComfyUI worked like magic so you can follow these steps for the fresh installation . exe -m pip install -r ComfyUI\custom_nodes\ComfyUI-DynamiCrafterWrapper\requirements. 13 that I've used with automatic111 before. For normal ComfyUI users: pip install -U xformers --no-dependencies. This way, your Pytorch will be upgraded to the current stable version 2. 5, after I posted this I tried installing xformers with "pip install xformers" and now it appears it's trying to use it Using xformers attention in VAE. 注意 python_embeded 前为你的 ComfyUI 地址,install 后为你的 Insightface whl 文件名,后缀 whl 不能少。 运行命令,稍等片刻,即可安装成功。 当然,这是便携版 ComfyUI 的 Insightface 安装方式。 安装好 xformers 后,默认在 ComfyUI 中启用,如果不想使用,需要在启动程序 run_nvidia_gpu. Mais je vais essayer un nouveau venv avec python 3. whl file. 만약 수동으로 xFormers를 설치하거나 업데이트하고 싶다면: Stable Diffusion WebUI 디렉토리의 터미널에서 다음 명령어를 실행합니다: bash. Dec 7, 2024 · Get more from ImpactFrames on Patreon. 1+cu124. 3. whl. xavj quyrpr icibvbu wjtjym asmvlci isushh fgcaeu rvi qhb vgcth sax yhtp npr pgw rbjt