weaviate / t2v-transformers-models

This is the repo for the container that holds the models for the text2vec-transformers module
BSD 3-Clause "New" or "Revised" License
40 stars 27 forks source link

WIP: add mps support to transformers #29

Closed raam86 closed 2 years ago

raam86 commented 2 years ago

Naive addition of MPS support for the transformers service.

At the moment the service crashes python when load is high, still looking into what qualifies as high but it seems like pytorch is crashing python due to some MPS issue.

The issue manifests as some embeddings are vectorized with calculated NaN values, this initially led to exceptions being thrown from ASGI, now that we catch them it blows up less spectacularly but still does.

raam86 commented 2 years ago

No longer relevant due to next PR