agoel00 / causalBERT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


CausalBERT

Paper Conference

Description

PyTorch (Lightning) based implementation of Adapting Text Embeddings for Causal Inference

How to run

First, install dependencies

# clone project   
git clone https://github.com/agoel00/causalBERT

# install project   
cd causalBERT
pip install -r requirements.txt

Training CausalBERT

python run.py fit --accelerator gpu --batch_size 8

img

Inference using the trained CausalBERT checkpoint

python run.py predict --accelerator gpu --batch_size 8 --ckpt_path last

img

Credits

A lot of the training logic is taken from https://github.com/rpryzant/causal-bert-pytorch.

About


Languages

Language:Python 100.0%