Different calculation results when running on CUP or MPS. (MAC M3 PRO OS14.5) #1030
-
Hi all, Both notebooks are attached here: Regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Try increasing learning rate to On cpu: your test loss is increasing Also u might need to check ur |
Beta Was this translation helpful? Give feedback.
-
Hi LuluW8071, Thanks for your help. Great. Finding is that a for loop with MPS takes longer as with COU, but with the same number of loops the result with MPS is much better as with CPU. Best Regards |
Beta Was this translation helpful? Give feedback.
Hi LuluW8071,
Thanks for your help. Great.
Found a solution. When I run the X not from 0 to 50 instead from 0 to 5 step 0.1. That works great.
Probably due the float32 which the MPS is using while CPU uses float64 as standard.
Finding is that a for loop with MPS takes longer as with COU, but with the same number of loops the result with MPS is much better as with CPU.
Any clue why?
Best Regards
Sven