witgaw commited on
Commit
1716fe7
·
verified ·
1 Parent(s): eb23642

Upload STGFORMER_PRETRAIN model trained on METR-LA

Browse files
metadata.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "dataset": "METR-LA",
3
- "upload_date": "2025-12-07T20:12:44.070342",
4
  "metrics": {},
5
  "framework": "PyTorch",
6
  "model_type": "STGFORMER_PRETRAIN"
 
1
  {
2
  "dataset": "METR-LA",
3
+ "upload_date": "2025-12-08T00:58:01.654463",
4
  "metrics": {},
5
  "framework": "PyTorch",
6
  "model_type": "STGFORMER_PRETRAIN"
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7bc3b7dbba0b56513a78ded78ffbedaa87b9810f06136daaf40974c12c7d2d0f
3
  size 7231112
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8153aad6be768f269655d27cfe2c94f7fb2961f65c27c075353eee42508f8377
3
  size 7231112
pretrained_checkpoint/README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - traffic-forecasting
4
+ - time-series
5
+ - graph-neural-network
6
+ - stgformer_pretrained
7
+ datasets:
8
+ - metr-la
9
+ ---
10
+
11
+ # Spatial-Temporal Graph Transformer (Pretrained) - METR-LA
12
+
13
+ Spatial-Temporal Graph Transformer (Pretrained) (STGFORMER_PRETRAINED) trained on METR-LA dataset for traffic speed forecasting.
14
+
15
+ ## Model Description
16
+
17
+ STGFormer pretrained checkpoint for METR-LA. This checkpoint contains pretrained model weights and imputation head from masked node pretraining. Use with load_from config option.
18
+
19
+
20
+
21
+ ## Dataset
22
+
23
+ **METR-LA**: Traffic speed data from highway sensors.
24
+
25
+ ## Usage
26
+
27
+ ```python
28
+ from utils.stgformer import load_from_hub
29
+
30
+ # Load model from Hub
31
+ model, scaler = load_from_hub("METR-LA", hf_repo_prefix="STGFORMER_PRETRAINED")
32
+
33
+ # Get predictions
34
+ from utils.stgformer import get_predictions
35
+ predictions = get_predictions(model, scaler, test_dataset)
36
+ ```
37
+
38
+ ## Training
39
+
40
+ Model was trained using the STGFORMER_PRETRAINED implementation with default hyperparameters.
41
+
42
+ ## Citation
43
+
44
+ If you use this model, please cite the original STGFORMER_PRETRAINED paper:
45
+
46
+ ```bibtex
47
+ @inproceedings{lan2022stgformer,
48
+ title={STGformer: Spatial-Temporal Graph Transformer for Traffic Forecasting},
49
+ author={Lan, Shengnan and Ma, Yong and Huang, Weijia and Wang, Wanwei and Yang, Hui and Li, Peng},
50
+ booktitle={IEEE Transactions on Neural Networks and Learning Systems},
51
+ year={2022}
52
+ }
53
+ ```
54
+
55
+ ## License
56
+
57
+ This model checkpoint is released under the same license as the training code.
pretrained_checkpoint/imputation_head.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:dad72f93fc148ecdd1897ad4b92e8cc347adc38bbdc2ebcae7fa1b6d1ddd3890
3
- size 652
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7940f41ece420524f70244907be0ebddf8eec068740f559823077f4bd38b7818
3
+ size 6328
pretrained_checkpoint/metadata.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "dataset": "METR-LA",
3
- "upload_date": "2025-12-07T19:53:28.410992",
4
  "metrics": {},
5
  "framework": "PyTorch",
6
- "model_type": "PRETRAINED"
7
  }
 
1
  {
2
  "dataset": "METR-LA",
3
+ "upload_date": "2025-12-08T00:42:28.489304",
4
  "metrics": {},
5
  "framework": "PyTorch",
6
+ "model_type": "STGFORMER_PRETRAINED"
7
  }
pretrained_checkpoint/model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:545fe5933952da9b4be422274667c7e590360565596b6ed5cf1bf328231411b8
3
  size 7231112
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb75d70cfebb79169a673cb166fa7d973704e41ebe2dec90ae5a571d46dfdff7
3
  size 7231112
pretrained_checkpoint/pretrain_config.json CHANGED
@@ -5,8 +5,10 @@
5
  "stage1_mask_ratio": 0.15,
6
  "stage2_epochs": 5,
7
  "stage2_mask_ratio": 0.1,
8
- "pretrain_window": 24,
9
  "learning_rate": 0.001,
 
 
10
  "save_to": "STGFORMER_PRETRAINED"
11
  },
12
  "model_dim": 128,
 
5
  "stage1_mask_ratio": 0.15,
6
  "stage2_epochs": 5,
7
  "stage2_mask_ratio": 0.1,
8
+ "pretrain_window": 12,
9
  "learning_rate": 0.001,
10
+ "pretrain_batch_size": 100,
11
+ "imputation_iterations": 3,
12
  "save_to": "STGFORMER_PRETRAINED"
13
  },
14
  "model_dim": 128,