library_name: transformers
tags:
- transformers
- peft
- arxiv:2406.08391
license: llama2
base_model: meta-llama/Llama-2-7b-hf
datasets:
- calibration-tuning/Llama-2-7b-hf-20k-choice
Model Card
Llama 7b CT-Choice is a fine-tuned Llama 7B model that provides well-calibrated confidence estimates for multiple-choice question answering.
The model is fine-tuned (calibration-tuned) using a dataset of multiple-choice generations from meta-llama/Llama-2-7b-hf
, labeled for correctness.
At test/inference time, the probability of correctness defines the confidence of the model in its answer.
For full details, please see our paper and supporting code.
Other Models: We also release a broader collection of Multiple-Choice CT Models.
Usage
This adapter model is meant to be used on top of meta-llama/Llama-2-7b-hf
model generations.
The confidence estimation pipeline follows these steps,
- Load base model and PEFT adapter.
- Disable adapter and generate answer.
- Enable adapter and generate confidence.
All standard guidelines for the base model's generation apply.
For a complete example, see play.py at the supporting code repository.
NOTE: Using the adapter for generations may hurt downstream task accuracy and confidence estimates. We recommend using the adapter to estimate only confidence.
License
The model is released under the original model's Llama 2 Community License Agreement.