Please Help. there's a problem with ComfyUI

Oleksandr_Mykolaienk: <p>Hey. I’m using ComfyUI on my MacBook pro 15, 2018, Intel i7, Radeon pro 555X 4Gb. and encountered this problem in ComfyUI</p>
<p>Starting server</p>
<p>To see the GUI go to: <a href="http://127.0.0.1:8188" rel="noopener nofollow ugc">http://127.0.0.1:8188</a><br>
FETCH DATA from: /Users/aleksendrmykolaienko/AI/ComfyUI/custom_nodes/ComfyUI-Manager/extension-node-map.json<br>
got prompt<br>
model_type EPS<br>
Using split attention in VAE<br>
Using split attention in VAE<br>
clip missing: [‘clip_l.logit_scale’, ‘clip_l.transformer.text_projection.weight’]<br>
[AnimateDiffEvo] - INFO - Loading motion module v3_sd15_mm.ckpt<br>
Requested to load SD1ClipModel<br>
Loading 1 new model<br>
/usr/local/lib/python3.11/site-packages/torch/functional.py:507: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/aten/src/ATen/native/TensorShape.cpp:3550.)<br>
return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]<br>
/usr/local/lib/python3.11/site-packages/torch/nn/functional.py:4046: UserWarning: The operator ‘aten::upsample_bicubic2d.out’ is not currently supported on the MPS backend and will fall back to run on the CPU. This may have performance implications. (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/aten/src/ATen/mps/MPSFallback.mm:13.)<br>
return torch._C.<em>nn.upsample_bicubic2d(input, output_size, align_corners, scale_factors)<br>
Requested to load AutoencoderKL<br>
Loading 1 new model<br>
[AnimateDiffEvo] - INFO - Sliding context window activated - latents passed in (16) greater than context_length 16.<br>
[AnimateDiffEvo] - INFO - Using motion module v3_sd15_mm.ckpt:v3.<br>
Requested to load AnimateDiffModel<br>
Requested to load ControlNet<br>
Requested to load BaseModel<br>
Loading 3 new models<br>
0%|                                                    | 0/20 [00:01&lt;?, ?it/s]<br>
!!! Exception during processing !!!<br>
Traceback (most recent call last):<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/execution.py”, line 151, in recursive_execute<br>
output_data, output_ui = get_output_data(obj, input_data_all)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/execution.py”, line 81, in get_output_data<br>
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/execution.py”, line 74, in map_node_over_list<br>
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/nodes.py”, line 1378, in sample<br>
return common_ksampler(model, noise_seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise, disable_noise=disable_noise, start_step=start_at_step, last_step=end_at_step, force_full_denoise=force_full_denoise)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/nodes.py”, line 1314, in common_ksampler<br>
samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/animatediff/sampling.py”, line 382, in motion_sample<br>
latents = wrap_function_to_inject_xformers_bug_info(orig_comfy_sample)(model, noise, *args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/animatediff/utils_model.py”, line 377, in wrapped_function<br>
return function_to_wrap(*args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet/adv_control/control_reference.py”, line 47, in refcn_sample<br>
return orig_comfy_sample(model, *args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/sample.py”, line 37, in sample<br>
samples = sampler.sample(noise, positive, negative, cfg=cfg, latent_image=latent_image, start_step=start_step, last_step=last_step, force_full_denoise=force_full_denoise, denoise_mask=noise_mask, sigmas=sigmas, callback=callback, disable_pbar=disable_pbar, seed=seed)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/samplers.py”, line 755, in sample<br>
return sample(self.model, noise, positive, negative, cfg, self.device, sampler, sigmas, self.model_options, latent_image=latent_image, denoise_mask=denoise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/samplers.py”, line 657, in sample<br>
return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/samplers.py”, line 644, in sample<br>
output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/samplers.py”, line 623, in inner_sample<br>
samples = sampler.sample(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/samplers.py”, line 534, in sample<br>
samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File "/usr/local/lib/python3.11/site-packages/torch/utils/<em>contextlib.py", line 115, in decorate_context<br>
return func(*args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/k_diffusion/sampling.py”, line 154, in sample_euler_ancestral<br>
denoised = model(x, sigmas[i] * s_in, **extra_args)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/samplers.py”, line 272, in <strong>call</strong><br>
out = self.inner_model(x, sigma, model_options=model_options, seed=seed)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/samplers.py”, line 610, in <strong>call</strong><br>
return self.predict_noise(*args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/samplers.py”, line 613, in predict_noise<br>
return sampling_function(self.inner_model, x, timestep, self.conds.get(“negative”, None), self.conds.get(“positive”, None), self.cfg, model_options=model_options, seed=seed)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/animatediff/sampling.py”, line 427, in evolved_sampling_function<br>
cond_pred, uncond_pred = sliding_calc_cond_uncond_batch(model, cond, uncond</em>, x, timestep, model_options)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/animatediff/sampling.py”, line 543, in sliding_calc_cond_uncond_batch<br>
sub_cond_out, sub_uncond_out = comfy.samplers.calc_cond_batch(model, [sub_cond, sub_uncond], sub_x, sub_timestep, model_options)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/samplers.py”, line 192, in calc_cond_batch<br>
c[‘control’] = control.get_control(input_x, timestep</em>, c, len(cond_or_uncond))<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet/adv_control/utils.py”, line 536, in get_control_inject<br>
return self.get_control_advanced(x_noisy, t, cond, batched_number)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet/adv_control/control.py”, line 32, in get_control_advanced<br>
return self.sliding_get_control(x_noisy, t, cond, batched_number)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet/adv_control/control.py”, line 78, in sliding_get_control<br>
control = self.control_model(x=x_noisy.to(dtype), hint=self.cond_hint, timesteps=timestep.float(), context=context.to(dtype), y=y)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/usr/local/lib/python3.11/site-packages/torch/nn/modules/module.py”, line 1511, in _wrapped_call_impl<br>
return self._call_impl(*args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/usr/local/lib/python3.11/site-packages/torch/nn/modules/module.py”, line 1520, in _call_impl<br>
return forward_call(*args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/cldm/cldm.py”, line 305, in forward<br>
h = module(h, emb, context)<br>
^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/usr/local/lib/python3.11/site-packages/torch/nn/modules/module.py”, line 1511, in _wrapped_call_impl<br>
return self._call_impl(*args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/usr/local/lib/python3.11/site-packages/torch/nn/modules/module.py”, line 1520, in _call_impl<br>
return forward_call(*args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/ldm/modules/diffusionmodules/openaimodel.py”, line 60, in forward<br>
return forward_timestep_embed(self, *args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/animatediff/sampling.py”, line 109, in forward_timestep_embed<br>
x = layer(x, context, transformer_options)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/usr/local/lib/python3.11/site-packages/torch/nn/modules/module.py”, line 1511, in _wrapped_call_impl<br>
return self._call_impl(*args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/usr/local/lib/python3.11/site-packages/torch/nn/modules/module.py”, line 1520, in _call_impl<br>
return forward_call(*args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/ldm/modules/attention.py”, line 633, in forward<br>
x = block(x, context=context[i], transformer_options=transformer_options)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/usr/local/lib/python3.11/site-packages/torch/nn/modules/module.py”, line 1511, in _wrapped_call_impl<br>
return self._call_impl(*args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/usr/local/lib/python3.11/site-packages/torch/nn/modules/module.py”, line 1520, in _call_impl<br>
return forward_call(*args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/custom_nodes/ComfyUI-Inference-Core-Nodes/src/inference_core_nodes/layer_diffuse/lib_layerdiffusion/attention_sharing.py”, line 253, in forward<br>
return func(self, x, context, transformer_options)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/ldm/modules/attention.py”, line 460, in forward<br>
return checkpoint(self._forward, (x, context, transformer_options), self.parameters(), self.checkpoint)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/ldm/modules/diffusionmodules/util.py”, line 191, in checkpoint<br>
return func(*inputs)<br>
^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/ldm/modules/attention.py”, line 520, in _forward<br>
n = self.attn1(n, context=context_attn1, value=value_attn1)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/usr/local/lib/python3.11/site-packages/torch/nn/modules/module.py”, line 1511, in _wrapped_call_impl<br>
return self._call_impl(*args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/usr/local/lib/python3.11/site-packages/torch/nn/modules/module.py”, line 1520, in _call_impl<br>
return forward_call(*args, **kwargs)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/ldm/modules/attention.py”, line 412, in forward<br>
out = optimized_attention(q, k, v, self.heads)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/ldm/modules/attention.py”, line 181, in attention_sub_quad<br>
hidden_states = efficient_dot_product_attention(<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/ldm/modules/sub_quadratic_attention.py”, line 266, in efficient_dot_product_attention<br>
res = torch.cat([<br>
^<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/ldm/modules/sub_quadratic_attention.py”, line 267, in <br>
compute_query_chunk_attn(<br>
File “/Users/aleksendrmykolaienko/AI/ComfyUI/comfy/ldm/modules/sub_quadratic_attention.py”, line 171, in _get_attention_scores_no_kv_chunking<br>
attn_probs = attn_scores.softmax(dim=-1)<br>
^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
RuntimeError: MPS backend out of memory (MPS allocated: 5.92 GB, other allocations: 1.15 GB, max allowed: 6.80 GB). Tried to allocate 1.12 GB on private pool. Use PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 to disable upper limit for memory allocations (may cause system failure).</p>
<p>Prompt executed in 747.89 seconds</p>
<p>COPIED FROM THE TERMINAL</p>
<p>please help me with this. I’m a complete novice at this. But I did all the installation according to the correct instructions and everything started and worked without any problems. But when rendering such a problem(((</p>

ptrblck: <aside class="quote no-group" data-username="Oleksandr_Mykolaienk" data-post="1" data-topic="201293">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/oleksandr_mykolaienk/48/69419_2.png" class="avatar"> Oleksandr_Mykolaienk:</div>
<blockquote>
<p>RuntimeError: MPS backend out of memory (MPS allocated: 5.92 GB, other allocations: 1.15 GB, max allowed: 6.80 GB). Tried to allocate 1.12 GB on private pool. Use PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 to disable upper limit for memory allocations (may cause system failure).</p>
</blockquote>
</aside>
<p>Did you try to export the suggested env variable?</p>