huggingface / huggingface/setfit
Inconsistent ONNX Export with Differentiable Head
- Dominant language
- Jupyter Notebook
- Stars
- 2.8k
- Forks
- 267
- Avg merge
- 36m
- Merged PRs (30d)
- 5
Description
Hello,
I am trying to fine-tune SetFit for a multi-class classification problem.
Everything is smooth until exporting to Onnx. The head is not exported correctly, so when loading the model with Onnx, the predictions are the outputs of some previous layer.
For example, I showcased this on a dummy dataset with 3 classes.
See https://colab.research.google.com/drive/19EESqbIDwD5FOI2Ufx22txFZ8qADq2xj?authuser=1#scrollTo=vl6AvQKqtU-9
This differs from the behaviour in the example notebook, where the LogisticRegression head is used.
Any directions would be appreciated; Otherwise, I would happily contribute with an MR if anyone can spot the issue.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.