Open Aryavir07 opened 1 year ago
Did you resolve this issue? No need to close this if not. I assume others may encounter this issue, too.
Did you resolve this issue? No need to close this if not. I assume others may encounter this issue, too. Reopening it.
The new v0.6.0 does introduce this new value. It's a bit unfortunate that this may mean that SetFit v0.5.0 can't easily be loaded on v0.6.0 onwards, especially as we introduce further changes from v0.5.0. I'm not quite sure how best to tackle this.
Therefore, one should only load the model on version 0.5.0 if one's model was trained on version 0.5.0; otherwise, it will encounter this error.
This also applies to the model's conversion to ONNX format, where the SetFit version difference results in the error "AttributeError: 'SetFitHead' object has no attribute 'eps'
".
@tomaarsen
Above, "custom_model" is the "sentence-transformers/all-mpnet-base-v2" trained on the same hyperparameters and SetFit release version v0.5.0.
The problem was resolved once I installed SetFit v0.5.0, but it persists in SetFit v0.6.0.