[Classification of single class model] endpoint not available for a finetuned DebertaV2ForSequenceClassification model #316
Replies: 3 comments
-
means you only have 1 class -> the above config.json is identical to rerankers. Loads reranker. Needs at least two trained classes to work with infinity. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply. So the classification layer is |
Beta Was this translation helpful? Give feedback.
-
Well, your model is a two class classifier, it bases |
Beta Was this translation helpful? Give feedback.
-
System Info
Running
infinity
via docker (michaelf34/infinity:latest
) + using the REST API to call the modelInformation
Tasks
Reproduction
Which gives me:
The model's config looks like:
So it's specified that the model is for classification in the config.
Expected behavior
While the base deberta-v2 doesn't have a classification head, this checkpoint does and I finetuned it for classification.
So I was expecting the
/classify
endpoint to work in this case. Is there anything wrong with the config or is there a way to have Infinity run a deberta-v2 finetuned for sequence classification?Beta Was this translation helpful? Give feedback.
All reactions