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

[Time series] Add patchtst #27581

Merged
merged 311 commits into from
Nov 29, 2023
Merged

[Time series] Add patchtst #27581

merged 311 commits into from
Nov 29, 2023

Conversation

kashif
Copy link
Contributor

@kashif kashif commented Nov 18, 2023

What does this PR do?

Adds the patchtst model

re-opened from closed #25927

@namctin
Copy link
Contributor

namctin commented Nov 27, 2023

@amyeroberts All the tests have passed. Can you take a look and merge if there is no other requests? Thank you!

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

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

Thanks for iterating - looking good!

Mostly nits. The main thing to address is adding the generation tests by adding the mixin to the model tester.

src/transformers/models/patchtst/modeling_patchtst.py Outdated Show resolved Hide resolved
src/transformers/models/patchtst/modeling_patchtst.py Outdated Show resolved Hide resolved
tests/models/patchtst/test_modeling_patchtst.py Outdated Show resolved Hide resolved
tests/models/patchtst/test_modeling_patchtst.py Outdated Show resolved Hide resolved
[`~PreTrainedModel.from_pretrained`] method to load the model weights.
"""

PATCHTST_INPUTS_DOCSTRING = r"""
Copy link
Collaborator

Choose a reason for hiding this comment

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

This wasn't resolved

src/transformers/models/patchtst/modeling_patchtst.py Outdated Show resolved Hide resolved
src/transformers/models/patchtst/modeling_patchtst.py Outdated Show resolved Hide resolved
src/transformers/models/patchtst/modeling_patchtst.py Outdated Show resolved Hide resolved
src/transformers/models/patchtst/modeling_patchtst.py Outdated Show resolved Hide resolved
@namctin
Copy link
Contributor

namctin commented Nov 28, 2023

@amyeroberts We have either resolved or commented on all of your requests. Can you please review?

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

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

Thanks for all the work adding this model and iterating in the PR!

@namctin
Copy link
Contributor

namctin commented Nov 28, 2023

Thank you @amyeroberts for your careful review which makes the codes much cleaner.

@kashif kashif merged commit af8acc4 into huggingface:main Nov 29, 2023
23 checks passed
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.

5 participants