Open geraldstanje opened 5 months ago
@MosheWasserb
according to https://github.com/huggingface/setfit/pull/435/files and https://github.com/huggingface/setfit/blob/main/docs/source/en/tutorials/onnx.mdx there should be the following in the notebook:
self.model_head.predict(embeddings.cpu())
but https://raw.githubusercontent.com/huggingface/setfit/main/notebooks/setfit-onnx-optimum.ipynb uses:
self.model_head.predict(embeddings)
is that a bug?
any infos team?
Can I work on this?
Hi,
I took the following example and enabled the training part in the code: https://github.com/huggingface/setfit/blob/main/notebooks/setfit-onnx-optimum.ipynb
But example gives an error:
it looks like the function predict in OnnxSetFitModel needs to change as follows - does it mean it runs on the cpu and not gpu? does mean_pooling also run on the cpu?
Code:
Logs: setfit_test.txt