-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Computing Embeddings from Transformer? #20
Comments
Hi @nickbhat there's a function intended for this:
However, looks like the It would be a simple fix here:
Btw, this way we can only get the embeddings, if you also wanted the attention weights, that would require some changes to |
I'll take a look at this and submit a PR! Always happy to contribute :) I'll get around to it in a couple of weeks, if that's okay. |
Fixed by #21 Example usage:
|
Hello,
Is there any ability to create an API for producing embeddings from input sequences? Users could implement this themselves if #19 turns out to be true. If not, perhaps an embedding API could be exposed without having to make weights publicly available?
Thanks!
The text was updated successfully, but these errors were encountered: