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
This config needs to be the same as it is in training, so it needs to be part of what gets exported when saving the model. The most straightforward approach would be to incorporate it into CnlpConfig as an optional dict attribute.
The text was updated successfully, but these errors were encountered:
The ideal invocation is as above; as a workaround with the current implementation, we can manually construct and pass in a HierarchicalTransformerConfig object with the same parameters as the model (which we will just have to know):
Since HierarchicalModel uses a separate config class for its encoder heads, it does not play nice with
AutoModel.from_pretrained
.This config needs to be the same as it is in training, so it needs to be part of what gets exported when saving the model. The most straightforward approach would be to incorporate it into
CnlpConfig
as an optional dict attribute.The text was updated successfully, but these errors were encountered: