hkust-nlp/deita-7B-v1.0

Model

Model Card for Deita 7B V1.0

11

12 commits

2 linked in READMEs

updated Dec 29, 2023

See the code

README

Deita banner

Model Card for Deita 7B V1.0

GitHub | Paper

Deita is an open-sourced project designed to facilitate Automatic Data Selection for instruction tuning in Large Language Models (LLMs). Deita 7B V1.0 is a fine-tuned + DPO version of Mistral-7B-v0.1 that was trained on 6K automatically selected lightweight, high-quality alignment SFT data: Deita 6K V0 and 10K randomly sampled alignment preference data from Ultrafeedback.

Model description

  • Model type: Model trained on automatically selected lightweight, high-quality alignment SFT data and 10K randomly sampled alignment preference data.
  • Language(s) (NLP): Primarily English
  • Finetuned from model: Mistral-7B-v0.1

Model Sources

Performance

ModelAlignData SizeMT-BenchAlpacaEval(%)OpenLLM (Avg.)
Proprietary Models
GPT-4-Turbo?--9.3297.70--
GPT-4SFT + PPO--8.9995.03--
Claude-2SFT + PPO--8.0691.36--
GPT-3.5-turboSFT + PPO--7.9489.37--
Open-sourced Models based on LLaMA-1-13B
LIMASFT1K SFT4.2941.9859.82
WizardLM-13BSFT70K SFT6.3575.3158.96
Vicuna-13B-v1.3SFT125K SFT6.3982.1160.01
RandomSFT10K SFT6.0371.5260.14
DEITA-LLaMA1-13B-v1.0-sftSFT10K SFT6.6078.0164.27
Open-sourced Models based on LLaMA-2-13B
Tulu-2-13BSFT326K SFT6.7078.90--
Tulu-2-13B+DPOSFT + DPO326K SFT + 60K DPO7.0089.50--
LLaMA2-13B-ChatSFT + PPO--6.6581.09--
WizardLM-13B-v1.2SFT>70K SFT7.0989.17--
Vicuna-13B-v1.5SFT125K SFT6.5778.8061.63
RandomSFT10K SFT5.7865.1961.32
DEITA-LLaMA2-13B-v1.0-sftSFT10K SFT6.7981.0962.71
Open-sourced Models based on Mistral-7B
Mistral-7B-Instruct-v0.1----6.8469.6560.45
Zephyr-7B-sftSFT200K SFT5.3275.1260.93
$\text{Zephyr-7B-}\beta$SFT + DPO200K SFT + 60K DPO7.3490.6066.36
OpenChat-3.5C-RLFT>> 70K C-RLFT7.8188.51--
Starling-7BC-RLFT + APA>>70K C-RLFT + 183K APA8.0991.99--
RandomSFT10K SFT5.8956.9061.72
DEITA-7B-v1.0-sft (6K)SFT6K SFT7.2280.7864.94
DEITA-7B-v1.0-sft (10K)SFT10K SFT7.3281.6764.00
DEITA-7B-v1.0SFT + DPO6K SFT + 10K DPO7.5590.0669.86

Input Format

The model is trained using the vicuna_v1.1 template

SFT Format

A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: Hello! ASSISTANT: Hi!</s>USER: How are you? ASSISTANT:

DPO Format

A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: <prompt> ASSISTANT: <answer></s>

where <answer> can be a chosen answer or a rejected answer.

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 2e-05
  • train_batch_size: 1
  • eval_batch_size: 1
  • seed: 42
  • distributed_type: multi-GPU
  • num_devices: 4
  • gradient_accumulation_steps: 128
  • total_train_batch_size: 512
  • total_eval_batch_size: 4
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: cosine
  • lr_scheduler_warmup_ratio: 0.1
  • num_epochs: 6.0

Framework versions

  • Transformers 4.34.1
  • Pytorch 2.1.0+cu121
  • Datasets 2.14.6
  • Tokenizers 0.14.1

Citation

If you find the content of this project helpful, please cite our paper as follows:

@misc{liu2023what,
      title={What Makes Good Data for Alignment? A Comprehensive Study of Automatic Data Selection in Instruction Tuning}, 
      author={Wei Liu and Weihao Zeng and Keqing He and Yong Jiang and Junxian He},
      year={2023},
      eprint={2312.15685},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
endpoints_compatible
mistral
safetensors
text-generation
text-generation-inference
transformers

Contributors

PeterV09

8 commits

AndrewZeng

3 commits

WL
Wei Liu

1 commits

hkust-nlp/deita-7B-v1.0

Model

Model Card for Deita 7B V1.0

11

12 commits

2 linked in READMEs

updated Dec 29, 2023

See the code

README

Deita banner

Model Card for Deita 7B V1.0

GitHub | Paper

Deita is an open-sourced project designed to facilitate Automatic Data Selection for instruction tuning in Large Language Models (LLMs). Deita 7B V1.0 is a fine-tuned + DPO version of Mistral-7B-v0.1 that was trained on 6K automatically selected lightweight, high-quality alignment SFT data: Deita 6K V0 and 10K randomly sampled alignment preference data from Ultrafeedback.

Model description

  • Model type: Model trained on automatically selected lightweight, high-quality alignment SFT data and 10K randomly sampled alignment preference data.
  • Language(s) (NLP): Primarily English
  • Finetuned from model: Mistral-7B-v0.1

Model Sources

Performance

ModelAlignData SizeMT-BenchAlpacaEval(%)OpenLLM (Avg.)
Proprietary Models
GPT-4-Turbo?--9.3297.70--
GPT-4SFT + PPO--8.9995.03--
Claude-2SFT + PPO--8.0691.36--
GPT-3.5-turboSFT + PPO--7.9489.37--
Open-sourced Models based on LLaMA-1-13B
LIMASFT1K SFT4.2941.9859.82
WizardLM-13BSFT70K SFT6.3575.3158.96
Vicuna-13B-v1.3SFT125K SFT6.3982.1160.01
RandomSFT10K SFT6.0371.5260.14
DEITA-LLaMA1-13B-v1.0-sftSFT10K SFT6.6078.0164.27
Open-sourced Models based on LLaMA-2-13B
Tulu-2-13BSFT326K SFT6.7078.90--
Tulu-2-13B+DPOSFT + DPO326K SFT + 60K DPO7.0089.50--
LLaMA2-13B-ChatSFT + PPO--6.6581.09--
WizardLM-13B-v1.2SFT>70K SFT7.0989.17--
Vicuna-13B-v1.5SFT125K SFT6.5778.8061.63
RandomSFT10K SFT5.7865.1961.32
DEITA-LLaMA2-13B-v1.0-sftSFT10K SFT6.7981.0962.71
Open-sourced Models based on Mistral-7B
Mistral-7B-Instruct-v0.1----6.8469.6560.45
Zephyr-7B-sftSFT200K SFT5.3275.1260.93
$\text{Zephyr-7B-}\beta$SFT + DPO200K SFT + 60K DPO7.3490.6066.36
OpenChat-3.5C-RLFT>> 70K C-RLFT7.8188.51--
Starling-7BC-RLFT + APA>>70K C-RLFT + 183K APA8.0991.99--
RandomSFT10K SFT5.8956.9061.72
DEITA-7B-v1.0-sft (6K)SFT6K SFT7.2280.7864.94
DEITA-7B-v1.0-sft (10K)SFT10K SFT7.3281.6764.00
DEITA-7B-v1.0SFT + DPO6K SFT + 10K DPO7.5590.0669.86

Input Format

The model is trained using the vicuna_v1.1 template

SFT Format

A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: Hello! ASSISTANT: Hi!</s>USER: How are you? ASSISTANT:

DPO Format

A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: <prompt> ASSISTANT: <answer></s>

where <answer> can be a chosen answer or a rejected answer.

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 2e-05
  • train_batch_size: 1
  • eval_batch_size: 1
  • seed: 42
  • distributed_type: multi-GPU
  • num_devices: 4
  • gradient_accumulation_steps: 128
  • total_train_batch_size: 512
  • total_eval_batch_size: 4
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: cosine
  • lr_scheduler_warmup_ratio: 0.1
  • num_epochs: 6.0

Framework versions

  • Transformers 4.34.1
  • Pytorch 2.1.0+cu121
  • Datasets 2.14.6
  • Tokenizers 0.14.1

Citation

If you find the content of this project helpful, please cite our paper as follows:

@misc{liu2023what,
      title={What Makes Good Data for Alignment? A Comprehensive Study of Automatic Data Selection in Instruction Tuning}, 
      author={Wei Liu and Weihao Zeng and Keqing He and Yong Jiang and Junxian He},
      year={2023},
      eprint={2312.15685},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
endpoints_compatible
mistral
safetensors
text-generation
text-generation-inference
transformers

Contributors

PeterV09

8 commits

AndrewZeng

3 commits

WL
Wei Liu

1 commits