-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
[Model request] Facebook/BlenderBot for text-generation #37
Comments
Hi! As stated in a similar issue from 2 days ago (#29) I haven't yet implemented BlenderBot (no listed support in the README or on the demo website). I just uploaded the files since I plan to add it (which, I probably shouldn't have done haha). However, I do plan to add support for it in the next few days! It will need a way to keep track of conversations, but I will look to HF's implementation for inspiration :) (The error message you got is because I haven't uploaded the tokenizer yet ;) ) |
Thank you so much!!! |
I believe that the Blenderbot model keeps track of a conversation using certain tokens to tell when a speaker stops and starts talking, like this: |
Thanks @zap8600! I've seen similar examples for blenderbot, but the documentation for blenderbot small does not seem to be as clear. I raised an issue (huggingface/transformers#22301), but it looks like it's been hidden already by other issues. If possible, do you think you could look into how blenderbot small handles it? (Which is apparently different to normal blenderbot) |
I've look at the Transformers doc (which is where I based my code on) and it appears to be the same way. |
Right, but if you look at the vocabulary of the model, |
My bad. I've taken a look at the vocabulary file, and the tokens appear to be |
Well, I'll test it once I implement it 😄 One thing I find strange is that there isn't a way to say who is speaking? Is it just assumed by the alternating order of conversations? |
No need to test it. It does seem to work. My code has been uploaded to my repo, and you can find it here. |
Yay! |
A little late since it wasn't as simple as some of the other models (combined with the fact that the python tokenizer is broken), but it's here now! 🤗 I'll make a release soon, so you'll be able to test it. |
Thank you! I hope my testing code helped some! |
It did! Thanks 🤗 |
Np! I can't wait to use the BlenderBot model! |
Hello,
This project is really cool. I was wondering if it's possible to use the BlenderBot model.
My current code gives me an error:
I saw that this was added in your Hugging Face repository, but I was wondering what the correct way to implement this is.
Thank you!
The text was updated successfully, but these errors were encountered: