PixArt Fix for ComfyUI_ExtraModels — Modern ComfyUI Compatibility Patch
========================================================================
From Source of Truth Publishing Co. — soretruth.com

ComfyUI_ExtraModels' PixArt support breaks on current ComfyUI builds
(2025+ / portable 2026 releases) with these errors:

  1. ModuleNotFoundError: No module named 'comfy.sd3_clip'
     (the PixArtT5FromSD3CLIP node imports an API removed from core)
  2. TypeError: ModelPatcher.__init__() got an unexpected keyword
     argument 'current_device'  (removed from ModelPatcher)
  3. White screen / dead frontend at startup caused by #1 failing
     during node registration.

THE FIX — three drop-in files:
  nodes.py   - removes the SD3-dependent splitter node (the other six
               PixArt nodes are untouched and fully functional)
  loader.py  - removes the dead current_device argument
  lora.py    - same fix in the LoRA ModelPatcher clone paths

INSTALL:
  1. Go to ComfyUI\custom_nodes\ComfyUI_ExtraModels\PixArt\
  2. Back up the three original files
  3. Replace them with the files in this package
  4. Restart ComfyUI and hard-refresh the browser (Ctrl+F5)

T5 TEXT ENCODER WITHOUT THE SD3 NODE:
  Modern ComfyUI has native PixArt support in the core CLIPLoader —
  add a CLIPLoader node, select your t5xxl_fp8_e4m3fn.safetensors,
  and set type = "pixart". Wire it straight into your CLIP Text
  Encode nodes. No splitter needed.

NOTES:
  - Tested on ComfyUI portable (March 2026 build), RTX 2060 SUPER 8GB,
    PixArt Sigma XL 2 1024, batch size 1.
  - PixArt without xformers warns about non-deterministic images;
    that's normal, renders are fine.
  - Re-installing/updating ComfyUI_ExtraModels via Manager will
    overwrite these fixes — keep this package handy.

Free to use and share. If this saved your evening, browse our
illustrated classics at soretruth.com and payhip.com/buyart
