-
Notifications
You must be signed in to change notification settings - Fork 811
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
Torcharrow based training using RoBERTa model and SST2 classification dataset #1808
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
examples/torcharrow/README.md
Outdated
|
||
#### TorchData | ||
|
||
To install TorchData follow instructions athttps://github.com/pytorch/data#installation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: add a space after "at"
# Add EOS token to the end of sentence | ||
self.add_eos = T.AddToken(token=2, begin=False) | ||
|
||
def forward(self, input: ta.DataFrame) -> ta.DataFrame: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can probably just to have a standalone preproc
function, similar to https://github.com/pytorch/torchrec/blob/20f543ee3700f2ebb27be6e80d636bd5dd0d7f3c/examples/torcharrow/dataloader.py#L59-L94
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM, thanks for the suggestion @wenleix. Let me do a follow-up PR to do that.
Example end-2-end training for RoBERTa model with TorchArrow based text pre-processing.