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

Full pytorch support #145

Merged
merged 5 commits into from
Sep 13, 2024
Merged

Full pytorch support #145

merged 5 commits into from
Sep 13, 2024

Conversation

rajatsen91
Copy link
Collaborator

No description provided.

@rajatsen91 rajatsen91 requested a review from siriuz42 September 12, 2024 23:31
"""TimesFM init file."""

from .timesfm import TimesFm, freq_map
Copy link
Collaborator

Choose a reason for hiding this comment

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

I was wondering if we should print / log the API change here, just in case people forget to check the new README.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh thats a good idea. What should be log here ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

What about

print("TimesFM v1.2.0. See https://github.com/google-research/timesfm/blob/master/README.md for updated APIs.")

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done, will leave the version upload to you.

"""TimesFM init file."""

from .timesfm import TimesFm, freq_map
from timesfm.timesfm_base import freq_map, TimesFmCheckpoint, TimesFmHparams, TimesFmBase
try:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am thinking what if one has both jax and torch version installed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think in that case the JAX version will be initialized as TimesFM.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sg. Let's add
print("Loaded Jax TimesFM.")
and
print("Loaded PyTorch TimesFM.")
after the imports respectively.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@siriuz42
Copy link
Collaborator

LGTM.

@rajatsen91 rajatsen91 merged commit d065f8c into master Sep 13, 2024
1 of 2 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.

2 participants