Skip to main content

ComfyUI-OrbitQuant

ComfyUI custom nodes for inspecting OrbitQuant artifacts and attaching a quantized transformer component to an existing pipeline object.

The quantization implementation lives in the orbitquant Python package. This node pack only validates artifacts, reports metadata, and calls OrbitQuant's component-loading API.

Nodes

Node Purpose
OrbitQuant Inspect Artifact Validate an OrbitQuant artifact directory and return a text summary plus structured metadata.
OrbitQuant Pipeline Component Loader Attach any compatible universal or model-specific OrbitQuant component artifact to a pipeline attribute such as transformer.
OrbitQuant FLUX Loader Attach a FLUX or FLUX.2 transformer artifact and reject non-FLUX policies.
OrbitQuant Z-Image Loader Attach a Z-Image transformer artifact and reject other target policies.
OrbitQuant Wan Loader Attach a Wan transformer artifact and reject other target policies.

The same nodes are exposed through the legacy NODE_CLASS_MAPPINGS interface and the modern ComfyUI V3 comfy_entrypoint interface when comfy_api is available.

Install

Install through ComfyUI-Manager, or clone this repository into ComfyUI's custom node directory:

cd ComfyUI/custom_nodes
git clone https://github.com/iamwavecut/ComfyUI-OrbitQuant.git

ComfyUI-Manager installs requirements.txt (the orbitquant package) and then runs install.py, which provisions the optimized native kernel package for the current runtime by downloading the matching prebuilt variant wheel from the OrbitQuant GitHub release. Provisioning is best effort: when no variant matches the runtime, packed runtime modes fall back to OrbitQuant's Triton or dequantized paths and the node pack keeps working.

For a manual clone, install the orbitquant package into the Python environment used by ComfyUI and provision the native kernels explicitly:

python -m pip install "orbitquant>=0.6.0"
python -m orbitquant.cli.main kernels-install

For the default optimized runtime_mode="auto_fused" path on CUDA, install OrbitQuant with its kernel runtime extra. This provides the Triton fallback used when no native variant matches:

python -m pip install "orbitquant[kernels]>=0.6.0"

If you install this node pack from PyPI, the same kernel runtime dependencies are available through the node pack extra:

python -m pip install "comfyui-orbitquant[kernels]"

For a source checkout, install the package from the local OrbitQuant repository:

python -m pip install -e /path/to/OrbitQuant

For a source checkout with the kernel runtime dependencies:

python -m pip install -e "/path/to/OrbitQuant[kernels]"

Restart ComfyUI after installation.

Usage

Use an OrbitQuant artifact directory produced by the OrbitQuant package or downloaded from Hugging Face.

  1. Load or create the source Diffusers pipeline in your workflow.
  2. Add the matching OrbitQuant loader node.
  3. Set artifact_path to the local artifact directory.
  4. Connect the pipeline object into the loader node.
  5. Keep runtime_mode at auto_fused for optimized packed-weight inference.
  6. Use the returned pipeline object for the downstream generation nodes.

For model-specific loaders, the artifact target_policy is checked before the component is attached:

Loader Accepted target_policy
OrbitQuant FLUX Loader flux, flux2
OrbitQuant Z-Image Loader z_image
OrbitQuant Wan Loader wan

Use OrbitQuant Pipeline Component Loader for artifacts with target_policy="universal" or for future transformer components that do not have a specialized node. This loader validates the artifact schema without restricting the source architecture name.

Runtime Modes

runtime_mode defaults to auto_fused. On supported devices, OrbitQuant will use packed low-bit matmul kernels instead of materializing a full BF16/FP16 weight matrix. activation_kernel_backend defaults to auto; the triton_rocm and triton_xpu backends are experimental in OrbitQuant.

Use runtime_mode="dequant_bf16" only as an explicit compatibility or debug path when packed kernels are not installed in the ComfyUI Python environment.

Artifact Requirements

The loader expects the standard OrbitQuant component artifact layout:

artifact/
  README.md
  SHA256SUMS
  model_index.json
  model.safetensors
  quantization_config.json
  orbitquant_manifest.json
  orbitquant_codebooks.safetensors
  orbitquant_rotations.safetensors
  prompts.json
  benchmark/summary.json

OrbitQuant Inspect Artifact validates required files, checksums, tensor shapes, source model metadata, bit settings, runtime mode, target policy, and module counts.

Python API

The node classes can also be called directly from Python when building a custom ComfyUI workflow wrapper.

Inspect an artifact:

from comfyui_orbitquant.nodes import OrbitQuantArtifactInspector

summary, info = OrbitQuantArtifactInspector().inspect(
    "/models/orbitquant/flux1-schnell-w4a4"
)
print(summary)
print(info["target_policy"])

Attach a FLUX-family transformer artifact to an existing pipeline object:

from comfyui_orbitquant.nodes import OrbitQuantFluxLoader

pipeline, info = OrbitQuantFluxLoader().load(
    pipeline,
    "/models/orbitquant/flux1-schnell-w4a4",
    strict=True,
    runtime_mode="auto_fused",
    activation_kernel_backend="auto",
)

The nodes delegate artifact parsing and component loading to OrbitQuant:

from orbitquant.artifacts import OrbitQuantManifest, validate_orbitquant_artifact
from orbitquant.pipeline import load_quantized_pipeline_component

No quantization math or artifact parsing logic is duplicated in this repository.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

comfyui_orbitquant-0.4.0.tar.gz (100.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

comfyui_orbitquant-0.4.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file comfyui_orbitquant-0.4.0.tar.gz.

File metadata

  • Download URL: comfyui_orbitquant-0.4.0.tar.gz
  • Upload date:
  • Size: 100.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for comfyui_orbitquant-0.4.0.tar.gz
Algorithm Hash digest
SHA256 78a9488c79dac43de8d0614391bd4d7fc02cf0c3951973e588d1c03765c75928
MD5 d8a9cbcd760f6b2ff2f091adbd9f8da9
BLAKE2b-256 9ee38164b4863fcf94ffabc4207d47c6447870e0ecaeb0120496f5af477cdf00

See more details on using hashes here.

Provenance

The following attestation bundles were made for comfyui_orbitquant-0.4.0.tar.gz:

Publisher: publish-pypi.yml on iamwavecut/ComfyUI-OrbitQuant

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file comfyui_orbitquant-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for comfyui_orbitquant-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a621f0372e6fe2b54f5365b9d61fa28c7d774ff880a25af374325f6c1732623
MD5 78dd313c3a2bab476c997f42c5529c74
BLAKE2b-256 64ba66c3c0ac5eb68a530f82a37d91e36e0c788072cbd590151493a7332e411d

See more details on using hashes here.

Provenance

The following attestation bundles were made for comfyui_orbitquant-0.4.0-py3-none-any.whl:

Publisher: publish-pypi.yml on iamwavecut/ComfyUI-OrbitQuant

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page