Skip to content

Commit 0de6ea9

Browse files
committed
fix(deps): drop torch upper bound to avoid host downgrade
A hard torch<2.8 cap forced uv to downgrade the host environment's torch (e.g. ComfyUI 2.12 -> 2.7.1) on install, leaving torchvision/torchaudio compiled against the original torch and breaking their ABI (operator torchvision::nms does not exist). torch is supplied by the host; inference does not require the cap. coremltools 9 conversion remains validated against torch 2.7.x.
1 parent fb42210 commit 0de6ea9

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "coreml-diffusion"
33
description = "Convert diffusion-model checkpoints (SD1.5/SDXL) to Core ML for Apple Neural Engine — framework-free, ComfyUI-independent."
4-
version = "0.1.0"
4+
version = "0.1.1"
55
license = "MIT"
66
license-files = ["LICENSE"]
77
requires-python = ">=3.12,<3.13"
@@ -29,7 +29,11 @@ classifiers = [
2929
"Typing :: Typed",
3030
]
3131
dependencies = [
32-
"torch>=2.7,<2.8",
32+
# No upper bound: torch is supplied by the host environment (e.g. ComfyUI).
33+
# Capping it forces a downgrade of the host's torch, which breaks the
34+
# already-installed torchvision/torchaudio ABI. coremltools 9 conversion is
35+
# validated against torch 2.7.x, but inference does not require it.
36+
"torch>=2.7",
3337
"coremltools>=9,<10",
3438
"numpy>=2,<3",
3539
"diffusers>=0.30",

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)