Downloads · 30 days
0
Bgoood/SpatialGT-Pretrained
SpatialGT-Pretrained is a feature extraction model from Bgoood. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as mit.
This is the pretrained checkpoint of SpatialGT (Spatial Graph Transformer), a graph transformer model designed for spatial transcriptomics data analysis.
Downloads · 30 days
0
Access
Public
Updated Jan 20, 2026
Repo size
2.9 GB
Likes
0
Public
Click a slice to open those files.
.pt1.9 GB · 67%
From the Hugging Face model README
This is the pretrained checkpoint of SpatialGT (Spatial Graph Transformer), a graph transformer model designed for spatial transcriptomics data analysis.
SpatialGT leverages spatial context through neighbor-aware attention mechanisms for:
import torch
from pretrain.model_spatialpt import SpatialNeighborTransformer
from pretrain.Config import Config
# Load configuration
config = Config()
# Initialize model
model = SpatialNeighborTransformer(config)
# Load pretrained weights
from safetensors.torch import load_file
state_dict = load_file("model.safetensors")
model.load_state_dict(state_dict)
model.eval()
model.safetensors: Model weights in safetensors formattraining_args.bin: Training argumentstrainer_state.json: Training state informationIf you use this model, please cite our paper (details to be added upon publication).
MIT License