Downloads · 30 days
0
yjitiu/ComfyUI-Binyuan-Sampler-EN
ComfyUI-Binyuan-Sampler-EN is a machine learning model from yjitiu. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
优先使用 ComfyUI 内核 MOSS-Image 加载器,支持 Base 合并 QKV 和 SFT 分离 Q/K/V 权重。旧独立插件无法加载合并 QKV,旧内核下会明确报错,避免缺失注意力权重仍继续出图。应用 Shift 时保留模型原有 timestep multiplier(原生内核为 1,旧独立插件为 1000)。原生文本编码器也优先使用内核加载路径。版本仍为 V2.3。
Downloads · 30 days
0
Access
Public
Updated Oct 19, 2026
Repo size
27.2 KB
Likes
0
Public
Click a slice to open those files.
.py80.9 KB · 42%
From the Hugging Face model README
优先使用 ComfyUI 内核 MOSS-Image 加载器,支持 Base 合并 QKV 和 SFT 分离 Q/K/V 权重。旧独立插件无法加载合并 QKV,旧内核下会明确报错,避免缺失注意力权重仍继续出图。应用 Shift 时保留模型原有 timestep multiplier(原生内核为 1,旧独立插件为 1000)。原生文本编码器也优先使用内核加载路径。版本仍为 V2.3。
依赖已安装的官方 custom_nodes/moss-image 插件,不修改 ComfyUI 内核。
Implementation reuses the official MOSS local loaders and ComfyUI sampling/SLG. Base and SFT share this path. Existing FLUX 3 behavior is retained.
选择 clip_type=flux3、配套 Qwen3-VL-4B 文本编码器、扩散模型与 VAE,clip_2 留空。接入上游图像即可原生参考编辑,多图分别编码,输出画布由节点宽高决定;denoise 使用 1。flux3_edit_mode=VAE redraw 沿用原有 Latent 输入源和可调重绘强度,选择上游图像优先可重绘首图。外接 Latent/Sigmas 仍优先。支持布局 JSON 提示词,也可连接内核 FLUX 3 Image Layout Prompt。
Local FLUX 3 generation/editing requires a core with CLIPType.FLUX3 and comfy.model_base.Flux3. Select flux3, the matching Qwen3-VL-4B encoder and VAE; leave clip_2=None. Auto/Native encodes upstream images as references with an empty output canvas and denoise=1. VAE redraw follows existing latent-source selection. External latent/sigmas retain priority. No BFL API calls.
2026-10-06 更新:新增高级分段采样和可调初始噪声强度。请先阅读 完整使用说明(Markdown) 或 TXT说明。
本机核对环境为 ComfyUI 0.37.0;新增功能完成接口与逻辑测试,不代表所有模型、整合包和内核版本通用。普通模式下重绘强度与初始噪声强度可同时使用;高级模式忽略重绘强度,只有“添加噪声”开启时初始噪声强度才生效。
Bilingual build of the all-in-one sampler: English UI for English users, Chinese UI for Chinese users.
🛡️ Binyuan Sampler V2.3 EN|中英双语版 — category BinyuanBinyuanUltimateSamplerEN (different from the Chinese edition, so both can be installed side by side)locales/en|zh/nodeDefs.jsonInherit upstream | 继承上游模型Please select a Checkpoint / 请选择 CheckpointQwen reference resolution = 0 preserves the source size (rounded to a multiple of 32); values such as 1024 use a pixel budget and can change the canvas.These paths use ComfyUI public node/model APIs and contain no integration-pack-specific paths.
Attention Backend defaults to Auto safe. For a Krea2 or Qwen-Image-2.1 model loaded inside this sampler, it selects Comfy Kitchen when available, or the ComfyUI sub-quadratic backend otherwise. This is a model-local setting: it does not change other nodes or ComfyUI startup flags. Externally connected models retain their existing attention patches. Choose Core default to follow ComfyUI's startup setting, Comfy Kitchen to require that backend, or Sub-quadratic to force the lower-memory fallback. The latter can be slower. This option is appended after existing widgets so saved workflow values keep their positions.
ComfyUI/custom_nodes/binyuan_sampler_plugin_english/ (the folder name does not matter).Binyuan Sampler).Binyuan → 🛡️ Binyuan Sampler V2.3 EN|中英双语版.Load Mode = Checkpoint (whole file) → pick a checkpoint, connect IMAGE to SaveImage.Load Mode = Separate → pick Diffusion Model + CLIP 1/2 + VAE and set CLIP Type to match the architecture.+ Add LoRA), or type JSON in LoRA JSON.Upstream Image 1 and lower Denoise.Chaining Mode = Inherit upstream uses the optional External Model/CLIP/VAE inputs..gguf models and CLIPs need ComfyUI-GGUF installed (custom_nodes/ComfyUI-GGUF). It is optional: only used when you pick a .gguf file (not declared as a hard dependency).Upstream Image Handling widget is kept for workflow compatibility; the effective behaviour is driven by Latent Source.No operator found for `memory_efficient_attention_forward` ...
`fa3F`/`fa2F`/`cutlassF` is not supported because:
requires device with capability <= (9, 0) but your GPU has capability (12, 0) (too new)
This happens when xformers is installed (ComfyUI uses it by default as soon as it is importable)
and its prebuilt kernels do not cover your GPU (e.g. RTX 50 series / sm_120). Every sampling node
fails the same way - the stock KSampler too - so it is an environment issue. Fix it at launch:
python main.py --use-pytorch-cross-attention --disable-xformers
Compatibility depends on the installed attention backend, GPU, PyTorch and CUDA versions; this is not limited to one GPU generation.
Works in both directions: wire MODEL / CLIP / VAE (outputs 2 / 3 / 4) into
External Model / External CLIP / External VAE and set Chaining Mode = Inherit upstream.
The inheriting node then reuses the already-loaded model (no second load, saves VRAM).
__init__.py (node), js/binyuan_lora_en.js (LoRA manager UI), locales/en|zh/nodeDefs.json (official ComfyUI custom-node translation), pyproject.toml, LICENSE (MIT).这是 中英双语版:英文界面用户看到英文标签,中文界面用户看到中文标签(通过官方 locales/ 翻译机制)。
节点键名与中文版不同(BinyuanUltimateSamplerEN vs BinyuanUltimateSampler),两个版本可以同时安装,不会互相覆盖。
所有报错信息均为中英双语;下拉选项也是双语写法(如 继承上游模型),不依赖翻译文件也能看懂。
Requires a ComfyUI core with TextEncodeQwenImage21. The sampler detects the loaded model's latent format, and uses native Qwen-Image-2.1 conditioning for both positive and negative prompts, including image slots and reference latents. Native prefix KV caching and model sampling settings remain under ComfyUI's control.
需要内置 TextEncodeQwenImage21 的 ComfyUI。采样器根据实际模型的 Latent 格式自动识别2.1,正负提示词均使用原生编码流程,保留图像位置和参考 Latent;前缀 KV 缓存和模型采样设置由 ComfyUI 原生实现管理。
Separate + Qwen-Image-2.1 diffusion model + matching Qwen3-VL 8B in clip_1 + clip_2=None + clip_type=qwen_image_2.1 (maps to native qwen_image) + matching 64-channel RGBA VAE. / 分离式加载:扩散模型、配套 Qwen3-VL 8B 编码器、专用64通道 RGBA VAE;不要使用旧版 Qwen 的 Wan VAE 或提示词扩写模型代替条件编码器。denoise=1.0. / 上游图像端口动态增减:默认显示两个,接上备用端口后自动新增;断开后收起多余端口,其余连线顺次前移,保留一个备用端口(最少两个)。每个端口取首张图,重绘强度设1.0。qwen_reference_resolution=1024 uses about one megapixel per reference; 0 preserves original dimensions rounded to 32. Editing output follows the first processed reference even if width/height differ. Batch size still applies. Stitch mode first combines references horizontally. / 默认按约一百万像素等比缩放;0按原尺寸对齐32。编辑输出跟随处理后的首张参考图,生成数量仍有效;拼接模式先横向合成参考图。JoinImageWithAlpha. / 参考图与解码输出保留透明通道;加载图片节点若分开输出图像和蒙版,先用 JoinImageWithAlpha 合成 RGBA。The node ID, non-image ports, widget order, bilingual translations and LoRA manager are preserved. Old image connections are restored before dynamic compaction. Dynamic ports have English/Chinese labels. The plugin does not cap the reference count; Qwen-Image-2.1 officially describes up to 10 references, and larger counts depend on model behavior and available memory. Restart ComfyUI and refresh the browser after updating. / 节点ID、非图像端口、控件顺序、双语翻译和 LoRA 管理器保留,旧工作流的图像连线恢复后再整理端口。动态端口显示中英双语名称。插件不限制参考图数量;Qwen-Image-2.1 官方说明支持最多10张,更多图片的效果与可运行性取决于模型和显存。更新后重启 ComfyUI 并刷新浏览器。