logo
RunComfy
  • ComfyUI
  • TrainerNew
  • Models
  • API
  • Pricing
discord logo
ComfyUI>Workflows>Qwen Image 2512 LoRA Inference | AI Toolkit ComfyUI

Qwen Image 2512 LoRA Inference | AI Toolkit ComfyUI

Workflow Name: RunComfy/Qwen-Image-2512-LoRA-Inference
Workflow ID: 0000...1355
Qwen Image 2512 LoRA Inference lets you generate text-to-image outputs with Qwen Image 2512 in ComfyUI while keeping AI Toolkit LoRA behavior consistent. The workflow uses RC Qwen Image 2512 (RCQwenImage2512) to execute a Qwen-specific inference pipeline rather than rebuilding the job as a standard sampler graph. Load your adapter through `lora_path` and tune it with `lora_scale` inside that pipeline to reduce preview drift.

Qwen Image 2512 LoRA Inference: pipeline-aligned, training-matched AI Toolkit generations in ComfyUI#

This production-ready RunComfy workflow applies an AI Toolkit–trained LoRA to Qwen Image 2512 in ComfyUI with a focus on training-matched behavior. It centers on RC Qwen Image 2512 (RCQwenImage2512)—a RunComfy-built, open-sourced custom node (source) that runs a Qwen-native inference pipeline (instead of a generic sampler graph) and loads your adapter through lora_path and lora_scale.

Why Qwen Image 2512 LoRA Inference often looks different in ComfyUI#

AI Toolkit previews for Qwen Image 2512 are produced by a model-specific pipeline, including Qwen’s “true CFG” guidance behavior and the defaults that pipeline uses for conditioning and sampling. If you rebuild the same job as a standard ComfyUI sampler graph, the guidance semantics and the LoRA patch point can shift—so “same prompt + same seed + same steps” can still land on a different-looking result. In practice, many “my LoRA doesn’t match training” reports are pipeline mismatches, not one missing parameter.

RCQwenImage2512 keeps inference aligned by wrapping the Qwen Image 2512 pipeline inside the node and applying the LoRA in that pipeline via lora_path and lora_scale. Pipeline source: `src/pipelines/qwen_image.py`.

How to use the Qwen Image 2512 LoRA Inference workflow#

Step 1: Open the workflow#

Launch the cloud workflow in ComfyUI.

Step 2: Import your LoRA (2 options)#

  • Option A (RunComfy training result): RunComfy → Trainer → LoRA Assets → find your LoRA → ⋮ → Copy LoRA Link
    Qwen Image 2512: copy a LoRA link from the RunComfy Trainer UI
  • Option B (AI Toolkit LoRA trained outside RunComfy): Copy a direct .safetensors download link for your LoRA and paste that URL into lora_path (no need to download into ComfyUI/models/loras)

Step 3: Configure the RCQwenImage2512 custom node for Qwen Image 2512 LoRA Inference#

Paste your LoRA link into lora_path on RC Qwen Image 2512 (RCQwenImage2512).

Qwen Image 2512: paste a LoRA URL into lora_path on RCQwenImage2512

Then set the remaining node parameters (start by matching the values you used for preview/sample generation during training):

  • prompt: your positive prompt (include any trigger tokens your LoRA expects)
  • negative_prompt: optional; keep it empty if you did not use negatives in your previews
  • width / height: output resolution (multiples of 32 are recommended for this pipeline family)
  • sample_steps: inference steps; mirror your preview step count before tuning (25 is a common baseline)
  • guidance_scale: guidance strength (Qwen uses a “true CFG” scale, so reuse your preview value first)
  • seed: lock the seed while you validate alignment by setting the control_after_generate to 'fixed', then vary it for new samples
  • lora_scale: LoRA strength; begin near your preview value and adjust in small increments

This is a text-to-image workflow, so you do not need to provide an input image.

Training alignment note: if you customized sampling during training, open your AI Toolkit training YAML and mirror width, height, sample_steps, guidance_scale, seed, and lora_scale. If you trained on RunComfy, open Trainer → LoRA Assets → Config and copy the preview/sample values into RCQwenImage2512 before you iterate.

Qwen Image 2512: locate preview sampling values in the LoRA config screen

Step 4: Run Qwen Image 2512 LoRA Inference#

Click Queue/Run. The SaveImage node saves the generated image to your standard ComfyUI output folder.

Troubleshooting Qwen Image 2512 LoRA Inference#

RunComfy’s RC Qwen Image 2512 (RCQwenImage2512) custom node is designed to keep inference pipeline-aligned with Qwen Image 2512 preview-style sampling by:

  • executing a Qwen-native inference pipeline inside the node (not a generic sampler graph), and
  • injecting the LoRA via lora_path + lora_scale inside that pipeline (consistent patch point).

(1)Qwen-Image Loras not working in comfyui#

Why this happens

Users reported that AI Toolkit–trained Qwen-Image LoRAs can fail to apply in ComfyUI because the LoRA state-dict key prefixes don’t match what the ComfyUI-side loader/inference path expects (so the adapter loads “silently” but does not actually patch the Qwen transformer modules).

How to fix (user-verified options)

  • Use RCQwenImage2512 for pipeline-level LoRA injection: load the adapter only via lora_path + lora_scale on RCQwenImage2512 (avoid stacking extra LoRA loader nodes on top while debugging). This keeps the LoRA patch point aligned with the Qwen pipeline used by preview-style sampling.
  • If you must use a non-RC inference provider / loader path: a user-reported fix is to rename the LoRA keys by replacing the first segment of the LoRA key prefix from diffusion_model → transformer, so the weights map onto the expected Qwen transformer modules (see the issue for the exact context and why this is needed).

(2)Patch for crash when using inference_lora_path with qwen image (allows for generating samples with turbo lora)#

Why this happens

Some users hit a crash when they try to load an inference LoRA for Qwen (including Qwen-Image-2512) through AI Toolkit’s inference_lora_path flow. This is not a “prompt/CFG/seed” problem—it's an inference loading-path issue.

How to fix (user-verified)

  • Apply the patch / update to a version that includes the patch described in the issue. The issue author reports that the patch fixes the crash when loading an inference LoRA for Qwen (see the issue for the exact change and the config context).
  • For ComfyUI inference specifically: prefer RCQwenImage2512 and load the adapter via lora_path / lora_scale inside the RC node. This avoids relying on external inference LoRA loading routes and keeps the pipeline consistent with preview-style sampling.

(3)using sageattention 2 qwen-image in comfyui shows black images due to NaNs (i.e. black images)#

Why this happens

Users reported that running Qwen Image in ComfyUI with SageAttention can produce NaNs that turn into black images. This can look like “my LoRA is broken,” but it’s actually the attention backend producing invalid values—pipeline execution fails before you can meaningfully evaluate LoRA behavior.

How to fix (user-verified)

  • Don’t use --use-sage-attention for Qwen Image when it causes NaNs/black output. Validate a clean baseline first (non-black outputs), then evaluate LoRA impact.
  • If you need SageAttention speedups: fixing Qwen black-output by forcing a CUDA backend path. In practice, this often means using a workflow-level patch (e.g., a “Patch Sage Attention” node) and selecting a CUDA backend variant that avoids the broken Triton path for the affected GPU/arch.
  • After you have stable (non-black) baseline outputs, run Qwen Image 2512 inference through RCQwenImage2512 so the pipeline + LoRA injection point stays preview-aligned while you match width/height/sample_steps/guidance_scale/seed/lora_scale.

Run Qwen Image 2512 LoRA Inference now#

Open the shared workflow, paste your LoRA URL into lora_path, match your preview sampling values, and run RCQwenImage2512 for training-matched Qwen Image 2512 generations in ComfyUI.

Want More ComfyUI Workflows?

Era3D | ComfyUI 3D Pack

Era3D | ComfyUI 3D Pack

Generate 3D content, from multi-view images to detailed meshes.

Flux Consistent Characters | Input Text

Flux Consistent Characters | Input Text

Create consistent characters and ensure they look uniform by inputting text.

LayerDiffuse + TripoSR | Image to 3D

Use LayerDiffuse for image transparency and TripoSR for quick 3D object creation

FLUX Kontext Preset | Scene Control

Master scene creation with curated one-click AI presets.

Flux Klein Face Swap | Realistic AI Face Editor

Swap faces perfectly. Natural, lifelike, and fast AI-powered editing.

LongCat Avatar in ComfyUI | Identity-Consistent Avatar Animation

Turns one image into smooth, identity-consistent avatar animation.

Audioreactive Dancers Evolved

Transform your subject with an audioreactive background made of intricate geometries.

Consistent Character Creator 3.0 | Easy Consistency, Any Angle

Make characters stay the same, every angle, strong and perfect.

Follow us
  • LinkedIn
  • Facebook
  • Instagram
  • Twitter
Support
  • Discord
  • Email
  • System Status
  • Affiliate
Resources
  • Free ComfyUI Online
  • ComfyUI Guides
  • RunComfy API
  • RunComfy MCP
  • ComfyUI Tutorials
  • ComfyUI Nodes
  • Learn More
Legal
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
RunComfy
Copyright 2026 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.