alt.freeweights.granite / granite-timeseries-patchtst
From: ibm-granite <huggingface.co/ibm-granite>Newsgroups: alt.freeweights.graniteSubject:

granite-timeseries-patchtst

Date: 2026-11-15Commit: 7fe295dSigned: 2DC28CC7B26A283B ✓

Time series forecasting model with 1M parameters. Safetensors weights, 2.82 MB in all. Published by ibm-granite under Apache-2.0.

1M params2.82MBgranite-timeseries-patchtstsafetensorspermissive
FactsParams1MSize2.82 MBFormatssafetensorsTasktime series forecastingLicenseApache-2.0From sourcepermissive
$ fw get ibm-granite/granite-timeseries-patchtst
# manifest sha256 cfdea7ef281a… · 2.82 MB · 6 files
$ fw verify ./granite-timeseries-patchtst ibm-granite/granite-timeseries-patchtst
From sourceHosted (signed)ibm-granite/granite-timeseries-patchtstLast check: 2026-11-15 02:51 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
2.82 MB
Weights
2.47 MB (safetensors)
Parameters
1M
Formats
safetensors
Task
time series forecasting
License
Apache-2.0 (permissive)
Files
6, each with a sha256
Publisher
ibm-granite
Added
2026-11-15
Section
alt.freeweights.granite
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:51 UTCpassed

Model card

From the publisher at commit 7fe295d. Shown as plain text with links; images open at the publisher.

PatchTST model pre-trained on ETTh1 dataset#

PatchTST is a transformer-based model for time series modeling tasks, including forecasting, regression, and classification. This repository contains a pre-trained PatchTST model encompassing all seven channels of the ETTh1 dataset. This particular pre-trained model produces a Mean Squared Error (MSE) of 0.3881 on the test split of the ETTh1 dataset when forecasting 96 hours into the future with a historical data window of 512 hours.

For training and evaluating a PatchTST model, you can refer to this demo notebook.

Model Details#

Model Description#

The PatchTST model was proposed in A Time Series is Worth 64 Words: Long-term Forecasting with Transformers by Yuqi Nie, Nam H. Nguyen, Phanwadee Sinthong, Jayant Kalagnanam.

At a high level the model vectorizes time series into patches of a given size and encodes the resulting sequence of vectors via a Transformer that then outputs the prediction length forecast via an appropriate head.

The model is based on two key components: (i) segmentation of time series into subseries-level patches which are served as input tokens to Transformer; (ii) channel-independence where each channel contains a single univariate time series that shares the same embedding and Transformer weights across all the series. The patching design naturally has three-fold benefit: local semantic information is retained in the embedding; computation and memory usage of the attention maps are quadratically reduced given the same look-back window; and the model can attend longer history. Our channel-independent patch time series Transformer (PatchTST) can improve the long-term forecasting accuracy significantly when compared with that of SOTA Transformer-based models.

In addition, PatchTST has a modular design to seamlessly support masked time series pre-training as well as direct time series forecasting, classification, and regression.

Image: Architecture

Model Sources#

Uses#

This pre-trained model can be employed for fine-tuning or evaluation using any Electrical Transformer dataset that has the same channels as the ETTh1 dataset, specifically: HUFL, HULL, MUFL, MULL, LUFL, LULL, OT. The model is designed to predict the next 96 hours based on the input values from the preceding 512 hours. It is crucial to normalize the data. For a more comprehensive understanding of data pre-processing, please consult the paper or the demo.

How to Get Started with the Model#

Use the code below to get started with the model.

Demo

Training Details#

Training Data#

ETTh1/train split. Train/validation/test splits are shown in the demo.

Training hyperparameters#

The following hyperparameters were used during training:

  • learning_rate: 5e-05
  • train_batch_size: 8
  • eval_batch_size: 8
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • num_epochs: 10
Training Results#
Training LossEpochStepValidation Loss
0.43061.010050.7268
0.36412.020100.7456
0.3483.030150.7161
0.33794.040200.7428
0.32845.050250.7681
0.3216.060300.7842
0.3147.070350.7991
0.30888.080400.8021
0.30539.090450.8199
0.301910.0100500.8173

Evaluation#

Testing Data#

ETTh1/test split. Train/validation/test splits are shown in the demo.

Metrics#

Mean Squared Error (MSE).

Results#

It achieves a MSE of 0.3881 on the evaluation dataset.

Hardware#

1 NVIDIA A100 GPU

Framework versions#
  • Transformers 4.36.0.dev0
  • Pytorch 2.0.1
  • Datasets 2.14.4
  • Tokenizers 0.14.1

Citation#

BibTeX:

@misc{nie2023time,
      title={A Time Series is Worth 64 Words: Long-term Forecasting with Transformers}, 
      author={Yuqi Nie and Nam H. Nguyen and Phanwadee Sinthong and Jayant Kalagnanam},
      year={2023},
      eprint={2211.14730},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

APA:

Nie, Y., Nguyen, N., Sinthong, P., & Kalagnanam, J. (2023). A Time Series is Worth 64 Words: Long-term Forecasting with Transformers. arXiv preprint arXiv:2211.14730.

Files

6 files · 2.82 MBWeights 2.47 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 6 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md6.49 KB0d738f21e4af2a95166283f96fb621de9cb6df14ef6617c0cb92b940e343b233
config.json1.29 KBea352fe0f40d0b4581469702464533c2cee7c016819a68d1c2be01a7c350c55a
generation_config.json74 Be4bf63f073138eaba314f40645dea0c621c41bbf9e9dbd5ee134702fb2e7bd8c
model.safetensors2.47 MBc7fca6ed95f1b0c2be80f421f100ad744b0334b598b1fbacd4f5a5e01afdcc4f
patchtst_architecture.png338 KB264e37d52ec21dbb69580f2e940f782ee4a58d9b6a5a24169a43e0851c378d83
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
7fe295d8bc pinned now2026-11-15 02:51 UTC6 files · 2.82 MB

Use it

$ fw get ibm-granite/granite-timeseries-patchtst
# manifest sha256 cfdea7ef281a… · 2.82 MB · 6 files
$ fw verify ./granite-timeseries-patchtst ibm-granite/granite-timeseries-patchtst
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/ibm-granite/granite-timeseries-patchtst.json --dir ./granite-timeseries-patchtst $ python3 fw.py verify ./granite-timeseries-patchtst ./ibm-granite__granite-timeseries-patchtst.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-timeseries-patchtst --revision 7fe295d8bc8fbac8041b60ab351882634165517f --local-dir ./granite-timeseries-patchtst

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
0d738f21e4af2a95166283f96fb621de9cb6df14ef6617c0cb92b940e343b233
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: ibm-granite <huggingface.co/ibm-granite>Newsgroups: alt.freeweights.graniteSubject: granite-timeseries-patchtstDate: 2026-11-15Commit: 7fe295dSigned: 2DC28CC7B26A283B ✓
Upstream
ibm-granite/granite-timeseries-patchtst
Pinned commit
7fe295d8bc8fbac8041b60ab351882634165517f
Manifest
granite-timeseries-patchtst.json · .minisig
Manifest sha256
cfdea7ef281aca3c8eba5a9bf33088cd6b997d0795c4c46666d9894af61bb6d6
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:51 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-timeseries-patchtst.json $ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-timeseries-patchtst.json.minisig $ minisign -Vm granite-timeseries-patchtst.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-timeseries-patchtst
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. granite-timeseries-patchtst.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of granite-timeseries-patchtst. Each has its own license check and page.

From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed1
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed2
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed3
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.seed1
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.seed2
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.seed3