Downloads · 30 days
0
Yining04/swissprot-evidence-plm-baselines
swissprot-evidence-plm-baselines is a token classification model from Yining04. Use it when you need labels on individual words, such as names. It is set up for transformers.
This bundle is for the rebuttal-time external protein language model baselines.
Downloads · 30 days
0
Access
Public
Updated May 3, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py55 KB · 66%
From the Hugging Face model README
This bundle is for the rebuttal-time external protein language model baselines.
Scope:
Primary models:
facebook/esm2_t33_650M_UR50DRostlab/prot_bertElnaggarLab/ankh-baseOptional models:
Rostlab/ProstT5hugohrban/progen2-smallTasks:
ecgo_mfsitesregionsExpected dataset root:
/scratch/user/yining_yang/TAMU/PhD/Pannot/data/SwissProt/splits/splits_condensed_samples_pt
Expected split directories:
train_condensed_samples_ptval_id_samples_ptval_ood_family_samples_pttest_id_samples_pttest_ood_family_samples_ptTask CSVs:
ec/ec.csvgene_ontology/go_mf.csvsites/sites.csvregions/regions.csvConda:
conda env create -f prott3-env.yml
conda activate prott3-env
If you prefer to reuse an existing environment, the important runtime dependencies are:
torchtransformerspefthuggingface_hubpandasscikit-learntqdmDownload the public model checkpoints into a local directory before offline runs:
export PLM_BASELINE_MODEL_ROOT=$PWD/local_pretrained_encoders
python -m rebuttal.plm_baselines.prefetch --models esm2 protbert ankh
To include the optional models:
python -m rebuttal.plm_baselines.prefetch --models esm2 protbert ankh prostt5 progen
The shell wrapper does the same on Grace:
bash rebuttal/prefetch_plm_models.sh
python -m rebuttal.plm_baselines.train_eval \
--model-key esm2 \
--task ec \
--data-root /path/to/splits_condensed_samples_pt \
--output-dir ./results/rebuttal_plm_baselines_local/esm2/ec \
--epochs 1 \
--batch-size 2 \
--accumulate-grad-batches 4 \
--max-train-samples 128 \
--max-eval-samples 128 \
--smoke-only
python -m rebuttal.plm_baselines.train_eval \
--model-key protbert \
--task go_mf \
--data-root /path/to/splits_condensed_samples_pt \
--output-dir ./results/rebuttal_plm_baselines_local/protbert/go_mf \
--epochs 3 \
--batch-size 2 \
--accumulate-grad-batches 8
python -m rebuttal.plm_baselines.aggregate \
--input-root ./results/rebuttal_plm_baselines_local \
--output ./results/rebuttal_plm_baselines_local/aggregate_summary.json
ec is parsed from text_label and evaluated with exact match plus hierarchical similarity.go_mf is parsed into multi-label GO IDs from text_label.sites and regions are residue-level flat classifiers.MC_AccMC_MRRMC_Rec@5necessity_deltasufficiency_deltaesm2, protbert, ankh on ecesm2, protbert, ankh on go_mfsitesregionsprostt5 / progen