You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.
Furthermore, it'd be helpful if the vocab could be generated on demand during training time. This means that we'd need to create a related embedding table that would grow during training time, as need be.
With such a system, we wouldn't need to initially load and tokenize the data.
In order to accomplish this, either the Embedding or the TokenEnum would need to also handle updating the optimizer and any related object that depends on model parameters.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The
Encoder
is unnecessarily complex:Encoder
implementation is coupled with special tokensbatch_encoding
isn't helpfulWe could break up the
Encoder
into aTokenizer
,TokenEnum
, andtorch.tensor
.For example:
Notes:
The text was updated successfully, but these errors were encountered: