krea/Krea-2-Turbo moved to HuggingFace Xet storage, whose CDN 403s public downloads. On every model load the pipeline re-verified the base assets (VAE + Qwen3-VL encoder + tokenizer) via a HEAD size-check; the Xet redirect returns no usable content-length, so a fully-cached file looked stale and triggered a re-download that 403'd — breaking the model loader even though the files were present. _base_dir() now short-circuits to the cache when the assets are all present (no network at all), and _http_download trusts a cached file when the size is unknowable. Verified: load with base_dir=None (the ComfyUI path) resolves the cache in 0.0s and the pipeline loads with no 403. v0.7.3. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
32 lines
960 B
TOML
32 lines
960 B
TOML
[project]
|
|
name = "comfyui-krea2-mlx"
|
|
description = "Krea-2-Turbo text-to-image on Apple MLX (Apple Silicon), with stackable LoRAs. Runs the MLX pipeline in-process and returns ComfyUI IMAGE tensors."
|
|
version = "0.7.3"
|
|
license = { text = "Krea 2 Community License (model) / MIT (node code)" }
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
# Apple-Silicon-only: the MLX runtime targets Metal. The registry/Manager read OS
|
|
# constraints from these classifiers.
|
|
classifiers = [
|
|
"Operating System :: MacOS",
|
|
"Programming Language :: Python :: 3",
|
|
"Environment :: GPU",
|
|
]
|
|
dependencies = [
|
|
"mlx-metal>=0.31,<0.32",
|
|
"mflux>=0.18,<0.19",
|
|
"transformers>=5.0,<6",
|
|
"huggingface_hub>=0.26,<2",
|
|
"requests>=2.28,<3",
|
|
"numpy>=1.24,<3",
|
|
"pillow>=10,<13",
|
|
]
|
|
|
|
[project.urls]
|
|
Repository = "https://github.com/cthomasdesign/ComfyUI-Krea2-MLX"
|
|
|
|
[tool.comfy]
|
|
PublisherId = "cthomasdesign"
|
|
DisplayName = "Krea2-MLX (Apple Silicon)"
|
|
Icon = ""
|