Skip to content

Commit

Permalink
Merge branch 'main' into new_model_integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
wgifford committed Jan 6, 2025
2 parents a6f8175 + f51b65e commit 46b8645
Show file tree
Hide file tree
Showing 42 changed files with 1,578 additions and 18,154 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"python.testing.pytestArgs": [
"tests",
"services/inference"
"services"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ data_root_path=$1
for cl in 512; do
for fl in 96 192 336 720; do
python ../ttm_full_benchmarking.py --context_length $cl --forecast_length $fl --num_epochs 50 --num_workers 16 \
--hf_model_path ibm/ttm-research-r2 \
--hf_model_path ibm-research/ttm-research-r2 \
--data_root_path $data_root_path \
--fewshot 0 \
--plot 0 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ for cl in 512 1024 1536; do
for fl in 96 192 336 720; do
python ttm_full_benchmarking.py --context_length $cl --forecast_length $fl \
--num_epochs 50 --num_workers 16 --enable_prefix_tuning 1 \
--hf_model_path ibm/ttm-research-r2 \
--hf_model_path ibm-research/ttm-research-r2 \
--data_root_path $data_root_path \
--save_dir results-research-use-r2/
done;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# TTM models for Only Research and Academic (Non-Commercial) Use are here: https://huggingface.co/ibm/ttm-research-r2\n",
"# Please provide the branch name properly based on context_len and forecast_len\n",
"\n",
"hf_model_path = \"ibm/ttm-research-r2\"\n",
"hf_model_path = \"ibm-research/ttm-research-r2\"\n",
"if context_length == 512:\n",
" hf_model_branch = \"main\"\n",
"elif context_length == 1024 or context_length == 1536:\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# TTM models for Only Research and Academic (Non-Commercial) Use are here: https://huggingface.co/ibm/ttm-research-r2\n",
"# TTM models for Only Research and Academic (Non-Commercial) Use are here: https://huggingface.co/ibm-research/ttm-research-r2\n",
"# Please provide the branch name properly based on context_len and forecast_len\n",
"\n",
"hf_model_path = \"ibm/ttm-research-r2\"\n",
"hf_model_path = \"ibm-research/ttm-research-r2\"\n",
"if context_length == 512:\n",
" hf_model_branch = \"main\"\n",
"elif context_length == 1024 or context_length == 1536:\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# TTM models for Only Research and Academic (Non-Commercial) Use are here: https://huggingface.co/ibm/ttm-research-r2\n",
"# TTM models for Only Research and Academic (Non-Commercial) Use are here: https://huggingface.co/ibm-research/ttm-research-r2\n",
"# Please provide the branch name properly based on context_len and forecast_len\n",
"\n",
"hf_model_path = \"ibm/ttm-research-r2\"\n",
"hf_model_path = \"ibm-research/ttm-research-r2\"\n",
"if context_length == 512:\n",
" hf_model_branch = \"main\"\n",
"elif context_length == 1024 or context_length == 1536:\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"\n",
"1. IBM Granite TTM-R1 pre-trained models can be found here: [Granite-TTM-R1 Model Card](https://huggingface.co/ibm-granite/granite-timeseries-ttm-r1)\n",
"2. IBM Granite TTM-R2 pre-trained models can be found here: [Granite-TTM-R2 Model Card](https://huggingface.co/ibm-granite/granite-timeseries-ttm-r2)\n",
"3. Research-use (non-commercial use only) TTM-R2 pre-trained models can be found here: [Research-Use-TTM-R2](https://huggingface.co/ibm/ttm-research-r2)"
"3. Research-use (non-commercial use only) TTM-R2 pre-trained models can be found here: [Research-Use-TTM-R2](https://huggingface.co/ibm-research/ttm-research-r2)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"\n",
"1. IBM Granite TTM-R1 pre-trained models can be found here: [Granite-TTM-R1 Model Card](https://huggingface.co/ibm-granite/granite-timeseries-ttm-r1)\n",
"2. IBM Granite TTM-R2 pre-trained models can be found here: [Granite-TTM-R2 Model Card](https://huggingface.co/ibm-granite/granite-timeseries-ttm-r2)\n",
"3. Research-use (non-commercial use only) TTM-R2 pre-trained models can be found here: [Research-Use-TTM-R2](https://huggingface.co/ibm/ttm-research-r2)"
"3. Research-use (non-commercial use only) TTM-R2 pre-trained models can be found here: [Research-Use-TTM-R2](https://huggingface.co/ibm-research/ttm-research-r2)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"\n",
"1. IBM Granite TTM-R1 pre-trained models can be found here: [Granite-TTM-R1 Model Card](https://huggingface.co/ibm-granite/granite-timeseries-ttm-r1)\n",
"2. IBM Granite TTM-R2 pre-trained models can be found here: [Granite-TTM-R2 Model Card](https://huggingface.co/ibm-granite/granite-timeseries-ttm-r2)\n",
"3. Research-use (non-commercial use only) TTM-R2 pre-trained models can be found here: [Research-Use-TTM-R2](https://huggingface.co/ibm/ttm-research-r2)"
"3. Research-use (non-commercial use only) TTM-R2 pre-trained models can be found here: [Research-Use-TTM-R2](https://huggingface.co/ibm-research/ttm-research-r2)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"\n",
"1. IBM Granite TTM-R1 pre-trained models can be found here: [Granite-TTM-R1 Model Card](https://huggingface.co/ibm-granite/granite-timeseries-ttm-r1)\n",
"2. IBM Granite TTM-R2 pre-trained models can be found here: [Granite-TTM-R2 Model Card](https://huggingface.co/ibm-granite/granite-timeseries-ttm-r2)\n",
"3. Research-use (non-commercial use only) TTM-R2 pre-trained models can be found here: [Research-Use-TTM-R2](https://huggingface.co/ibm/ttm-research-r2)"
"3. Research-use (non-commercial use only) TTM-R2 pre-trained models can be found here: [Research-Use-TTM-R2](https://huggingface.co/ibm-research/ttm-research-r2)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
1. TTM-Granite-R1 pre-trained models can be found here: [TTM-R1 Model Card](https://huggingface.co/ibm-granite/granite-timeseries-ttm-r1)
2. TTM-Granite-R2 pre-trained models can be found here: [TTM-R2 Model Card](https://huggingface.co/ibm-granite/granite-timeseries-ttm-r2)
3. TTM-Research-Use pre-trained models can be found here: [TTM-Research-Use Model Card](https://huggingface.co/ibm/ttm-research-r2)
3. TTM-Research-Use pre-trained models can be found here: [TTM-Research-Use Model Card](https://huggingface.co/ibm-research/ttm-research-r2)
Every model card has a suite of TTM models. Please read the respective model cards for usage instructions.
"""
Expand Down
301 changes: 245 additions & 56 deletions notebooks/hfdemo/ttm_getting_started.ipynb

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions services/finetuning/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
data/*
mytest-tsfm
12 changes: 10 additions & 2 deletions services/finetuning/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@ boilerplate:
image:
$(CONTAINER_BUILDER) build -t tsfmfinetuning -f Dockerfile .

test_local: boilerplate
pytest tests
clone_models:
git lfs install || true
git clone https://huggingface.co/ibm-research/test-tsfm mytest-tsfm || true


fetchdata:
python tests/fetchdata.py

test_local: boilerplate fetchdata clone_models
pytest -s tests

install_dev: boilerplate
pip install poetry && poetry install --with dev
Loading

0 comments on commit 46b8645

Please sign in to comment.