Skip to content
Discussion options

You must be logged in to vote

The underlying problem is that thinc primarily uses blis (rather than numpy's openblas) for matrix multiplication, which isn't optimized for the apple m1 yet (maybe upstream in flame/blis by now, but not in our python explosion/cython-blis package yet).

We do have a solution, which uses apple's accelerate library instead of blis for GEMM. We should get this published and documented/advertised, because it makes a huge difference. In some simple benchmarks it's about 8x faster vs. the unoptimized blis (and about 1.5x faster than numpy's openblas).

If you upgrade to thinc v8.0.9+ and have this package installed, it should automatically switch to AppleOps instead of NumpyOps as the default op…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@adrianeboyd
Comment options

@jmichaelschmidt
Comment options

Answer selected by svlandeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
osx Issues related to macOS / OSX plat / m1 Apple M1 architecture support
2 participants