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

adding decoder trainer #53

Merged
merged 65 commits into from
May 13, 2023
Merged

adding decoder trainer #53

merged 65 commits into from
May 13, 2023

Conversation

zhaochenyang20
Copy link
Collaborator

@zhaochenyang20 zhaochenyang20 commented May 10, 2023

Description

All the Seq2Seq models are appropriate for our project, thus I added decoder-only (text-generation) model in our Trainer with new unit tests.

References

Blocked by

Copy link
Collaborator

@viswavi viswavi left a comment

Choose a reason for hiding this comment

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

I think we can deduplicate some code between T5 and GPT trainers, since a lot of these are shared. Can we write a common parent class that we can specialize into these two?

prompt2model/model_trainer/GPT.py Outdated Show resolved Hide resolved
tests/model_trainer_test.py Outdated Show resolved Hide resolved
prompt2model/model_trainer/GPT.py Outdated Show resolved Hide resolved
prompt2model/model_trainer/GPT.py Outdated Show resolved Hide resolved
prompt2model/model_trainer/GPT.py Outdated Show resolved Hide resolved
prompt2model/model_trainer/GPT.py Outdated Show resolved Hide resolved
prompt2model/model_trainer/GPT.py Outdated Show resolved Hide resolved
@zhaochenyang20 zhaochenyang20 changed the base branch from Eren_Trainer to main May 11, 2023 07:04
Copy link
Collaborator

@viswavi viswavi left a comment

Choose a reason for hiding this comment

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

Things are looking good! My suggested changes were all concerning:

  1. breaking up a test case
  2. renaming a class
  3. fixing comments/docstrings.

Otherwise should be able to merge soon!

prompt2model/model_trainer/base.py Outdated Show resolved Hide resolved
prompt2model/model_trainer/base.py Outdated Show resolved Hide resolved
prompt2model/model_trainer/base.py Outdated Show resolved Hide resolved
prompt2model/model_trainer/base.py Outdated Show resolved Hide resolved
prompt2model/model_trainer/base.py Outdated Show resolved Hide resolved
prompt2model/model_trainer/base.py Outdated Show resolved Hide resolved
tests/model_trainer_test.py Outdated Show resolved Hide resolved
tests/model_trainer_test.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@viswavi viswavi left a comment

Choose a reason for hiding this comment

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

LGTM

@zhaochenyang20 zhaochenyang20 merged commit 67135d6 into main May 13, 2023
@zhaochenyang20 zhaochenyang20 deleted the Eren_decoder_trainer branch May 13, 2023 00:42
@zhaochenyang20 zhaochenyang20 mentioned this pull request May 13, 2023
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants