How youseef3550/dl_peft_robustness works
This repository is a research experiment pipeline studying calibration and robustness of fine-tuning methods under distribution shift. Users run experiments that train models, evaluate checkpoints across clean, IMDb out-of-domain, and synthetic-noise suites, then aggregate results into paper tables and figures. Training and evaluation share model setup, data preparation, and metrics. The supplied excerpts show these runtime relationships; paper files and other unsampled components are not mapped.
Main entry points: evaluate.py Checkpoint evaluation · train.py Model training · run_experiments.py Experiment runner · generate_paper_assets.py Asset generation
Components 16
Experiment orchestration
- Experiment runner
run_experiments.py
Training and modeling
- Model training
train.py - Adaptation setup
src/models.py - Model checkpoints
Evaluation and benchmarks
- Training data
src/data.py - Checkpoint evaluation
evaluate.py - Clean SST-2
src/data.py - IMDb shift
src/data.py - Synthetic typos
src/data.py - Classification metrics
src/metrics.py
Results and reporting
- Evaluation results
- Asset generation
generate_paper_assets.py - Tables and figures
paper_assets/table1_main_results.tex
Other components
- Researcher
- Hugging Face datasets
- Pretrained model hub
Connections 24
- Researcher → Experiment runner: runs experiments
README.md - Researcher → Model training: trains model
README.md - Researcher → Checkpoint evaluation: evaluates checkpoint
README.md - Researcher → Asset generation: generates assets
README.md - Experiment runner → Model training: runs training
run_experiments.py - Experiment runner → Checkpoint evaluation: runs evaluation
run_experiments.py - Experiment runner → Evaluation results: writes aggregate
run_experiments.py - Model training → Training data: loads examples
train.py - Model training → Adaptation setup: configures model
train.py - Model training → Classification metrics: computes validation
train.py - Model training → Model checkpoints: saves checkpoint
train.py - Adaptation setup → Pretrained model hub: loads pretrained model
src/models.py - Training data → Hugging Face datasets: loads SST-2
src/data.py - Checkpoint evaluation → Model checkpoints: loads checkpoint
evaluate.py - Checkpoint evaluation → Adaptation setup: recreates model
evaluate.py - Checkpoint evaluation → Training data: loads validation texts
evaluate.py - Checkpoint evaluation → Clean SST-2: builds clean suite
src/data.py - Checkpoint evaluation → IMDb shift: builds OOD suite
src/data.py - Checkpoint evaluation → Synthetic typos: builds noisy suite
src/data.py - IMDb shift → Hugging Face datasets: loads IMDb
src/data.py - Checkpoint evaluation → Classification metrics: computes scores
evaluate.py - Checkpoint evaluation → Evaluation results: writes evaluations
evaluate.py - Asset generation → Evaluation results: reads results
generate_paper_assets.py - Asset generation → Tables and figures: generates table
generate_paper_assets.py