Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m1 max , The Python environment will simply crash #74

Open
yiwangsimple opened this issue Mar 19, 2024 · 2 comments
Open

m1 max , The Python environment will simply crash #74

yiwangsimple opened this issue Mar 19, 2024 · 2 comments

Comments

@yiwangsimple
Copy link

sampler_config: {'target': '.sgm.modules.diffusionmodules.sampling.RestoreDPMPP2MSampler', 'params': {'num_steps': 10, 'restore_cfg': -1, 's_churn': 5, 's_noise': 1.0030000000000001, 'discretization_config': {'target': '.sgm.modules.diffusionmodules.discretizer.LegacyDDPMDiscretization'}, 'guider_config': {'target': '.sgm.modules.diffusionmodules.guiders.LinearCFG', 'params': {'scale': 1.5, 'scale_min': 1.5}}, 'eta': 1.0}}
loc("mps_add"("(mpsFileLoc): /AppleInternal/Library/BuildRoots/c2cb9645-dafc-11ed-aa26-6ec1e3b3f7b3/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShadersGraph/mpsgraph/MetalPerformanceShadersGraph/Core/Files/MPSGraphUtilities.mm":228:0)): error: input types 'tensor<2x1280xf32>' and 'tensor<1280xf16>' are not broadcast compatible
LLVM ERROR: Failed to infer result type(s).

@kijai
Copy link
Owner

kijai commented Mar 19, 2024

I don't think the pipeline works with MPS and fp16, as far as I know you would have to use fp32, but I don't have a mac to know.

@r-darwish
Copy link

I can confirm that fp32 works on a Mac. Here's an example workflow.
SUPIR macOS.json
Also, the environment variable PYTORCH_ENABLE_MPS_FALLBACK=1 has to be set

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants