forked from SalesforceAIResearch/uni2ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
1,060 additions
and
626 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Please provide a code snippet of a minimal reproducible example for the error. | ||
```python | ||
put code here | ||
``` | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Error message or code output** | ||
Paste the complete error message, including stack trace, or the undesired output that the above snippet produces. | ||
```shell | ||
put error or undesired output here | ||
``` | ||
|
||
**Environment** | ||
* Operating system: | ||
* Python version: | ||
* PyTorch version: | ||
* uni2ts version (have you pulled the latest version?) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Questions and Discussions | ||
url: https://github.com/SalesforceAIResearch/uni2ts/discussions | ||
about: Use GitHub Discussions to ask and answer questions, exchange ideas, and share learning. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
black: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: psf/black@stable | ||
with: | ||
options: "--check --verbose --line-length 88" | ||
jupyter: true | ||
isort: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: isort/isort-action@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e '.[dev,notebook]' | ||
- name: Test with pytest | ||
run: | | ||
pytest test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
cff-version: 1.2.0 | ||
title: Unified Training of Universal Time Series Forecasting Transformers | ||
message: If you find Chronos models useful for your research, please consider citing the associated paper. | ||
authors: | ||
- family-names: Woo | ||
given-names: Gerald | ||
- family-names: Liu | ||
given-names: Chenghao | ||
- family-names: Kumar | ||
given-names: Akshat | ||
- family-names: Xiong | ||
given-names: Caiming | ||
- family-names: Savarese | ||
given-names: Silvio | ||
- family-names: Sahoo | ||
given-names: Doyen | ||
preferred-citation: | ||
type: conference-paper | ||
authors: | ||
- family-names: Woo | ||
given-names: Gerald | ||
- family-names: Liu | ||
given-names: Chenghao | ||
- family-names: Kumar | ||
given-names: Akshat | ||
- family-names: Xiong | ||
given-names: Caiming | ||
- family-names: Savarese | ||
given-names: Silvio | ||
- family-names: Sahoo | ||
given-names: Doyen | ||
title: Unified Training of Universal Time Series Forecasting Transformers | ||
year: 2024 | ||
collection-title: Proceedings of the 41st International Conference on Machine Learning | ||
conference: | ||
name: International Conference on Machine Learning (ICML) | ||
city: Vienna | ||
country: Austria |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
_target_: uni2ts.model.moirai.MoiraiForecast.load_from_checkpoint | ||
#checkpoint_path: | ||
# _target_: huggingface_hub.hf_hub_download | ||
# repo_id: Salesforce/moirai-1.0-R-base | ||
# filename: model.ckpt | ||
|
||
checkpoint_path: /home/eee/qzz/uni2ts/outputs/finetune/moirai_1.0_R_base/etth1/my_lsf_run/checkpoints/epoch=19-step=200.ckpt | ||
checkpoint_path: | ||
_target_: huggingface_hub.hf_hub_download | ||
repo_id: Salesforce/moirai-1.0-R-base | ||
filename: model.ckpt | ||
num_samples: 100 | ||
patch_size: ??? | ||
context_length: ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
_target_: uni2ts.model.moirai.MoiraiForecast.load_from_checkpoint | ||
checkpoint_path: | ||
_target_: huggingface_hub.hf_hub_download | ||
repo_id: Salesforce/moirai-1.0-R-large | ||
filename: model.ckpt | ||
_target_: uni2ts.model.moirai.MoiraiForecast | ||
module: | ||
_target_: uni2ts.model.moirai.MoiraiModule.from_pretrained | ||
pretrained_model_name_or_path: Salesforce/moirai-1.0-R-large | ||
num_samples: 100 | ||
patch_size: ??? | ||
context_length: ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
_target_: uni2ts.model.moirai.MoiraiForecast.load_from_checkpoint | ||
#checkpoint_path: | ||
# _target_: huggingface_hub.hf_hub_download | ||
# repo_id: Salesforce/moirai-1.0-R-small | ||
# filename: model.ckpt | ||
checkpoint_path: /home/eee/qzz/uni2ts/outputs/finetune/moirai_1.0_R_small/ettm1/my_lsf_run/checkpoints/epoch=0-step=5-v2.ckpt | ||
checkpoint_path: | ||
_target_: huggingface_hub.hf_hub_download | ||
repo_id: Salesforce/moirai-1.0-R-small | ||
filename: model.ckpt | ||
num_samples: 100 | ||
patch_size: ??? | ||
context_length: ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# load a pytorch lightning checkpoint | ||
_target_: uni2ts.model.moirai.MoiraiFinetune.load_from_checkpoint | ||
module_kwargs: | ||
_target_: builtins.dict | ||
distr_output: | ||
_target_: uni2ts.distribution.MixtureOutput | ||
components: | ||
- _target_: uni2ts.distribution.StudentTOutput | ||
- _target_: uni2ts.distribution.NormalFixedScaleOutput | ||
- _target_: uni2ts.distribution.NegativeBinomialOutput | ||
- _target_: uni2ts.distribution.LogNormalOutput | ||
d_model: 768 | ||
num_layers: 12 | ||
patch_sizes: ${as_tuple:[8, 16, 32, 64, 128]} | ||
max_seq_len: 512 | ||
attn_dropout_p: 0.0 | ||
dropout_p: 0.0 | ||
scaling: true | ||
min_patches: 2 | ||
min_mask_ratio: 0.15 | ||
max_mask_ratio: 0.5 | ||
max_dim: 128 | ||
loss_func: | ||
_target_: uni2ts.loss.packed.PackedNLLLoss | ||
lr: 1e-3 | ||
weight_decay: 1e-1 | ||
beta1: 0.9 | ||
beta2: 0.98 | ||
num_training_steps: ${mul:${trainer.max_epochs},${train_dataloader.num_batches_per_epoch}} | ||
num_warmup_steps: 0 | ||
checkpoint_path: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# load a pytorch lightning checkpoint | ||
_target_: uni2ts.model.moirai.MoiraiFinetune.load_from_checkpoint | ||
module_kwargs: | ||
_target_: builtins.dict | ||
distr_output: | ||
_target_: uni2ts.distribution.MixtureOutput | ||
components: | ||
- _target_: uni2ts.distribution.StudentTOutput | ||
- _target_: uni2ts.distribution.NormalFixedScaleOutput | ||
- _target_: uni2ts.distribution.NegativeBinomialOutput | ||
- _target_: uni2ts.distribution.LogNormalOutput | ||
d_model: 1024 | ||
num_layers: 24 | ||
patch_sizes: ${as_tuple:[8, 16, 32, 64, 128]} | ||
max_seq_len: 512 | ||
attn_dropout_p: 0.0 | ||
dropout_p: 0.0 | ||
scaling: true | ||
min_patches: 2 | ||
min_mask_ratio: 0.15 | ||
max_mask_ratio: 0.5 | ||
max_dim: 128 | ||
loss_func: | ||
_target_: uni2ts.loss.packed.PackedNLLLoss | ||
lr: 1e-3 | ||
weight_decay: 1e-1 | ||
beta1: 0.9 | ||
beta2: 0.98 | ||
num_training_steps: ${mul:${trainer.max_epochs},${train_dataloader.num_batches_per_epoch}} | ||
num_warmup_steps: 0 | ||
checkpoint_path: ... |
Oops, something went wrong.