This is a fork from the original HELM for a study of enterprise benchmarking of LLMs using domain-specific datasets.
The following scenarios are added. Please refer to the docstring of the source code of each scenario, or the page shown by helm-server for the details.
- Finance
- financial_phrasebank
- kpi_edgar
- conv_fin_qa
- news_headline
- Legal
- legal_opinion
- echr_judge
- casehold_qa
- legal_contract
- Climate
- sumosum
- Cyber security
- cti_mitre
The following metrics are added or modified.
- kpi_edgar_metrics
- classification_metrics (weighted_f1)
- basic_metrics (float_equiv, a bug fix for f1_score)
This study will be published elsewhere.
- Citation: TBD
Welcome! The crfm-helm Python package contains code used in the Holistic Evaluation of Language Models project (paper, website) by Stanford CRFM. This package includes the following features:
- Collection of datasets in a standard format (e.g., NaturalQuestions)
- Collection of models accessible via a unified API (e.g., GPT-3, MT-NLG, OPT, BLOOM)
- Collection of metrics beyond accuracy (efficiency, bias, toxicity, etc.)
- Collection of perturbations for evaluating robustness and fairness (e.g., typos, dialect)
- Modular framework for constructing prompts from datasets
- Proxy server for managing accounts and providing unified interface to access models
To get started, refer to the documentation on Read the Docs for how to install and run the package.
The directory structure for this repo is as follows
├── docs # MD used to generate readthedocs
│
├── scripts # Python utility scripts for HELM
│ ├── cache
│ ├── data_overlap # Calculate train test overlap
│ │ ├── common
│ │ ├── scenarios
│ │ └── test
│ ├── efficiency
│ ├── fact_completion
│ ├── offline_eval
│ └── scale
└── src
├── helm # Benchmarking Scripts for HELM
│ │
│ ├── benchmark # Main Python code for running HELM
│ │ │
│ │ └── static # Current JS (Jquery) code for rendering front-end
│ │ │
│ │ └── ...
│ │
│ ├── common # Additional Python code for running HELM
│ │
│ └── proxy # Python code for external web requests
│
└── helm-frontend # New React Front-end
