chronos-forecasting 2.3.1__tar.gz → 3.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/.github/workflows/eval-model.yml +2 -2
  2. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/PKG-INFO +70 -67
  3. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/README.md +55 -56
  4. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/ci/evaluate/backtest_config.yaml +0 -5
  5. chronos_forecasting-3.0.0/docs/README.md +44 -0
  6. chronos_forecasting-3.0.0/docs/chronos-2/api-pipeline.md +14 -0
  7. chronos_forecasting-3.0.0/docs/chronos-2/deploy-to-aws.ipynb +1 -0
  8. chronos_forecasting-3.0.0/docs/chronos-2/quickstart.ipynb +1 -0
  9. chronos_forecasting-3.0.0/docs/chronos-3/api-pipeline.md +14 -0
  10. chronos_forecasting-3.0.0/docs/chronos-3/api-text.md +17 -0
  11. chronos_forecasting-3.0.0/docs/chronos-3/forecasting-with-text.ipynb +1 -0
  12. chronos_forecasting-3.0.0/docs/chronos-3/quickstart.ipynb +1 -0
  13. chronos_forecasting-3.0.0/docs/hooks.py +42 -0
  14. chronos_forecasting-3.0.0/docs/index.md +32 -0
  15. chronos_forecasting-3.0.0/docs/requirements.txt +5 -0
  16. chronos_forecasting-3.0.0/mkdocs.yml +66 -0
  17. chronos_forecasting-3.0.0/notebooks/chronos-3-quickstart.ipynb +920 -0
  18. chronos_forecasting-3.0.0/notebooks/chronos-3-text.ipynb +386 -0
  19. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/pyproject.toml +12 -13
  20. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/evaluate.py +18 -18
  21. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/training/train.py +1 -3
  22. chronos_forecasting-3.0.0/src/chronos/__about__.py +1 -0
  23. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/src/chronos/__init__.py +4 -0
  24. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/src/chronos/base.py +2 -16
  25. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/src/chronos/chronos2/dataset.py +12 -55
  26. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/src/chronos/chronos2/layers.py +1 -11
  27. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/src/chronos/chronos2/model.py +10 -20
  28. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/src/chronos/chronos2/pipeline.py +31 -20
  29. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/src/chronos/chronos2/preprocess.py +54 -4
  30. chronos_forecasting-3.0.0/src/chronos/chronos3/__init__.py +24 -0
  31. chronos_forecasting-3.0.0/src/chronos/chronos3/aggregation.py +113 -0
  32. chronos_forecasting-3.0.0/src/chronos/chronos3/config.py +144 -0
  33. chronos_forecasting-3.0.0/src/chronos/chronos3/kernels.py +84 -0
  34. chronos_forecasting-3.0.0/src/chronos/chronos3/layers.py +498 -0
  35. chronos_forecasting-3.0.0/src/chronos/chronos3/model.py +761 -0
  36. chronos_forecasting-3.0.0/src/chronos/chronos3/pipeline.py +1144 -0
  37. chronos_forecasting-3.0.0/src/chronos/chronos3/text/__init__.py +29 -0
  38. chronos_forecasting-3.0.0/src/chronos/chronos3/text/_position_rows.py +99 -0
  39. chronos_forecasting-3.0.0/src/chronos/chronos3/text/_prompt.py +605 -0
  40. chronos_forecasting-3.0.0/src/chronos/chronos3/text/_reply.py +489 -0
  41. chronos_forecasting-3.0.0/src/chronos/chronos3/text/bedrock.py +137 -0
  42. chronos_forecasting-3.0.0/src/chronos/chronos3/text/encoding.py +315 -0
  43. chronos_forecasting-3.0.0/src/chronos/chronos3/text/prompts/v1/clauses.json +199 -0
  44. chronos_forecasting-3.0.0/src/chronos/chronos3/text/prompts/v1/system.md +679 -0
  45. chronos_forecasting-3.0.0/src/chronos/chronos3/text/prompts/v1/tool.json +178 -0
  46. chronos_forecasting-3.0.0/src/chronos/chronos3/text/prompts/v1/user.md +17 -0
  47. chronos_forecasting-3.0.0/src/chronos/chronos3/text/translation.py +287 -0
  48. chronos_forecasting-3.0.0/src/chronos/chronos3/text_layers.py +160 -0
  49. chronos_forecasting-3.0.0/src/chronos/chronos3/trend.py +62 -0
  50. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/src/chronos/chronos_bolt.py +20 -42
  51. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/src/chronos/df_utils.py +59 -12
  52. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/test_chronos.py +3 -3
  53. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/test_chronos2.py +37 -3
  54. chronos_forecasting-3.0.0/test/test_chronos3.py +213 -0
  55. chronos_forecasting-3.0.0/test/test_chronos3_pipeline.py +391 -0
  56. chronos_forecasting-3.0.0/test/test_chronos3_text.py +272 -0
  57. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/test_chronos_bolt.py +40 -3
  58. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/test_df_utils.py +54 -0
  59. chronos_forecasting-2.3.1/src/chronos/__about__.py +0 -1
  60. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/.gitattributes +0 -0
  61. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  62. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  63. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/.github/workflows/ci.yml +0 -0
  64. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/.github/workflows/publish-to-pypi.yml +0 -0
  65. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/.gitignore +0 -0
  66. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/CITATION.cff +0 -0
  67. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/CODE_OF_CONDUCT.md +0 -0
  68. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/CONTRIBUTING.md +0 -0
  69. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/LICENSE +0 -0
  70. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/NOTICE +0 -0
  71. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/notebooks/chronos-2-quickstart.ipynb +0 -0
  72. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/notebooks/deploy-chronos-to-amazon-sagemaker.ipynb +0 -0
  73. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/README.md +0 -0
  74. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/agg-relative-score.py +0 -0
  75. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/configs/in-domain.yaml +0 -0
  76. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/configs/zero-shot.yaml +0 -0
  77. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-bolt-base-agg-rel-scores.csv +0 -0
  78. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-bolt-base-in-domain.csv +0 -0
  79. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-bolt-base-zero-shot.csv +0 -0
  80. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-bolt-mini-agg-rel-scores.csv +0 -0
  81. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-bolt-mini-in-domain.csv +0 -0
  82. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-bolt-mini-zero-shot.csv +0 -0
  83. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-bolt-small-agg-rel-scores.csv +0 -0
  84. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-bolt-small-in-domain.csv +0 -0
  85. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-bolt-small-zero-shot.csv +0 -0
  86. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-bolt-tiny-agg-rel-scores.csv +0 -0
  87. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-bolt-tiny-in-domain.csv +0 -0
  88. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-bolt-tiny-zero-shot.csv +0 -0
  89. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-t5-base-agg-rel-scores.csv +0 -0
  90. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-t5-base-in-domain.csv +0 -0
  91. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-t5-base-zero-shot.csv +0 -0
  92. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-t5-large-agg-rel-scores.csv +0 -0
  93. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-t5-large-in-domain.csv +0 -0
  94. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-t5-large-zero-shot.csv +0 -0
  95. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-t5-mini-agg-rel-scores.csv +0 -0
  96. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-t5-mini-in-domain.csv +0 -0
  97. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-t5-mini-zero-shot.csv +0 -0
  98. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-t5-small-agg-rel-scores.csv +0 -0
  99. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-t5-small-in-domain.csv +0 -0
  100. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-t5-small-zero-shot.csv +0 -0
  101. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-t5-tiny-agg-rel-scores.csv +0 -0
  102. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-t5-tiny-in-domain.csv +0 -0
  103. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/chronos-t5-tiny-zero-shot.csv +0 -0
  104. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/seasonal-naive-in-domain.csv +0 -0
  105. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/evaluation/results/seasonal-naive-zero-shot.csv +0 -0
  106. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/kernel-synth.py +0 -0
  107. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/training/configs/chronos-gpt2.yaml +0 -0
  108. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/training/configs/chronos-t5-base.yaml +0 -0
  109. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/training/configs/chronos-t5-large.yaml +0 -0
  110. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/training/configs/chronos-t5-mini.yaml +0 -0
  111. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/training/configs/chronos-t5-small.yaml +0 -0
  112. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/scripts/training/configs/chronos-t5-tiny.yaml +0 -0
  113. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/src/chronos/boto_utils.py +0 -0
  114. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/src/chronos/chronos.py +0 -0
  115. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/src/chronos/chronos2/__init__.py +0 -0
  116. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/src/chronos/chronos2/config.py +0 -0
  117. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/src/chronos/chronos2/trainer.py +0 -0
  118. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/src/chronos/utils.py +0 -0
  119. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/__init__.py +0 -0
  120. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/dummy-chronos-bolt-model/config.json +0 -0
  121. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/dummy-chronos-bolt-model/model.safetensors +0 -0
  122. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/dummy-chronos-model/config.json +0 -0
  123. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/dummy-chronos-model/generation_config.json +0 -0
  124. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/dummy-chronos-model/model.safetensors +0 -0
  125. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/dummy-chronos2-lora/adapter_config.json +0 -0
  126. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/dummy-chronos2-lora/adapter_model.safetensors +0 -0
  127. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/dummy-chronos2-model/config.json +0 -0
  128. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/dummy-chronos2-model/model.safetensors +0 -0
  129. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/test_preprocess.py +0 -0
  130. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/test_utils.py +0 -0
  131. {chronos_forecasting-2.3.1 → chronos_forecasting-3.0.0}/test/util.py +0 -0
@@ -36,13 +36,13 @@ jobs:
36
36
  run: pip install ".[dev]" -f https://download.pytorch.org/whl/cpu/torch_stable.html
37
37
 
38
38
  - name: Run Eval Script for Chronos-2
39
- run: python scripts/evaluation/evaluate.py chronos-2 ci/evaluate/backtest_config.yaml $CHRONOS_2_RESULTS_CSV --model-id=amazon/chronos-2 --device=cpu --torch-dtype=float32
39
+ run: python scripts/evaluation/evaluate.py chronos-2 ci/evaluate/backtest_config.yaml $CHRONOS_2_RESULTS_CSV --model-id=amazon/chronos-2 --device=cpu --dtype=float32
40
40
 
41
41
  - name: Print Chronos-2 CSV
42
42
  run: cat $CHRONOS_2_RESULTS_CSV
43
43
 
44
44
  - name: Run Eval Script for Chronos-Bolt
45
- run: python scripts/evaluation/evaluate.py chronos-bolt ci/evaluate/backtest_config.yaml $CHRONOS_BOLT_RESULTS_CSV --model-id=amazon/chronos-bolt-small --device=cpu --torch-dtype=float32
45
+ run: python scripts/evaluation/evaluate.py chronos-bolt ci/evaluate/backtest_config.yaml $CHRONOS_BOLT_RESULTS_CSV --model-id=amazon/chronos-bolt-small --device=cpu --dtype=float32
46
46
 
47
47
  - name: Print Chronos-Bolt CSV
48
48
  run: cat $CHRONOS_BOLT_RESULTS_CSV
@@ -1,12 +1,12 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: chronos-forecasting
3
- Version: 2.3.1
3
+ Version: 3.0.0
4
4
  Summary: Chronos: Pretrained models for time series forecasting
5
5
  Project-URL: Homepage, https://github.com/amazon-science/chronos-forecasting
6
6
  Project-URL: Issues, https://github.com/amazon-science/chronos-forecasting/issues
7
7
  Project-URL: Chronos-Paper, https://arxiv.org/abs/2403.07815
8
8
  Project-URL: Chronos-2-Paper, https://arxiv.org/abs/2510.15821
9
- Author-email: Abdul Fatir Ansari <ansarnd@amazon.com>, Lorenzo Stella <stellalo@amazon.com>, Caner Turkmen <atturkm@amazon.com>, Oleksandr Shchur <shchuro@amazon.com>, Jaris Küken <kuekenj@amazon.com>, Andreas Auer <auerand@amazon.com>
9
+ Author-email: Abdul Fatir Ansari <ansarnd@amazon.com>, Lorenzo Stella <stellalo@amazon.com>, Caner Turkmen <atturkm@amazon.com>, Oleksandr Shchur <shchuro@amazon.com>, Jaris Küken <kuekenj@amazon.com>, Andreas Auer <auerand@amazon.com>, Moritz Haas <morihaas@amazon.com>, Kevin Zhang <zkc@amazon.com>
10
10
  License:
11
11
  Apache License
12
12
  Version 2.0, January 2004
@@ -189,12 +189,13 @@ Classifier: Operating System :: OS Independent
189
189
  Classifier: Programming Language :: Python :: 3
190
190
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
191
191
  Requires-Python: >=3.10
192
- Requires-Dist: accelerate<2,>=1.1.0
192
+ Requires-Dist: accelerate<2,>=1.3.0
193
193
  Requires-Dist: einops<1,>=0.7.0
194
- Requires-Dist: numpy<3,>=1.21
195
- Requires-Dist: pandas<4,>=2.0
196
- Requires-Dist: torch<3,>=2.2
197
- Requires-Dist: transformers<6,>=4.41
194
+ Requires-Dist: numpy<3,>=2.0
195
+ Requires-Dist: packaging>=20.0
196
+ Requires-Dist: pandas<4,>=2.2.2
197
+ Requires-Dist: torch<3,>=2.7
198
+ Requires-Dist: transformers<6,>=5.0
198
199
  Provides-Extra: dev
199
200
  Requires-Dist: datasets<5,>=3.0; extra == 'dev'
200
201
  Requires-Dist: fev<1,>=0.8.0; extra == 'dev'
@@ -205,15 +206,18 @@ Requires-Dist: tensorboard; extra == 'dev'
205
206
  Requires-Dist: typer; extra == 'dev'
206
207
  Requires-Dist: typer-config; extra == 'dev'
207
208
  Provides-Extra: extras
208
- Requires-Dist: boto3<2,>=1.10; extra == 'extras'
209
+ Requires-Dist: boto3<2,>=1.37.24; extra == 'extras'
209
210
  Requires-Dist: fev<1,>=0.8.0; extra == 'extras'
210
- Requires-Dist: pandas[pyarrow]<4,>=2.0; extra == 'extras'
211
+ Requires-Dist: pandas[pyarrow]<4,>=2.2.2; extra == 'extras'
211
212
  Requires-Dist: peft<1,>=0.18.1; extra == 'extras'
212
213
  Provides-Extra: test
213
- Requires-Dist: boto3<2,>=1.10; extra == 'test'
214
+ Requires-Dist: boto3<2,>=1.37.24; extra == 'test'
214
215
  Requires-Dist: fev<1,>=0.8.0; extra == 'test'
216
+ Requires-Dist: pandas[pyarrow]<4,>=2.2.2; extra == 'test'
215
217
  Requires-Dist: peft<1,>=0.18.1; extra == 'test'
216
218
  Requires-Dist: pytest~=8.0; extra == 'test'
219
+ Provides-Extra: text
220
+ Requires-Dist: boto3<2,>=1.37.24; extra == 'text'
217
221
  Provides-Extra: typecheck
218
222
  Requires-Dist: mypy~=1.9; extra == 'typecheck'
219
223
  Description-Content-Type: text/markdown
@@ -227,7 +231,6 @@ Description-Content-Type: text/markdown
227
231
  [![huggingface](https://img.shields.io/badge/%F0%9F%A4%97%20HF-Datasets-FFD21E)](https://huggingface.co/datasets/autogluon/chronos_datasets)
228
232
  [![huggingface](https://img.shields.io/badge/%F0%9F%A4%97%20HF-Models-FFD21E)](https://huggingface.co/collections/amazon/chronos-models-65f1791d630a8d57cb718444)
229
233
  [![fev](https://img.shields.io/static/v1?label=fev&message=Benchmark&color=B31B1B&logo=github)](https://github.com/autogluon/fev)
230
- [![aws](https://img.shields.io/static/v1?label=SageMaker&message=Deploy&color=FF9900&logo=amazon-web-services)](notebooks/deploy-chronos-to-amazon-sagemaker.ipynb)
231
234
  [![faq](https://img.shields.io/badge/FAQ-Questions%3F-blue)](https://github.com/amazon-science/chronos-forecasting/issues?q=is%3Aissue+label%3AFAQ)
232
235
  [![License: MIT](https://img.shields.io/badge/License-Apache--2.0-green.svg)](https://opensource.org/licenses/Apache-2.0)
233
236
 
@@ -235,22 +238,41 @@ Description-Content-Type: text/markdown
235
238
 
236
239
 
237
240
  ## 🚀 News
238
- - **5 Jun 2026**: ☁️ Deploy Chronos-2 to AWS with [AutoGluon-Cloud](https://github.com/autogluon/autogluon-cloud) — real-time, serverless, or batch inference in 3 lines of code, pandas DataFrames in, forecasts out. See the [new deployment guide](https://auto.gluon.ai/cloud/stable/tutorials/foundation-model-timeseries.html).
239
- - **30 Dec 2025**: 🧠 Deploy Chronos-2 to AWS with Amazon SageMaker JumpStart — production-ready real-time endpoints on CPU or GPU, ready to integrate into your existing AWS workflows. See the [deployment tutorial](notebooks/deploy-chronos-to-amazon-sagemaker.ipynb).
241
+ - **6 Dec 2026**: 🚀 [Chronos-3](https://huggingface.co/amazon/chronos-3-base) released. Beyond support for univariate, multivariate, and covariate-informed forecasting tasks, it can also be _steered with text_. Chronos-3 achieves state-of-the-art performance on fev-bench, GIFT-Eval and TIME. Check out [this notebook](notebooks/chronos-3-quickstart.ipynb) to get started with Chronos-3.
240
242
  - **20 Oct 2025**: 🚀 [Chronos-2](https://huggingface.co/amazon/chronos-2) released. It offers _zero-shot_ support for univariate, multivariate, and covariate-informed forecasting tasks. Chronos-2 achieves the best performance on fev-bench, GIFT-Eval and Chronos Benchmark II amongst pretrained models. Check out [this notebook](notebooks/chronos-2-quickstart.ipynb) to get started with Chronos-2.
241
243
  - **12 Dec 2024**: 📊 We released [`fev`](https://github.com/autogluon/fev), a lightweight package for benchmarking time series forecasting models based on the [Hugging Face `datasets`](https://huggingface.co/docs/datasets/en/index) library.
242
- - **26 Nov 2024**: ⚡️ Chronos-Bolt models released [on HuggingFace](https://huggingface.co/collections/amazon/chronos-models-65f1791d630a8d57cb718444). Chronos-Bolt models are more accurate (5% lower error), up to 250x faster and 20x more memory efficient than the original Chronos models of the same size!
244
+ - **26 Nov 2024**: ⚡️ Chronos-Bolt models released [on Hugging Face](https://huggingface.co/collections/amazon/chronos-models-65f1791d630a8d57cb718444). Chronos-Bolt models are more accurate (5% lower error), up to 250x faster and 20x more memory efficient than the original Chronos models of the same size!
243
245
  - **13 Mar 2024**: 🚀 Chronos [paper](https://arxiv.org/abs/2403.07815) and inference code released.
244
246
 
245
247
  ## ✨ Introduction
246
248
 
247
- This package provides an interface to the Chronos family of **pretrained time series forecasting models**. The following model types are supported.
249
+ This package provides an interface to the Chronos family of **pretrained time series forecasting models**.
248
250
 
249
- - **Chronos-2**: Our latest model with significantly enhanced capabilities. It offers zero-shot support for univariate, multivariate, and covariate-informed forecasting tasks. Chronos-2 delivers state-of-the-art zero-shot performance across multiple benchmarks (including fev-bench and GIFT-Eval), with the largest improvements observed on tasks that include exogenous features. It also achieves a win rate of over 90% against Chronos-Bolt in head-to-head comparisons. To learn more about Chronos, check out the [technical report](https://arxiv.org/abs/2510.15821).
251
+ **Chronos-3** is our latest model and comes in 5 sizes. It supports univariate, multivariate, and covariate-informed forecasting with up to 32K steps of context and produces probabilistic forecasts for 103 quantile levels from 0.001 to 0.999. Forecasts can optionally be _steered with text_ (see [Forecasting with text](#forecasting-with-text)), but Chronos-3 is highly accurate even without it: even the smallest Chronos-3 model is more accurate than Chronos-2, so we recommend Chronos-3 over all of its predecessors.
252
+
253
+ ### Available Models
254
+
255
+ <div align="center">
256
+
257
+ | Model size | Parameters | File size | Recommended for |
258
+ | ---------- | ---------- | ---------- | ---------- |
259
+ | [`chronos-3-tiny`](https://huggingface.co/amazon/chronos-3-tiny) | 25M | 49.5MB | Fastest on CPU; edge devices or strict latency limits |
260
+ | [`chronos-3-mini`](https://huggingface.co/amazon/chronos-3-mini) | 46M | 92.9MB | Edge devices and CPUs with few cores; more accurate than tiny at almost the same cost |
261
+ | [`chronos-3-small`](https://huggingface.co/amazon/chronos-3-small) | 156M | 311MB | CPUs with many cores, or high-throughput inference on GPU |
262
+ | [`chronos-3-base`](https://huggingface.co/amazon/chronos-3-base) | 473M | 947MB | Near-best accuracy at about half the cost of large; requires a GPU |
263
+ | [`chronos-3-large`](https://huggingface.co/amazon/chronos-3-large) | 1.5B | 3.02GB | Best accuracy; requires a GPU |
264
+
265
+ </div>
266
+
267
+ <details>
268
+ <summary><b>Predecessor models (Chronos-2, Chronos-Bolt, Chronos)</b></summary>
269
+
270
+ Beyond Chronos-3, this package supports the entire Chronos family of **pretrained time series forecasting models**. The following predecessor model types are still supported.
271
+
272
+ - **Chronos-2**: Our first model offering zero-shot support for univariate, multivariate, and covariate-informed forecasting tasks. It also achieves a win rate of over 90% against Chronos-Bolt in head-to-head comparisons. To learn more about Chronos, check out the [technical report](https://arxiv.org/abs/2510.15821).
250
273
  - **Chronos-Bolt**: A patch-based variant of Chronos. It chunks the historical time series context into patches of multiple observations, which are then input into the encoder. The decoder then uses these representations to directly generate quantile forecasts across multiple future steps—a method known as direct multi-step forecasting. Chronos-Bolt models are up to 250 times faster and 20 times more memory-efficient than the original Chronos models of the same size. To learn more about Chronos-Bolt, check out this [blog post](https://aws.amazon.com/blogs/machine-learning/fast-and-accurate-zero-shot-forecasting-with-chronos-bolt-and-autogluon/).
251
274
  - **Chronos**: The original Chronos family which is based on language model architectures. A time series is transformed into a sequence of tokens via scaling and quantization, and a language model is trained on these tokens using the cross-entropy loss. Once trained, probabilistic forecasts are obtained by sampling multiple future trajectories given the historical context. To learn more about Chronos, check out the [publication](https://openreview.net/forum?id=gerNCVqqtR).
252
275
 
253
- ### Available Models
254
276
 
255
277
  <div align="center">
256
278
 
@@ -271,29 +293,25 @@ This package provides an interface to the Chronos family of **pretrained time se
271
293
 
272
294
  </div>
273
295
 
296
+ </details>
297
+
274
298
  ## 📈 Usage
275
299
 
276
300
  To perform inference with Chronos, the easiest way is to install this package through `pip`:
277
301
 
278
302
  ```sh
279
- pip install chronos-forecasting
303
+ pip install "chronos-forecasting>=3.0"
280
304
  ```
281
305
 
282
- > [!TIP]
283
- > For production use, we recommend deploying Chronos-2 to Amazon SageMaker. Two options:
284
- > - **[AutoGluon-Cloud](https://auto.gluon.ai/cloud/stable/tutorials/foundation-model-timeseries.html)** (recommended) — high-level Python API. Pandas DataFrames in, forecasts out. Real-time, serverless, and batch inference out of the box.
285
- > - **[SageMaker JumpStart](notebooks/deploy-chronos-to-amazon-sagemaker.ipynb)** — production-ready real-time endpoints on CPU or GPU, ready to integrate into your existing AWS workflows.
286
-
287
-
288
306
  ### Forecasting
289
307
 
290
- A minimal example showing how to perform forecasting using Chronos-2:
308
+ A minimal example showing how to perform forecasting using Chronos-3:
291
309
 
292
310
  ```python
293
311
  import pandas as pd # requires: pip install 'pandas[pyarrow]'
294
- from chronos import Chronos2Pipeline
312
+ from chronos import Chronos3Pipeline
295
313
 
296
- pipeline = Chronos2Pipeline.from_pretrained("amazon/chronos-2", device_map="cuda")
314
+ pipeline = Chronos3Pipeline.from_pretrained("amazon/chronos-3-base", device_map="cuda")
297
315
 
298
316
  # Load historical target values and past values of covariates
299
317
  context_df = pd.read_parquet("https://autogluon.s3.amazonaws.com/datasets/timeseries/electricity_price/train.parquet")
@@ -307,54 +325,45 @@ pred_df = pipeline.predict_df(
307
325
  context_df,
308
326
  future_df=future_df,
309
327
  prediction_length=24, # Number of steps to forecast
310
- quantile_levels=[0.1, 0.5, 0.9], # Quantile for probabilistic forecast
328
+ quantile_levels=[0.001, 0.1, 0.5, 0.9, 0.999], # Quantiles for probabilistic forecast
311
329
  id_column="id", # Column identifying different time series
312
330
  timestamp_column="timestamp", # Column with datetime information
313
331
  target="target", # Column(s) with time series values to predict
314
332
  )
315
333
  ```
316
334
 
317
- We can now visualize the forecast:
335
+ Chronos-3 can also directly forecast the sum, maximum, or minimum of a series over the forecast horizon. For example, to forecast the peak price over the next day:
318
336
 
319
337
  ```python
320
- import matplotlib.pyplot as plt # requires: pip install matplotlib
321
-
322
- ts_context = context_df.set_index("timestamp")["target"].tail(256)
323
- ts_pred = pred_df.set_index("timestamp")
324
- ts_ground_truth = test_df.set_index("timestamp")["target"]
325
-
326
- ts_context.plot(label="historical data", color="xkcd:azure", figsize=(12, 3))
327
- ts_ground_truth.plot(label="future data (ground truth)", color="xkcd:grass green")
328
- ts_pred["predictions"].plot(label="forecast", color="xkcd:violet")
329
- plt.fill_between(
330
- ts_pred.index,
331
- ts_pred["0.1"],
332
- ts_pred["0.9"],
333
- alpha=0.7,
334
- label="prediction interval",
335
- color="xkcd:light lavender",
336
- )
337
- plt.legend()
338
+ peak_df = pipeline.predict_df(context_df, future_df=future_df, prediction_length=24, id_column="id", aggregation="max")
338
339
  ```
339
340
 
340
- ## Example Notebooks
341
+ For a full walkthrough, see the [quick-start notebook](notebooks/chronos-3-quickstart.ipynb).
341
342
 
342
- - [Chronos-2 Quick Start](notebooks/chronos-2-quickstart.ipynb)
343
- &nbsp;
344
- <a href="https://studiolab.sagemaker.aws/import/github/amazon-science/chronos-forecasting/blob/main/notebooks/chronos-2-quickstart.ipynb">
345
- <img src="https://studiolab.sagemaker.aws/studiolab.svg" alt="Open In SageMaker Studio Lab" height="18" align="absmiddle">
346
- </a>
347
- &nbsp;
348
- <a href="https://colab.research.google.com/github/amazon-science/chronos-forecasting/blob/main/notebooks/chronos-2-quickstart.ipynb">
349
- <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab" height="18" align="absmiddle">
350
- </a>
351
- - [Deploy Chronos-2 to AWS with AutoGluon-Cloud](https://auto.gluon.ai/cloud/stable/tutorials/foundation-model-timeseries.html) (recommended)
352
- - [Deploy Chronos-2 to AWS with SageMaker JumpStart](notebooks/deploy-chronos-to-amazon-sagemaker.ipynb)
343
+ ### Forecasting with text
344
+
345
+ Chronos-3 can be steered with a natural language description of upcoming events, in two steps: an LLM translates the text into statements the model reads, then `predict_df` forecasts with them. For example, to forecast the CPU demand of a deployment whose traffic is scheduled to return after a failover (translating calls Claude on Amazon Bedrock and needs `pip install "chronos-forecasting[text]>=3.0"` and AWS credentials):
346
+
347
+ ```python
348
+ from chronos.chronos3.text import BedrockTranslator
349
+
350
+ context_df = pd.read_parquet("https://autogluon.s3.amazonaws.com/chronos-3/examples/failover/context.parquet")
351
+ text = "The traffic that failed over to another region on 2019-01-27 is scheduled to return here at 2019-01-31 12:00, over about 3 hours."
352
+
353
+ translator = BedrockTranslator("us.anthropic.claude-opus-5-5", region_name="us-east-1", context_length=pipeline.model_context_length)
354
+ forecast_texts = translator.translate_df(context_df, text, prediction_length=576)
355
+ pred_df = pipeline.predict_df(context_df, text=forecast_texts, prediction_length=576)
356
+ ```
357
+
358
+ See the [text notebook](notebooks/chronos-3-text.ipynb) for how it works.
353
359
 
354
360
  ## 📝 Citation
355
361
 
356
362
  If you find Chronos models useful for your research, please consider citing the associated papers:
357
363
 
364
+ <details>
365
+ <summary><b>BibTeX</b></summary>
366
+
358
367
  ```
359
368
  @article{ansari2024chronos,
360
369
  title={Chronos: Learning the Language of Time Series},
@@ -374,10 +383,4 @@ If you find Chronos models useful for your research, please consider citing the
374
383
  }
375
384
  ```
376
385
 
377
- ## 🛡️ Security
378
-
379
- See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
380
-
381
- ## 📃 License
382
-
383
- This project is licensed under the Apache-2.0 License.
386
+ </details>
@@ -7,7 +7,6 @@
7
7
  [![huggingface](https://img.shields.io/badge/%F0%9F%A4%97%20HF-Datasets-FFD21E)](https://huggingface.co/datasets/autogluon/chronos_datasets)
8
8
  [![huggingface](https://img.shields.io/badge/%F0%9F%A4%97%20HF-Models-FFD21E)](https://huggingface.co/collections/amazon/chronos-models-65f1791d630a8d57cb718444)
9
9
  [![fev](https://img.shields.io/static/v1?label=fev&message=Benchmark&color=B31B1B&logo=github)](https://github.com/autogluon/fev)
10
- [![aws](https://img.shields.io/static/v1?label=SageMaker&message=Deploy&color=FF9900&logo=amazon-web-services)](notebooks/deploy-chronos-to-amazon-sagemaker.ipynb)
11
10
  [![faq](https://img.shields.io/badge/FAQ-Questions%3F-blue)](https://github.com/amazon-science/chronos-forecasting/issues?q=is%3Aissue+label%3AFAQ)
12
11
  [![License: MIT](https://img.shields.io/badge/License-Apache--2.0-green.svg)](https://opensource.org/licenses/Apache-2.0)
13
12
 
@@ -15,22 +14,41 @@
15
14
 
16
15
 
17
16
  ## 🚀 News
18
- - **5 Jun 2026**: ☁️ Deploy Chronos-2 to AWS with [AutoGluon-Cloud](https://github.com/autogluon/autogluon-cloud) — real-time, serverless, or batch inference in 3 lines of code, pandas DataFrames in, forecasts out. See the [new deployment guide](https://auto.gluon.ai/cloud/stable/tutorials/foundation-model-timeseries.html).
19
- - **30 Dec 2025**: 🧠 Deploy Chronos-2 to AWS with Amazon SageMaker JumpStart — production-ready real-time endpoints on CPU or GPU, ready to integrate into your existing AWS workflows. See the [deployment tutorial](notebooks/deploy-chronos-to-amazon-sagemaker.ipynb).
17
+ - **6 Dec 2026**: 🚀 [Chronos-3](https://huggingface.co/amazon/chronos-3-base) released. Beyond support for univariate, multivariate, and covariate-informed forecasting tasks, it can also be _steered with text_. Chronos-3 achieves state-of-the-art performance on fev-bench, GIFT-Eval and TIME. Check out [this notebook](notebooks/chronos-3-quickstart.ipynb) to get started with Chronos-3.
20
18
  - **20 Oct 2025**: 🚀 [Chronos-2](https://huggingface.co/amazon/chronos-2) released. It offers _zero-shot_ support for univariate, multivariate, and covariate-informed forecasting tasks. Chronos-2 achieves the best performance on fev-bench, GIFT-Eval and Chronos Benchmark II amongst pretrained models. Check out [this notebook](notebooks/chronos-2-quickstart.ipynb) to get started with Chronos-2.
21
19
  - **12 Dec 2024**: 📊 We released [`fev`](https://github.com/autogluon/fev), a lightweight package for benchmarking time series forecasting models based on the [Hugging Face `datasets`](https://huggingface.co/docs/datasets/en/index) library.
22
- - **26 Nov 2024**: ⚡️ Chronos-Bolt models released [on HuggingFace](https://huggingface.co/collections/amazon/chronos-models-65f1791d630a8d57cb718444). Chronos-Bolt models are more accurate (5% lower error), up to 250x faster and 20x more memory efficient than the original Chronos models of the same size!
20
+ - **26 Nov 2024**: ⚡️ Chronos-Bolt models released [on Hugging Face](https://huggingface.co/collections/amazon/chronos-models-65f1791d630a8d57cb718444). Chronos-Bolt models are more accurate (5% lower error), up to 250x faster and 20x more memory efficient than the original Chronos models of the same size!
23
21
  - **13 Mar 2024**: 🚀 Chronos [paper](https://arxiv.org/abs/2403.07815) and inference code released.
24
22
 
25
23
  ## ✨ Introduction
26
24
 
27
- This package provides an interface to the Chronos family of **pretrained time series forecasting models**. The following model types are supported.
25
+ This package provides an interface to the Chronos family of **pretrained time series forecasting models**.
28
26
 
29
- - **Chronos-2**: Our latest model with significantly enhanced capabilities. It offers zero-shot support for univariate, multivariate, and covariate-informed forecasting tasks. Chronos-2 delivers state-of-the-art zero-shot performance across multiple benchmarks (including fev-bench and GIFT-Eval), with the largest improvements observed on tasks that include exogenous features. It also achieves a win rate of over 90% against Chronos-Bolt in head-to-head comparisons. To learn more about Chronos, check out the [technical report](https://arxiv.org/abs/2510.15821).
27
+ **Chronos-3** is our latest model and comes in 5 sizes. It supports univariate, multivariate, and covariate-informed forecasting with up to 32K steps of context and produces probabilistic forecasts for 103 quantile levels from 0.001 to 0.999. Forecasts can optionally be _steered with text_ (see [Forecasting with text](#forecasting-with-text)), but Chronos-3 is highly accurate even without it: even the smallest Chronos-3 model is more accurate than Chronos-2, so we recommend Chronos-3 over all of its predecessors.
28
+
29
+ ### Available Models
30
+
31
+ <div align="center">
32
+
33
+ | Model size | Parameters | File size | Recommended for |
34
+ | ---------- | ---------- | ---------- | ---------- |
35
+ | [`chronos-3-tiny`](https://huggingface.co/amazon/chronos-3-tiny) | 25M | 49.5MB | Fastest on CPU; edge devices or strict latency limits |
36
+ | [`chronos-3-mini`](https://huggingface.co/amazon/chronos-3-mini) | 46M | 92.9MB | Edge devices and CPUs with few cores; more accurate than tiny at almost the same cost |
37
+ | [`chronos-3-small`](https://huggingface.co/amazon/chronos-3-small) | 156M | 311MB | CPUs with many cores, or high-throughput inference on GPU |
38
+ | [`chronos-3-base`](https://huggingface.co/amazon/chronos-3-base) | 473M | 947MB | Near-best accuracy at about half the cost of large; requires a GPU |
39
+ | [`chronos-3-large`](https://huggingface.co/amazon/chronos-3-large) | 1.5B | 3.02GB | Best accuracy; requires a GPU |
40
+
41
+ </div>
42
+
43
+ <details>
44
+ <summary><b>Predecessor models (Chronos-2, Chronos-Bolt, Chronos)</b></summary>
45
+
46
+ Beyond Chronos-3, this package supports the entire Chronos family of **pretrained time series forecasting models**. The following predecessor model types are still supported.
47
+
48
+ - **Chronos-2**: Our first model offering zero-shot support for univariate, multivariate, and covariate-informed forecasting tasks. It also achieves a win rate of over 90% against Chronos-Bolt in head-to-head comparisons. To learn more about Chronos, check out the [technical report](https://arxiv.org/abs/2510.15821).
30
49
  - **Chronos-Bolt**: A patch-based variant of Chronos. It chunks the historical time series context into patches of multiple observations, which are then input into the encoder. The decoder then uses these representations to directly generate quantile forecasts across multiple future steps—a method known as direct multi-step forecasting. Chronos-Bolt models are up to 250 times faster and 20 times more memory-efficient than the original Chronos models of the same size. To learn more about Chronos-Bolt, check out this [blog post](https://aws.amazon.com/blogs/machine-learning/fast-and-accurate-zero-shot-forecasting-with-chronos-bolt-and-autogluon/).
31
50
  - **Chronos**: The original Chronos family which is based on language model architectures. A time series is transformed into a sequence of tokens via scaling and quantization, and a language model is trained on these tokens using the cross-entropy loss. Once trained, probabilistic forecasts are obtained by sampling multiple future trajectories given the historical context. To learn more about Chronos, check out the [publication](https://openreview.net/forum?id=gerNCVqqtR).
32
51
 
33
- ### Available Models
34
52
 
35
53
  <div align="center">
36
54
 
@@ -51,29 +69,25 @@ This package provides an interface to the Chronos family of **pretrained time se
51
69
 
52
70
  </div>
53
71
 
72
+ </details>
73
+
54
74
  ## 📈 Usage
55
75
 
56
76
  To perform inference with Chronos, the easiest way is to install this package through `pip`:
57
77
 
58
78
  ```sh
59
- pip install chronos-forecasting
79
+ pip install "chronos-forecasting>=3.0"
60
80
  ```
61
81
 
62
- > [!TIP]
63
- > For production use, we recommend deploying Chronos-2 to Amazon SageMaker. Two options:
64
- > - **[AutoGluon-Cloud](https://auto.gluon.ai/cloud/stable/tutorials/foundation-model-timeseries.html)** (recommended) — high-level Python API. Pandas DataFrames in, forecasts out. Real-time, serverless, and batch inference out of the box.
65
- > - **[SageMaker JumpStart](notebooks/deploy-chronos-to-amazon-sagemaker.ipynb)** — production-ready real-time endpoints on CPU or GPU, ready to integrate into your existing AWS workflows.
66
-
67
-
68
82
  ### Forecasting
69
83
 
70
- A minimal example showing how to perform forecasting using Chronos-2:
84
+ A minimal example showing how to perform forecasting using Chronos-3:
71
85
 
72
86
  ```python
73
87
  import pandas as pd # requires: pip install 'pandas[pyarrow]'
74
- from chronos import Chronos2Pipeline
88
+ from chronos import Chronos3Pipeline
75
89
 
76
- pipeline = Chronos2Pipeline.from_pretrained("amazon/chronos-2", device_map="cuda")
90
+ pipeline = Chronos3Pipeline.from_pretrained("amazon/chronos-3-base", device_map="cuda")
77
91
 
78
92
  # Load historical target values and past values of covariates
79
93
  context_df = pd.read_parquet("https://autogluon.s3.amazonaws.com/datasets/timeseries/electricity_price/train.parquet")
@@ -87,54 +101,45 @@ pred_df = pipeline.predict_df(
87
101
  context_df,
88
102
  future_df=future_df,
89
103
  prediction_length=24, # Number of steps to forecast
90
- quantile_levels=[0.1, 0.5, 0.9], # Quantile for probabilistic forecast
104
+ quantile_levels=[0.001, 0.1, 0.5, 0.9, 0.999], # Quantiles for probabilistic forecast
91
105
  id_column="id", # Column identifying different time series
92
106
  timestamp_column="timestamp", # Column with datetime information
93
107
  target="target", # Column(s) with time series values to predict
94
108
  )
95
109
  ```
96
110
 
97
- We can now visualize the forecast:
111
+ Chronos-3 can also directly forecast the sum, maximum, or minimum of a series over the forecast horizon. For example, to forecast the peak price over the next day:
98
112
 
99
113
  ```python
100
- import matplotlib.pyplot as plt # requires: pip install matplotlib
101
-
102
- ts_context = context_df.set_index("timestamp")["target"].tail(256)
103
- ts_pred = pred_df.set_index("timestamp")
104
- ts_ground_truth = test_df.set_index("timestamp")["target"]
105
-
106
- ts_context.plot(label="historical data", color="xkcd:azure", figsize=(12, 3))
107
- ts_ground_truth.plot(label="future data (ground truth)", color="xkcd:grass green")
108
- ts_pred["predictions"].plot(label="forecast", color="xkcd:violet")
109
- plt.fill_between(
110
- ts_pred.index,
111
- ts_pred["0.1"],
112
- ts_pred["0.9"],
113
- alpha=0.7,
114
- label="prediction interval",
115
- color="xkcd:light lavender",
116
- )
117
- plt.legend()
114
+ peak_df = pipeline.predict_df(context_df, future_df=future_df, prediction_length=24, id_column="id", aggregation="max")
118
115
  ```
119
116
 
120
- ## Example Notebooks
117
+ For a full walkthrough, see the [quick-start notebook](notebooks/chronos-3-quickstart.ipynb).
121
118
 
122
- - [Chronos-2 Quick Start](notebooks/chronos-2-quickstart.ipynb)
123
- &nbsp;
124
- <a href="https://studiolab.sagemaker.aws/import/github/amazon-science/chronos-forecasting/blob/main/notebooks/chronos-2-quickstart.ipynb">
125
- <img src="https://studiolab.sagemaker.aws/studiolab.svg" alt="Open In SageMaker Studio Lab" height="18" align="absmiddle">
126
- </a>
127
- &nbsp;
128
- <a href="https://colab.research.google.com/github/amazon-science/chronos-forecasting/blob/main/notebooks/chronos-2-quickstart.ipynb">
129
- <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab" height="18" align="absmiddle">
130
- </a>
131
- - [Deploy Chronos-2 to AWS with AutoGluon-Cloud](https://auto.gluon.ai/cloud/stable/tutorials/foundation-model-timeseries.html) (recommended)
132
- - [Deploy Chronos-2 to AWS with SageMaker JumpStart](notebooks/deploy-chronos-to-amazon-sagemaker.ipynb)
119
+ ### Forecasting with text
120
+
121
+ Chronos-3 can be steered with a natural language description of upcoming events, in two steps: an LLM translates the text into statements the model reads, then `predict_df` forecasts with them. For example, to forecast the CPU demand of a deployment whose traffic is scheduled to return after a failover (translating calls Claude on Amazon Bedrock and needs `pip install "chronos-forecasting[text]>=3.0"` and AWS credentials):
122
+
123
+ ```python
124
+ from chronos.chronos3.text import BedrockTranslator
125
+
126
+ context_df = pd.read_parquet("https://autogluon.s3.amazonaws.com/chronos-3/examples/failover/context.parquet")
127
+ text = "The traffic that failed over to another region on 2019-01-27 is scheduled to return here at 2019-01-31 12:00, over about 3 hours."
128
+
129
+ translator = BedrockTranslator("us.anthropic.claude-opus-5-5", region_name="us-east-1", context_length=pipeline.model_context_length)
130
+ forecast_texts = translator.translate_df(context_df, text, prediction_length=576)
131
+ pred_df = pipeline.predict_df(context_df, text=forecast_texts, prediction_length=576)
132
+ ```
133
+
134
+ See the [text notebook](notebooks/chronos-3-text.ipynb) for how it works.
133
135
 
134
136
  ## 📝 Citation
135
137
 
136
138
  If you find Chronos models useful for your research, please consider citing the associated papers:
137
139
 
140
+ <details>
141
+ <summary><b>BibTeX</b></summary>
142
+
138
143
  ```
139
144
  @article{ansari2024chronos,
140
145
  title={Chronos: Learning the Language of Time Series},
@@ -154,10 +159,4 @@ If you find Chronos models useful for your research, please consider citing the
154
159
  }
155
160
  ```
156
161
 
157
- ## 🛡️ Security
158
-
159
- See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
160
-
161
- ## 📃 License
162
-
163
- This project is licensed under the Apache-2.0 License.
162
+ </details>
@@ -5,11 +5,6 @@
5
5
  prediction_length: 48
6
6
  num_rolls: 1
7
7
  # From Zero-shot
8
- - name: ETTh # Hourly
9
- hf_repo: autogluon/chronos_datasets_extra
10
- offset: -24
11
- prediction_length: 24
12
- num_rolls: 1
13
8
  - name: monash_covid_deaths # Daily
14
9
  hf_repo: autogluon/chronos_datasets
15
10
  offset: -30
@@ -0,0 +1,44 @@
1
+ # Documentation
2
+
3
+ The docs are built with [MkDocs](https://www.mkdocs.org/) (Material theme) and versioned with
4
+ [mike](https://github.com/jimporter/mike). Config lives in `mkdocs.yml`; doc dependencies are in
5
+ `docs/requirements.txt`.
6
+
7
+ There is no CI deployment yet; the site is deployed manually for stable releases.
8
+
9
+ `mkdocstrings` reads the API docs from `src/` without importing `chronos`, so the commands below
10
+ don't install the project (or torch). Run them from the repo root.
11
+
12
+ ## Preview locally
13
+
14
+ ```bash
15
+ uv run -p 3.11 --no-project --with-requirements docs/requirements.txt mkdocs serve
16
+ ```
17
+
18
+ Opens a live-reloading preview at http://127.0.0.1:8000.
19
+
20
+ ## Build only (no deploy)
21
+
22
+ ```bash
23
+ uv run -p 3.11 --no-project --with-requirements docs/requirements.txt mkdocs build --strict
24
+ ```
25
+
26
+ Outputs the static site to `site/`.
27
+
28
+ ## Deploy manually
29
+
30
+ `mike` commits the built site to the `gh-pages` branch. Check out the release tag first, then replace
31
+ `X.Y.Z` with the released version (matching the `vX.Y.Z` tag); this also moves the `latest` alias:
32
+
33
+ ```bash
34
+ git checkout vX.Y.Z
35
+ uv run -p 3.11 --no-project --with-requirements docs/requirements.txt mike deploy --push --update-aliases X.Y.Z latest
36
+ ```
37
+
38
+ On the first deploy, also make the site root redirect to `latest`:
39
+
40
+ ```bash
41
+ uv run -p 3.11 --no-project --with-requirements docs/requirements.txt mike set-default --push latest
42
+ ```
43
+
44
+ Then enable GitHub Pages from the `gh-pages` branch in the repo settings.
@@ -0,0 +1,14 @@
1
+ # Chronos2Pipeline
2
+
3
+ ::: chronos.Chronos2Pipeline
4
+ options:
5
+ show_root_heading: false
6
+ members:
7
+ - "from_pretrained"
8
+ - "predict_df"
9
+ - "predict"
10
+ - "predict_quantiles"
11
+ - "predict_fev"
12
+ - "embed"
13
+ - "fit"
14
+ - "save_pretrained"
@@ -0,0 +1 @@
1
+ ../../notebooks/deploy-chronos-to-amazon-sagemaker.ipynb
@@ -0,0 +1 @@
1
+ ../../notebooks/chronos-2-quickstart.ipynb
@@ -0,0 +1,14 @@
1
+ # Chronos3Pipeline
2
+
3
+ ::: chronos.Chronos3Pipeline
4
+ options:
5
+ show_root_heading: false
6
+ members:
7
+ - "from_pretrained"
8
+ - "predict_df"
9
+ - "predict"
10
+ - "predict_quantiles"
11
+ - "predict_fev"
12
+ - "embed"
13
+ - "compile"
14
+ - "save_pretrained"
@@ -0,0 +1,17 @@
1
+ # Text translation
2
+
3
+ ::: chronos.chronos3.BedrockTranslator
4
+ options:
5
+ members: false
6
+
7
+ ::: chronos.chronos3.Translator
8
+ options:
9
+ members:
10
+ - "translate_df"
11
+
12
+ ::: chronos.chronos3.ForecastTexts
13
+ options:
14
+ members:
15
+ - "save"
16
+ - "load"
17
+ - "check_window"
@@ -0,0 +1 @@
1
+ ../../notebooks/chronos-3-text.ipynb
@@ -0,0 +1 @@
1
+ ../../notebooks/chronos-3-quickstart.ipynb
@@ -0,0 +1,42 @@
1
+ """MkDocs hooks.
2
+
3
+ Docs pages for notebooks are symlinks into ``notebooks/`` with different names
4
+ (e.g. ``chronos-3/quickstart.ipynb -> notebooks/chronos-3-quickstart.ipynb``).
5
+ Notebooks link to each other by their ``notebooks/`` file names so the links
6
+ work on GitHub. This hook rewrites those links to the corresponding docs pages,
7
+ and links to notebooks that are not part of the site to GitHub.
8
+ """
9
+
10
+ import os
11
+ import re
12
+
13
+ GITHUB_NOTEBOOKS_URL = "https://github.com/amazon-science/chronos-forecasting/blob/main/notebooks/"
14
+
15
+ # href="name.ipynb" or href="name.ipynb#anchor", relative file names only
16
+ _NOTEBOOK_HREF = re.compile(r'href="([\w.-]+\.ipynb)(#[^"]*)?"')
17
+
18
+ _pages_by_notebook = {}
19
+
20
+
21
+ def on_files(files, config):
22
+ _pages_by_notebook.clear()
23
+ for file in files:
24
+ if file.src_uri.endswith(".ipynb") and file.abs_src_path and os.path.islink(file.abs_src_path):
25
+ _pages_by_notebook[os.path.basename(os.path.realpath(file.abs_src_path))] = file
26
+ return files
27
+
28
+
29
+ def on_page_content(html, page, config, files):
30
+ if not page.file.src_uri.endswith(".ipynb"):
31
+ return html
32
+
33
+ def replace(match):
34
+ name, anchor = match.group(1), match.group(2) or ""
35
+ target = _pages_by_notebook.get(name)
36
+ if target is not None:
37
+ url = target.url_relative_to(page.file)
38
+ else:
39
+ url = GITHUB_NOTEBOOKS_URL + name
40
+ return f'href="{url}{anchor}"'
41
+
42
+ return _NOTEBOOK_HREF.sub(replace, html)