Gemma 2 Baku 2B Instruct (rinna/gemma-2-baku-2b-it)
rinna-icon
Overview
The model is an instruction-tuned variant of rinna/gemma-2-baku-2b, utilizing Chat Vector and Odds Ratio Preference Optimization (ORPO) for fine-tuning. It adheres to the gemma-2 chat format.
A 26-layer, 2304-hidden-size transformer-based language model. Please refer to the Gemma 2 Model Card for detailed information on the model's architecture.
Training
Model merging. The base model was endowed with instruction-following capabilities through a chat vector addition process. The chat vector was derived by subtracting the parameter vectors of google/gemma-2-2b from google/gemma-2-2b-it, as follows.
It is recommended to use eager attention when conducting batch inference under bfloat16 precision.
Currently, Gemma 2 yields NaN values for input sequences with padding when the default attention mechanism (torch.scaled_dot_product_attention) is employed in conjunction with bfloat16.
1@misc{rinna-gemma-2-baku-2b-it,
2 title = {rinna/gemma-2-baku-2b-it},
3 author = {Chen, Xinqi and Wakatsuki, Toshiaki and Sawada, Kei},
4 url = {https://huggingface.co/rinna/gemma-2-baku-2b-it}
5}
67@inproceedings{sawada2024release,
8 title = {Release of Pre-Trained Models for the {J}apanese Language},
9 author = {Sawada, Kei and Zhao, Tianyu and Shing, Makoto and Mitsui, Kentaro and Kaga, Akio and Hono, Yukiya and Wakatsuki, Toshiaki and Mitsuda, Koh},
10 booktitle = {Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)},
11 month = {5},
12 year = {2024},
13 pages = {13898--13905},
14 url = {https://aclanthology.org/2024.lrec-main.1213},
15 note = {\url{https://arxiv.org/abs/2404.01657}}
16}
References
bibtex
1@article{gemma-2-2024,
2 title = {Gemma 2},
3 url = {https://www.kaggle.com/models/google/gemma-2},
4 publisher = {Kaggle},
5 author = {Gemma Team},
6 year = {2024}
7}
89@article{huang2023chat,
10 title = {Chat Vector: A Simple Approach to Equip LLMs with Instruction Following and Model Alignment in New Languages},
11 author = {Huang, Shih-Cheng and Li, Pin-Zu and Hsu, Yu-Chi and Chen, Kuang-Ming and Lin, Yu Tung and Hsiao, Shih-Kai and Tzong-Han Tsai, Richard and Lee, Hung-yi},
12 year = {2023},
13 url = {https://arxiv.org/abs/2310.04799}
14}
1516@article{hong2024orpo,
17 title = {ORPO: Monolithic Preference Optimization without Reference Model},
18 author = {Hong, Jiwoo and Lee, Noah and Thorne, James},
19 year = {2024},
20 url = {https://arxiv.org/abs/2403.07691}
21}