benfred / implicit

Fast Python Collaborative Filtering for Implicit Feedback Datasets
https://benfred.github.io/implicit/
MIT License
3.57k stars 612 forks source link

zsh: illegal hardware instruction - Mac M1 - OS Monterey 12.3.1 #582

Closed LeGabriel closed 2 years ago

LeGabriel commented 2 years ago

Hi there !

I am using implicit to make reco (duh haha).

Here is something I am trying to do.

import numpy as np
from implicit.approximate_als import NMSLibAlternatingLeastSquares

model = NMSLibAlternatingLeastSquares(factors=128, dtype=np.float32)

But when I run it, I get "zsh: illegal hardware instruction". Any idea on how to solve this ?

My computer : MacBook Pro Apple M1 OS Monterey 12.3.1 python : 3.8.0

Thanks in advance :) !

Gabriel

LeGabriel commented 2 years ago

https://github.com/allenai/scispacy/issues/372

Found my solution here ! :)

benfred commented 2 years ago

Glad you sorted this out @LeGabriel - and thanks for linking out to the fix

LeGabriel commented 2 years ago

You are welcome, but I feel kinda dumb that I found the fix a few hours later haha :)