Views
No views yet
1git clone https://github.com/snap-stanford/relational-transformer
2cd relational-transformer
3pixi install
4# compile and install the rust sampler
5cd rustler
6pixi run maturin develop --uv --releasepretrain_<dataset>_<task>.pt: Pretrained with the specified <dataset> held out.contd-pretrain_<dataset>_<task>.pt: Obtained by continued pretraining on <dataset> with the specific <task> held out.1mkdir -p ~/scratch/rt_ckpts
2huggingface-cli download rishabh-ranjan/relational-transformer \
3 --repo-type model \
4 --include "pretrain_rel-amazon_user-churn.pt" \
5 --local-dir ~/scratch/rt_ckpts \
6 --local-dir-use-symlinks Falseload_ckpt_path argument in the training scripts provided in the GitHub repository. For example, to run a finetuning experiment:pixi run torchrun --standalone --nproc_per_node=8 scripts/example_finetune.pypretrain_rel-event_<task>.pt — leave-rel-event-out pretraining (50k steps),
per-task best. rel-event was not covered in the original release; these produce
the RT zero-shot rel-event cells.contd-pretrain_rel-event_<task>.pt — continued pretraining on the other
rel-event tasks from the matching pretrain checkpoint (2^12+1 steps).finetune-from-{pretrain,contd-pretrain}_<db>_<task>.pt —
the fine-tuned checkpoint behind each replicated "RT | pretrained + fine-tuned"
leaderboard cell. The board takes the per-task best over fine-tuning from the
plain-pretraining vs continued-pretraining init (init treated as a
hyperparameter); the file present is the winning init for that task. Cells
without a file here are the paper's own pretrain-init fine-tuning numbers —
reproduce those with scripts/example_finetune.py from the matching
pretrain_<db>_<task>.pt.1@inproceedings{ranjan2025relationaltransformer,
2 title={{Relational Transformer:} Toward Zero-Shot Foundation Models for Relational Data},
3 author={Rishabh Ranjan and Valter Hudovernik and Mark Znidar and Charilaos Kanatsoulis and Roshan Upendra and Mahmoud Mohammadi and Joe Meyer and Tom Palczewski and Carlos Guestrin and Jure Leskovec},
4 booktitle={The Fourteenth International Conference on Learning Representations},
5 year={2026}
6}