-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
change CMDSTAN version for Apple M2 #2497
Conversation
Hi @lucentcosmos! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
python/prophet/models.py
Outdated
@@ -54,7 +54,7 @@ def sampling(self, stan_init, stan_data, samples, **kwargs) -> dict: | |||
|
|||
|
|||
class CmdStanPyBackend(IStanBackend): | |||
CMDSTAN_VERSION = "2.31.0" | |||
CMDSTAN_VERSION = "2.33.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
latest is 2.33.1, https://github.com/stan-dev/cmdstan/releases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated and tested on my M2
Note that 2.32.1 should be good enough: stan-dev/cmdstan#1158 @tcuongd I recommend merging this if CI passes, it should fix the remaining issues in #2503, #2438, and maybe even #2402 |
The RMSE in one of the tests is now a bit off:
I don't think this is a big deal especially since the other tests have passed, but @lucentcosmos could you do some quick fit / predict runs on your machine and check that the forecasts aren't doing something weird? If it's just down to noise then we can update the expected rmse value in the tests. |
Actually now that I think about it, it's weird that the test only fails for macOS given that it's seeded. We'd need to put a higher tolerance on the check then, if the fitting is actually working as expected. |
I believe this range of updates includes when we updated to Eigen 3.4, which did lead to some numerical changes on some architectures |
Keen to get this merged, but the test result is still weird to me. Just to correct myself from before, the discrepancy is actually happening on Intel Macs; I tested on my M1 and the result is ~11.04 with the same seeds which is fine. If anyone can test on an Intel that the forecast isn't doing anything silly that would be great. Otherwise I'll increase the tolerance to 0.1 (10% relative) and leave a note to revisit. |
This is needed to build prophet on Apple M2 Pro.