matrix-multiply commited on
Commit
e3b38a0
·
verified ·
1 Parent(s): 887793b

Add AlphaTransit checkpoints

Browse files
.gitattributes CHANGED
@@ -1,35 +1 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
  *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
- *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz filter=lfs diff=lfs merge=lfs -text
33
- *.zip filter=lfs diff=lfs merge=lfs -text
34
- *.zst filter=lfs diff=lfs merge=lfs -text
35
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  *.pth filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2023
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md CHANGED
@@ -1,3 +1,46 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ library_name: pytorch
4
+ tags:
5
+ - pytorch
6
+ - torch-geometric
7
+ - graph-neural-network
8
+ - reinforcement-learning
9
+ - transportation
10
+ - transit
11
+ - trndp
12
+ datasets:
13
+ - matrix-multiply/bloomington-tndp
14
+ arxiv: 2605.28730
15
  ---
16
+
17
+ # AlphaTransit Checkpoints
18
+
19
+ PyTorch checkpoints for **AlphaTransit: Learning to Design City-scale Transit Routes**.
20
+
21
+ ## Files
22
+
23
+ | File | Setting | Bloomington service rate |
24
+ | --- | --- | ---: |
25
+ | `checkpoints/alphatransit_alpha0.3_best.pth` | `alpha=0.3`, `n_iter=500` | 54.64% |
26
+ | `checkpoints/alphatransit_alpha1.0_best.pth` | `alpha=1.0`, `n_iter=500` | 82.08% |
27
+
28
+ `model_kwargs.json` and `checkpoint_manifest.json` provide checkpoint metadata.
29
+
30
+ ## Download
31
+
32
+ ```python
33
+ from huggingface_hub import hf_hub_download
34
+
35
+ path = hf_hub_download(
36
+ repo_id="matrix-multiply/alphatransit-checkpoints",
37
+ filename="checkpoints/alphatransit_alpha0.3_best.pth",
38
+ )
39
+ ```
40
+
41
+ ## Links
42
+
43
+ - Paper: https://huggingface.co/papers/2605.28730
44
+ - Code: https://github.com/poudel-bibek/AlphaTransit
45
+ - Dataset: https://huggingface.co/datasets/matrix-multiply/bloomington-tndp
46
+ - Research preview: https://alphatransit.app/
checkpoint_manifest.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "repo_id": "matrix-multiply/alphatransit-checkpoints",
3
+ "paper": "https://huggingface.co/papers/2605.28730",
4
+ "source_code": "https://github.com/poudel-bibek/AlphaTransit",
5
+ "source_commit": "1965051a6c883c5a55c423bdbb041e3f5934f479",
6
+ "dataset": "matrix-multiply/bloomington-tndp",
7
+ "notes": "Curated AlphaTransit policies for the main paper comparison. These checkpoints use n_iter=500 and are raw PyTorch state_dict files requiring the AlphaTransit source code to instantiate rl.models.GATV2ActorCritic.",
8
+ "checkpoints": [
9
+ {
10
+ "file": "checkpoints/alphatransit_alpha0.3_best.pth",
11
+ "algorithm": "alphatransit",
12
+ "method": "AlphaTransit",
13
+ "alpha": 0.3,
14
+ "source_identifier": "n_iter=500",
15
+ "bloomington_service_rate_10_seed_mean_percent": 54.64,
16
+ "size_bytes": 2739987,
17
+ "sha256": "129779ad7e7de77bd760cf6c6bacd0335283b2654eb1a2a97583d91a1b533093"
18
+ },
19
+ {
20
+ "file": "checkpoints/alphatransit_alpha1.0_best.pth",
21
+ "algorithm": "alphatransit",
22
+ "method": "AlphaTransit",
23
+ "alpha": 1.0,
24
+ "source_identifier": "n_iter=500",
25
+ "bloomington_service_rate_10_seed_mean_percent": 82.08,
26
+ "size_bytes": 2739987,
27
+ "sha256": "ae0e7d3180cd17ac0d06c2f8e0aee5a1fac96e485aa3a77a7e6114cf1da31c00"
28
+ }
29
+ ]
30
+ }
checkpoints/alphatransit_alpha0.3_best.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:129779ad7e7de77bd760cf6c6bacd0335283b2654eb1a2a97583d91a1b533093
3
+ size 2739987
checkpoints/alphatransit_alpha1.0_best.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae0e7d3180cd17ac0d06c2f8e0aee5a1fac96e485aa3a77a7e6114cf1da31c00
3
+ size 2739987
model_kwargs.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_class": "rl.models.GATV2ActorCritic",
3
+ "format": "raw PyTorch state_dict",
4
+ "n_node_features": 16,
5
+ "n_edge_features": 2,
6
+ "proj_out": 64,
7
+ "num_gat_blocks": 4,
8
+ "gat_channels": [
9
+ 128,
10
+ 128,
11
+ 64,
12
+ 64
13
+ ],
14
+ "num_heads": [
15
+ 8,
16
+ 8,
17
+ 4,
18
+ 4
19
+ ],
20
+ "concat": false,
21
+ "activation": "tanh",
22
+ "attn_dropout": [
23
+ 0.0,
24
+ 0.0,
25
+ 0.0,
26
+ 0.0
27
+ ],
28
+ "feat_dropout": [
29
+ 0.0,
30
+ 0.0,
31
+ 0.0,
32
+ 0.0
33
+ ],
34
+ "actor_head_dropout": 0.0,
35
+ "critic_head_dropout": 0.0,
36
+ "actor_head_layers": [
37
+ 256,
38
+ 128,
39
+ 64
40
+ ],
41
+ "critic_head_layers": [
42
+ 256,
43
+ 128,
44
+ 64
45
+ ],
46
+ "critic_readout_type": "sum"
47
+ }