Skip to content

docs: add Python package install guide for ComfyUI Portable (zh/ja/ko)#1299

Merged
comfyui-wiki merged 1 commit into
Comfy-Org:mainfrom
lin-bot23:analytics-fix/2026-07-20-portable-attention-install
Jul 22, 2026
Merged

docs: add Python package install guide for ComfyUI Portable (zh/ja/ko)#1299
comfyui-wiki merged 1 commit into
Comfy-Org:mainfrom
lin-bot23:analytics-fix/2026-07-20-portable-attention-install

Conversation

@lin-bot23

@lin-bot23 lin-bot23 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Summary

The portable page did not cover how to use the embedded Python environment (python_embeded) to install additional packages. This adds a general guide showing how to install any Python package via .\python_embeded\python.exe -m pip install, with zh/ja/ko translations.

Changes

  • installation/comfyui_portable_windows.mdx: added section 3 with general pip install guide for python_embeded
  • zh/installation/comfyui_portable_windows.mdx: Chinese translation
  • ja/installation/comfyui_portable_windows.mdx: Japanese translation
  • ko/installation/comfyui_portable_windows.mdx: Korean translation

Source
Mintlify AI Assistant analytics data (2026-07-18)

Checklist

  • PR created by Hermes Agent (bot), do not merge

@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@lin-bot23, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 50 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: dc2ceff8-5e71-4d81-b1c0-ea8b1ffcef6b

📥 Commits

Reviewing files that changed from the base of the PR and between fce4221 and 3ad258a.

📒 Files selected for processing (4)
  • installation/comfyui_portable_windows.mdx
  • ja/installation/comfyui_portable_windows.mdx
  • ko/installation/comfyui_portable_windows.mdx
  • zh/installation/comfyui_portable_windows.mdx
📝 Walkthrough

Walkthrough

The portable Windows guides now explain installing additional packages with embedded Python and adding required startup flags to launcher batch files. Japanese, Korean, and Chinese translation metadata and localized instructions are updated.

Changes

Portable Windows installation

Layer / File(s) Summary
Additional package installation instructions
installation/comfyui_portable_windows.mdx
Adds embedded-Python pip commands, launcher startup-flag guidance, and a custom node dependency guide link.
Localized installation instructions and metadata
ja/installation/comfyui_portable_windows.mdx, ko/installation/comfyui_portable_windows.mdx, zh/installation/comfyui_portable_windows.mdx
Adds translated package installation and launcher instructions and updates translation hashes for the affected pages.

Suggested reviewers: comfyui-wiki

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
✨ Simplify code
  • Create PR with simplified code

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@installation/comfyui_portable_windows.mdx`:
- Around line 158-164: Update the attention optimization guidance before the
startup command example to state that --use-flash-attention and
--use-sage-attention are mutually exclusive, so users must enable only one even
though both packages may be installed.
- Around line 151-155: Update the FlashAttention and SageAttention installation
instructions near the “Install FlashAttention” and “Install SageAttention”
headings to document their Windows build constraints, including experimental
FlashAttention support, required build prerequisites, the matching CUDA/PyTorch
toolchain, and the necessary --no-build-isolation option. Either pin versions
validated for this portable bundle or provide the exact supported build recipe
instead of presenting generic pip installs.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 56c865ee-2ee6-40f9-a34b-a88402face2f

📥 Commits

Reviewing files that changed from the base of the PR and between e9b3166 and 40973b1.

📒 Files selected for processing (1)
  • installation/comfyui_portable_windows.mdx

Comment on lines +151 to +155
# Install FlashAttention
.\python_embeded\python.exe -m pip install flash-attn

# Install SageAttention
.\python_embeded\python.exe -m pip install sageattention

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the relevant section of the MDX file with line numbers.
sed -n '140,170p' installation/comfyui_portable_windows.mdx

# Map the file structure to see nearby headings and context.
ast-grep outline installation/comfyui_portable_windows.mdx --view expanded

Repository: Comfy-Org/docs

Length of output: 1298


🌐 Web query:

flash-attn installation documentation no-build-isolation windows support experimental sageattention installation no-build-isolation official docs startup flags attention options mutually exclusive

💡 Result:

Flash-Attention and SageAttention are distinct libraries used for optimized attention computation; they are not mutually exclusive and can be installed and used in the same environment [1][2][3]. Flash-Attention Windows Support Official flash-attn documentation states that the library is primarily designed for Linux [4]. While some users have reported successful compilation on Windows, it is considered experimental, is not officially supported, and there are no official pre-compiled Windows wheels [4][5]. Attempts to install via pip (even with --no-build-isolation) frequently fail due to missing dependencies (e.g., CUDA toolkit, MSVC, ninja), extreme build times, and RAM exhaustion [6][5]. For Windows users, it is generally recommended to use WSL2, rely on built-in attention implementations (such as sdpa) in libraries like vLLM or PyTorch, or use community-provided wheels [5]. SageAttention Installation SageAttention installation depends on your desired version and performance requirements: 1. SageAttention V1 (Triton-only): Can be installed via pip (pip install sageattention==1.0.6) [1][7]. 2. SageAttention 2.x and later: The official recommendation is to compile from source to ensure compatibility with your specific environment [1][7][8]. Installation command: git clone https://github.com/thu-ml/SageAttention.git cd SageAttention pip install. --no-build-isolation Startup Flags and Attention Options There are no global startup flags that make Flash-Attention and SageAttention mutually exclusive at the library level [1]. If you are using libraries like HuggingFace Transformers, you typically select the attention implementation via configuration (e.g., attn_implementation="flash_attention_2" or "sdpa") [5]. If you encounter performance issues or conflicts, you should check your specific model's attention configuration rather than assuming a mandatory mutual exclusivity [9]. Top Results: [4], [5], [1], [2]

Citations:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Find the attention flags reference in the docs.
rg -n --hidden --glob '*.mdx' --glob '*.md' 'use-flash-attention|sageattention|attention' development installation docs . || true

Repository: Comfy-Org/docs

Length of output: 23471


Document the Windows build constraints for these installs. installation/comfyui_portable_windows.mdx:151-155 makes flash-attn and sageattention look like drop-in portable-Windows installs, but FlashAttention’s Windows support is experimental and both packages need extra build prerequisites, including --no-build-isolation and a matching CUDA/PyTorch toolchain. Pin a tested version or give the exact supported build recipe for this bundle.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@installation/comfyui_portable_windows.mdx` around lines 151 - 155, Update the
FlashAttention and SageAttention installation instructions near the “Install
FlashAttention” and “Install SageAttention” headings to document their Windows
build constraints, including experimental FlashAttention support, required build
prerequisites, the matching CUDA/PyTorch toolchain, and the necessary
--no-build-isolation option. Either pin versions validated for this portable
bundle or provide the exact supported build recipe instead of presenting generic
pip installs.

Source: MCP tools

Comment on lines +158 to +164
After installing, add the corresponding startup flag to your `.bat` file (e.g. `run_nvidia_gpu.bat`) to enable the optimization:

```bat
.\python_embeded\python.exe -s ComfyUI\main.py --use-flash-attention --windows-standalone-build
```

See the [startup flags reference](/development/comfyui-server/startup-flags#attention) for all attention optimization options.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

State that the attention flags are mutually exclusive.

Installing both packages is fine, but users must choose either --use-flash-attention or --use-sage-attention; enabling both is rejected by ComfyUI’s argument parser. Add that clarification before the example. (github.com)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@installation/comfyui_portable_windows.mdx` around lines 158 - 164, Update the
attention optimization guidance before the startup command example to state that
--use-flash-attention and --use-sage-attention are mutually exclusive, so users
must enable only one even though both packages may be installed.

Source: MCP tools

@lin-bot23
lin-bot23 force-pushed the analytics-fix/2026-07-20-portable-attention-install branch from 09c88a1 to b61b1cd Compare July 22, 2026 04:39
@lin-bot23 lin-bot23 changed the title docs: add FlashAttention and SageAttention installation guide for ComfyUI Portable docs: add FlashAttention and SageAttention installation guide for ComfyUI Portable (zh/ja/ko) Jul 22, 2026
@coderabbitai
coderabbitai Bot requested a review from comfyui-wiki July 22, 2026 04:40
@lin-bot23 lin-bot23 changed the title docs: add FlashAttention and SageAttention installation guide for ComfyUI Portable (zh/ja/ko) docs: add Python package install guide for ComfyUI Portable (zh/ja/ko) Jul 22, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@ja/installation/comfyui_portable_windows.mdx`:
- Around line 156-160: Replace the generic FlashAttention and SageAttention
pip-install commands with documented Windows-compatible installation
instructions, using either matching community wheels or a source-build procedure
that specifies the required Python, PyTorch, CUDA, and build-tool versions.
Apply the same correction in ja/installation/comfyui_portable_windows.mdx lines
156-160, ko/installation/comfyui_portable_windows.mdx lines 160-164, and
zh/installation/comfyui_portable_windows.mdx lines 157-161.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 0038aed4-9c31-4579-abad-0cc334e85d62

📥 Commits

Reviewing files that changed from the base of the PR and between 40973b1 and b61b1cd.

📒 Files selected for processing (3)
  • ja/installation/comfyui_portable_windows.mdx
  • ko/installation/comfyui_portable_windows.mdx
  • zh/installation/comfyui_portable_windows.mdx

Comment thread ja/installation/comfyui_portable_windows.mdx Outdated
@lin-bot23
lin-bot23 force-pushed the analytics-fix/2026-07-20-portable-attention-install branch from fce4221 to 1a665ef Compare July 22, 2026 04:45

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@installation/comfyui_portable_windows.mdx`:
- Around line 148-150: Make the portable-folder navigation reliable by updating
the command and surrounding guidance in
installation/comfyui_portable_windows.mdx (148-150),
ja/installation/comfyui_portable_windows.mdx (153-155),
ko/installation/comfyui_portable_windows.mdx (157-158), and
zh/installation/comfyui_portable_windows.mdx (154-155): instruct users to open
the terminal in the portable folder or use cd /d with the quoted full path to
ComfyUI_windows_portable, and label the English command block as cmd.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 59e6de9f-615b-40b8-b835-6889e86f8d39

📥 Commits

Reviewing files that changed from the base of the PR and between b61b1cd and fce4221.

📒 Files selected for processing (4)
  • installation/comfyui_portable_windows.mdx
  • ja/installation/comfyui_portable_windows.mdx
  • ko/installation/comfyui_portable_windows.mdx
  • zh/installation/comfyui_portable_windows.mdx

Comment thread installation/comfyui_portable_windows.mdx
@lin-bot23
lin-bot23 force-pushed the analytics-fix/2026-07-20-portable-attention-install branch from 1a665ef to 5fb131f Compare July 22, 2026 04:48
@lin-bot23
lin-bot23 force-pushed the analytics-fix/2026-07-20-portable-attention-install branch from 5fb131f to 3ad258a Compare July 22, 2026 04:48
@comfyui-wiki
comfyui-wiki merged commit 9c61c89 into Comfy-Org:main Jul 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants