-
Hi, quick question, does the API assume the inputs are always tokens or can one give a set of vector inputs like in the torch transformer's encoder decoder modules? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
ok I figured it out I believe, I can just set the |
Beta Was this translation helpful? Give feedback.
-
oh sorry, I just saw this too late. You figured it out, there's not specific assumption, it all depends on the build blocks being present. If you're not passing tokens then probably that you would add sine encodings though ? In any case feel free to compose models the way you want, the construction with a config presented in the examples is just that, an example, I think that it can be useful for something like architecture search but maybe not for all usages. Thanks for the question @kashif ! |
Beta Was this translation helpful? Give feedback.
ok I figured it out I believe, I can just set the
position_encoding_config
toNone