Skip to content

Commit 30a73b3

Browse files
authored
Merge branch 'master' into sam31
2 parents 9ad6601 + 1de83f9 commit 30a73b3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

comfy/ldm/ernie/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def rope(pos: torch.Tensor, dim: int, theta: int) -> torch.Tensor:
1515

1616
scale = torch.arange(0, dim, 2, dtype=torch.float64, device=device) / dim
1717
omega = 1.0 / (theta**scale)
18-
out = torch.einsum("...n,d->...nd", pos, omega)
18+
out = torch.einsum("...n,d->...nd", pos.to(device), omega)
1919
out = torch.stack([torch.cos(out), torch.sin(out)], dim=0)
2020
return out.to(dtype=torch.float32, device=pos.device)
2121

comfy/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ def _apply(self, fn, recurse=True): # This is to get torch.compile + moving wei
11511151
if param is None:
11521152
continue
11531153
p = fn(param)
1154-
if p.is_inference():
1154+
if (not torch.is_inference_mode_enabled()) and p.is_inference():
11551155
p = p.clone()
11561156
self.register_parameter(key, torch.nn.Parameter(p, requires_grad=False))
11571157
for key, buf in self._buffers.items():

comfyui_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# This file is automatically generated by the build process when version is
22
# updated in pyproject.toml.
3-
__version__ = "0.19.0"
3+
__version__ = "0.19.1"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ComfyUI"
3-
version = "0.19.0"
3+
version = "0.19.1"
44
readme = "README.md"
55
license = { file = "LICENSE" }
66
requires-python = ">=3.10"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
comfyui-frontend-package==1.42.11
2-
comfyui-workflow-templates==0.9.50
2+
comfyui-workflow-templates==0.9.54
33
comfyui-embedded-docs==0.4.3
44
torch
55
torchsde

0 commit comments

Comments
 (0)