PixArtAlpha ModelLoader
The PixArt 'loader' that's really just a Hugging Face downloader
- model
The name "ModelLoader" is doing some heavy lifting here. Most ComfyUI loaders point at a local checkpoint on your disk - this one doesn't. Its single input is a Hugging Face repository ID, and its whole job is to download that model through the diffusers PixArtAlphaPipeline on first run, then hand it to the pack's generation node. The fromhub in the class name isn't decoration; it's a warning.
Displayed as PixArtAlpha ModelLoader, it's the front half of the ComfyUI-PixArt_XL pack, which is the quickest way to run PixArt-Alpha - that small, prompt-following diffusion transformer that was a community darling in early 2024 and then got steamrolled by Flux. It comes from ShmuelRonen, the same author behind the popular LatentSync and wav2lip ComfyUI wrappers, so think of it as a wrapper-in-the-traditional-style: thin, self-contained, and leaning entirely on Hugging Face's diffusers library rather than ComfyUI's native model machinery.
How it works
Under the hood it's one line of real work:
model = PixArtAlphaPipeline.from_pretrained(base_model_path,
torch_dtype=torch.float32, low_cpu_mem_usage=True)
That's it. It resolves the repo ID against the Hugging Face hub, downloads the diffusers-format weights if they're not cached, and loads the whole pipeline - text encoder, DiT backbone, VAE - into RAM with low-memory loading, then moves it to your GPU. Two things stand out. First, it forces float32 precision for "maximum stability," which is the pack's stated priority over speed or memory. Second, low_cpu_mem_usage plus the pack's generation-side CPU offloading is where the "advanced memory management" in the README actually lives - the loader itself is boring.
The input and output
Just the one input: base_model_path, a string defaulting to PixArt-alpha/PixArt-XL-2-1024-MS. That's the Alpha XL model at 1024 native resolution, and it's a Hugging Face repo path, not a local file path - point it at another HF repo if you like, but know the pipeline it constructs is PixArt-Alpha specific, so don't expect a random PixArt-Sigma or Lumina repo to load cleanly through it.
The single output is model, typed PAMODEL. That custom type is the important part: it only plugs into this pack's PixArtAlpha Generation node. You cannot wire this into a native ComfyUI KSampler, and a local PixArt .safetensors you downloaded for ComfyUI's own nodes won't work here either. The pack is an island, by design.
Installing it
Via ComfyUI Manager, search "ComfyUI-PixArt_XL". Or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/ShmuelRonen/ComfyUI-PixArt_XL.git
pip install sentencepiece
Restart ComfyUI and the node appears under the PixArtAlpha category. The requirements.txt lists diffusers, transformers, and sentencepiece - the author's README only tells you to pip install sentencepiece, presumably because ComfyUI's own environment usually already has the first two. That's the one dependency to double-check: the T5 tokenizer won't start without it.
Where people trip up
- The first-run download. The model is a few gigabytes and arrives from the internet, not your
models/folder. No internet on that first run means no model, and the download can look like a hang while it's happening. - The "it won't connect" moment. If you try to link this loader's
modeloutput to anything outside the pack, nothing snaps together -PAMODELis private to it. That's the most common "is this node broken?" confusion, and it isn't broken. - float32 memory tax. Everything stays full precision, so you're using roughly double the VRAM of an fp16 load for a model that's already small. The author has a reputation - visible in the community threads around his wav2lip pack - for dependency friction on install, though this pack's requirements are light enough to dodge most of that.
If you just want to poke at PixArt-Alpha without learning a new loading ritual, this node plus its generation sibling is the path of least resistance. Just understand you're renting Hugging Face's pipeline, not ComfyUI's.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| base_model_path | STRING | PixArt-alpha/PixArt-XL-2-1024-MS | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| model | PAMODEL | — |