Hacker News new | past | comments | ask | show | jobs | submit login

You can use arch -x86_64 and install the Intel versions. Small perf overhead but not really noticable.



Does MacOS auto detect that they are x86 binaries and run them through Rosetta automatically after installing?


Yes.


Unless you use anything that does JIT compilation (e.g. JVM), e.g. JetBrains IDEs are really slow onder Rosetta.

Another pain point is code that relies heavily on SIMD. AVX/AVX2/AVX-512 instructions are not translated, so in those cases you'll be using slower kernels. My machine learned models are ~10 times slower with libtorch under Rosetta. Though they are competitive when compiling libtorch natively.

(Source: I have used an M1 Air for a week, but decided to return it.)


Does this mean python performance is finally competitive with those fancy JIT languages now?


Nope.


> used an M1 Air for a week, but decided to return it.

out of curiosity, why did you return it?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: