Bgoood commited on
Commit
6f7c824
·
verified ·
1 Parent(s): 604ae8b

Upload SpatialGT pretrained model

Browse files
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - spatial-transcriptomics
5
+ - graph-transformer
6
+ - gene-expression
7
+ - pretrained
8
+ - pytorch
9
+ language:
10
+ - en
11
+ library_name: transformers
12
+ pipeline_tag: feature-extraction
13
+ ---
14
+
15
+ # SpatialGT Pretrained Model
16
+
17
+ ## Model Description
18
+
19
+ This is the **pretrained checkpoint** of SpatialGT (Spatial Graph Transformer), a graph transformer model designed for spatial transcriptomics data analysis.
20
+
21
+ SpatialGT leverages spatial context through neighbor-aware attention mechanisms for:
22
+ - 🗺️ Spatial context learning from large-scale spatial transcriptomics data
23
+ - 🧬 Gene expression reconstruction
24
+ - 🔬 Perturbation simulation
25
+
26
+ ## Model Details
27
+
28
+ - **Architecture**: Graph Transformer with spatial neighbor attention
29
+ - **Parameters**: ~600M
30
+ - **Training Data**: Large-scale spatial transcriptomics atlas
31
+ - **Input**: Gene expression vectors with spatial coordinates
32
+ - **Output**: Contextualized gene expression representations
33
+
34
+ ## Usage
35
+
36
+ ```python
37
+ import torch
38
+ from pretrain.model_spatialpt import SpatialNeighborTransformer
39
+ from pretrain.Config import Config
40
+
41
+ # Load configuration
42
+ config = Config()
43
+
44
+ # Initialize model
45
+ model = SpatialNeighborTransformer(config)
46
+
47
+ # Load pretrained weights
48
+ from safetensors.torch import load_file
49
+ state_dict = load_file("model.safetensors")
50
+ model.load_state_dict(state_dict)
51
+
52
+ model.eval()
53
+ ```
54
+
55
+ ## Files
56
+
57
+ - `model.safetensors`: Model weights in safetensors format
58
+ - `training_args.bin`: Training arguments
59
+ - `trainer_state.json`: Training state information
60
+
61
+ ## Citation
62
+
63
+ If you use this model, please cite our paper (details to be added upon publication).
64
+
65
+ ## License
66
+
67
+ MIT License
checkpoint/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88d56ef898eee9a04a7bdbe7891dac741a15e87d66af0a90d9b09a50b02d0df3
3
+ size 960174180
checkpoint/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84df9b24f2dfafb2c958c65752f8dd36a2a3ca6f9a2b8bd96c05c27011e4057d
3
+ size 1920412858
checkpoint/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:848fec2ada37525442081524725c7b7fda7fef2c60988532ef2931180d0d6f6c
3
+ size 15984
checkpoint/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd3a8f65cd77f4036a5242d2d4450c2311dde01f8f2cbb95d7c6b7cfbb47796a
3
+ size 15984
checkpoint/rng_state_2.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e59dbcb4bf8daa3c54e59d2e2f49cd325f8fa40b85534f233e08582d506be10b
3
+ size 15984
checkpoint/rng_state_3.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c96878b0ab06912dbc4e375211c32f5a7db14b9bba972d61ae885321d0539018
3
+ size 15984
checkpoint/rng_state_4.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a734a745da4cc7709eb705f2a35c4dd9f1c139dc33e98c064453f8920564f23
3
+ size 15984
checkpoint/rng_state_5.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2fc5eee74aebc5542d487c89d138ce6a86038552483d23ea65a3ddf746decf66
3
+ size 15984
checkpoint/rng_state_6.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:794dcfec590c0ca2cc89492440808b77290d3aceabdba490672485c7d271417c
3
+ size 15984
checkpoint/rng_state_7.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7669d9881f809092c60e66b98e7685cad491b65433f4596e9738d758045af01
3
+ size 15984
checkpoint/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3db472f8a831a3a9b53c8a878482121acf343a63679b58ddd820a32c3255d0e1
3
+ size 1064
checkpoint/trainer_state.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec1b520599b3a4d5f0a634bdccb253ade1138056248b1f0d7585aa8f675f16c5
3
+ size 5432