Changes for runLIT.py: 0 added lines, 437 removed lines.
Original line number
Diff line number
Diff line
"""
This script needs a LIT-compatible environment with transformers==2.11.0 and Python==3.7 (see conda environment file lit.yml)
This script wraps the model(s) and data from runBertForMultiChoiceMaskedLM.py according to LIT standards.
By running this script you can inspect the models in LIT.
Beware of the RAM requirements when loading all models. By default, we load 2 of 3 models. You can change which models are loaded by (un)commenting any of these lines in the models dict at the end of the script: