Can (bert) classifier models be used? #1245
Unanswered
SerialKicked
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I've been using LLamaSharp as a secondary system from my middleware library (doing embeddings, and stuff like that). And recently, I've been trying to use it for BERT classifier models (like this quantized version) to no avail.
I think upstream know how to deal with classifiers nowadays, but not 100% sure. Anyway, I tried a bunch of things, like:
Using Embeddings (with different pooling types) but nope, I do get a float[768] (embeddings) instead of the float[28] the model should return. That was optimistic i know.
I tried something like that
But nope, it's 30k empty floats.
I'm probably doing a lot wrong, but also maybe it doesn't handle bert-type classifiers? I'm not sure, but any help or guidance would sure be appreciated, because I really, really, don't want to mix and match with ML.NET or worse, use python, just for that.
Cheers.
Beta Was this translation helpful? Give feedback.
All reactions