Merge pull request #227 from google-research/rajat_dev
Revising messages during import
This commit is contained in:
@@ -23,7 +23,7 @@ jobs:
|
|||||||
# e.g. poetry version 0.1.${{ github.run_number }}
|
# e.g. poetry version 0.1.${{ github.run_number }}
|
||||||
- name: Set Version number
|
- name: Set Version number
|
||||||
run: |
|
run: |
|
||||||
poetry version 1.2.7
|
poetry version 1.2.8
|
||||||
- name: Build and Publish to PyPI
|
- name: Build and Publish to PyPI
|
||||||
run: |
|
run: |
|
||||||
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
|
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
name = "timesfm"
|
name = "timesfm"
|
||||||
packages = [{ include = "timesfm", from = "src" }]
|
packages = [{ include = "timesfm", from = "src" }]
|
||||||
description = "Open weights time-series foundation model from Google Research."
|
description = "Open weights time-series foundation model from Google Research."
|
||||||
version = "1.2.7"
|
version = "1.2.8"
|
||||||
authors = [
|
authors = [
|
||||||
"Rajat Sen <senrajat@google.com>",
|
"Rajat Sen <senrajat@google.com>",
|
||||||
"Yichen Zhou <yichenzhou@google.com>",
|
"Yichen Zhou <yichenzhou@google.com>",
|
||||||
|
|||||||
+14
-4
@@ -12,14 +12,24 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
"""TimesFM init file."""
|
"""TimesFM init file."""
|
||||||
|
|
||||||
print(
|
print(
|
||||||
"TimesFM v1.2.0. See https://github.com/google-research/timesfm/blob/master/README.md for updated APIs."
|
" See https://github.com/google-research/timesfm/blob/master/README.md for updated APIs."
|
||||||
)
|
)
|
||||||
from timesfm.timesfm_base import freq_map, TimesFmCheckpoint, TimesFmHparams, TimesFmBase
|
from timesfm.timesfm_base import (
|
||||||
|
freq_map,
|
||||||
|
TimesFmCheckpoint,
|
||||||
|
TimesFmHparams,
|
||||||
|
TimesFmBase,
|
||||||
|
)
|
||||||
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
print("Loaded Jax TimesFM.")
|
|
||||||
from timesfm.timesfm_jax import TimesFmJax as TimesFm
|
from timesfm.timesfm_jax import TimesFmJax as TimesFm
|
||||||
from timesfm import data_loader
|
from timesfm import data_loader
|
||||||
|
|
||||||
|
print(f"Loaded Jax TimesFM, likely because python version is {sys.version}.")
|
||||||
except Exception as _:
|
except Exception as _:
|
||||||
print("Loaded PyTorch TimesFM.")
|
|
||||||
from timesfm.timesfm_torch import TimesFmTorch as TimesFm
|
from timesfm.timesfm_torch import TimesFmTorch as TimesFm
|
||||||
|
|
||||||
|
print(f"Loaded PyTorch TimesFM, likely because python version is {sys.version}.")
|
||||||
|
|||||||
Reference in New Issue
Block a user