-
Notifications
You must be signed in to change notification settings - Fork 110
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
Can't run in Macbook Pro M1 #315
Comments
Thanks for reporting this issue and providing detailed information! We appreciate you helping us improve Meridian. It appears the problem is rooted in the way Apple silicon handles TensorFlow's JIT compilation with We're keeping an eye on the upstream issues in the TensorFlow repository and Apple forums. Hopefully, a solution will be available soon that allows for GPU usage on Macbooks without compromising compatibility. In the meantime, we're exploring the possibility of adding a parameter to Meridian to toggle For now, you can still run Meridian on your Macbook using the CPU. While not ideal, it should allow you to use the model. You can also consider using Google Colab which supports GPU out of the box. We appreciate your patience as we work towards a resolution. We'll update this issue as soon as we have more information. |
hi @andyl7an , Thank you for the suggestions. Unfortunately, Meridian doesn't work with CPU on my dataset. It's giving me very high R-hat: The exact same code with colab gives reasonable R-hat: I believe this is not supposed to happen? |
Hi @lawrencekwong2, Thanks for providing the screenshots and letting us know about this! It's unexpected that you're seeing this sampling error when running on the CPU. I tried to reproduce the issue on my Macbook Pro M1 with the same TensorFlow version |
I'm trying to run Meridian in Macbook Pro M1 2021 32GB, macOS 13.5.1 but got an error that's undocumented anywhere online (or requires me to downgrade tensorflow-macos). Does anyone know how to resolve this? Thank you in advance.
Code
Error
Packages
More info
I followed the tutorial from this youtube video https://www.youtube.com/watch?v=cGEIEnekmRM to enable tensorflow in macbook silicon. It involves installing
tensorflow-macos
andtensorflow-metal
GPU check 1
GPU check 2
The text was updated successfully, but these errors were encountered: