ComfyUI custom nodes for OrbitQuant artifacts
Project description
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 an 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
Clone this repository into ComfyUI's custom node directory:
cd ComfyUI/custom_nodes
git clone https://github.com/iamwavecut/ComfyUI-OrbitQuant.git
Install the orbitquant package into the Python environment used by ComfyUI.
Use the released package when available:
python -m pip install "orbitquant>=0.1.4"
For the default optimized runtime_mode="auto_fused" path on CUDA or for
Hub-published native packed matmul kernels, install OrbitQuant with its kernel
runtime extra:
python -m pip install "orbitquant[kernels]>=0.1.4"
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.
- Load or create the source Diffusers pipeline in your workflow.
- Add the matching OrbitQuant loader node.
- Set
artifact_pathto the local artifact directory. - Connect the pipeline object into the loader node.
- Keep
runtime_modeatauto_fusedfor optimized packed-weight inference. - 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 |
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.
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file comfyui_orbitquant-0.1.3.tar.gz.
File metadata
- Download URL: comfyui_orbitquant-0.1.3.tar.gz
- Upload date:
- Size: 97.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
202400246f267bfb4b97974207a5d482b71b80db9122cca60134f4355fc42f19
|
|
| MD5 |
d9487e385204b462f47cf943799c9519
|
|
| BLAKE2b-256 |
b65f3547b2372b742d009c83883427371dcaa7164fe2785ec2897c6d6fea8bbd
|
Provenance
The following attestation bundles were made for comfyui_orbitquant-0.1.3.tar.gz:
Publisher:
publish-pypi.yml on iamwavecut/ComfyUI-OrbitQuant
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
comfyui_orbitquant-0.1.3.tar.gz -
Subject digest:
202400246f267bfb4b97974207a5d482b71b80db9122cca60134f4355fc42f19 - Sigstore transparency entry: 2130216008
- Sigstore integration time:
-
Permalink:
iamwavecut/ComfyUI-OrbitQuant@435baabea32f3f50bdf7ef4eee719e1fd4b82c12 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/iamwavecut
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@435baabea32f3f50bdf7ef4eee719e1fd4b82c12 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file comfyui_orbitquant-0.1.3-py3-none-any.whl.
File metadata
- Download URL: comfyui_orbitquant-0.1.3-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
453c72d95e5dafee5408969225809ad278eb577a9386728b7f5bdcef918de1d1
|
|
| MD5 |
a681abee0f382bbe8cca49a6e25954ba
|
|
| BLAKE2b-256 |
60e86fbb5e8e88917291f08a55570a5611aa6ec7dcca55c9aec2fba2a5d06514
|
Provenance
The following attestation bundles were made for comfyui_orbitquant-0.1.3-py3-none-any.whl:
Publisher:
publish-pypi.yml on iamwavecut/ComfyUI-OrbitQuant
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
comfyui_orbitquant-0.1.3-py3-none-any.whl -
Subject digest:
453c72d95e5dafee5408969225809ad278eb577a9386728b7f5bdcef918de1d1 - Sigstore transparency entry: 2130216056
- Sigstore integration time:
-
Permalink:
iamwavecut/ComfyUI-OrbitQuant@435baabea32f3f50bdf7ef4eee719e1fd4b82c12 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/iamwavecut
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@435baabea32f3f50bdf7ef4eee719e1fd4b82c12 -
Trigger Event:
workflow_dispatch
-
Statement type: