Skip to content
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

Merged
merged 12 commits into from
Jul 21, 2022

Conversation

parmeet
Copy link
Contributor

@parmeet parmeet commented Jun 24, 2022

Example end-2-end training for RoBERTa model with TorchArrow based text pre-processing.

@parmeet parmeet marked this pull request as ready for review July 20, 2022 13:42
@parmeet parmeet requested review from Nayef211 and wenleix July 21, 2022 14:41
Copy link
Contributor

@Nayef211 Nayef211 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


#### TorchData

To install TorchData follow instructions athttps://github.com/pytorch/data#installation
Copy link
Contributor

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"

@parmeet parmeet merged commit 4fb43aa into pytorch:main Jul 21, 2022
@parmeet parmeet deleted the torcharrow_training branch July 21, 2022 18:31
# 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:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants