InternLM2 Technical Report
Authors: name: Zheng Cai, name: Maosong Cao, name: Haojiong Chen, name: Kai Chen, name: Keyu Chen, name: Xin Chen, name: Xun Chen, name: Zehui Chen, name: Zhi Chen, name: Pei Chu, name: Xiaoyi Dong, name: Haodong Duan, name: Qi Fan, name: Zhaoye Fei, name: Yang Gao, name: Jiaye Ge, name: Chenya Gu, name: Yuzhe Gu, name: Tao Gui, name: Aijia Guo, name: Qipeng Guo, name: Conghui He, name: Yingfan Hu, name: Ting Huang, name: Tao Jiang, name: Penglong Jiao, name: Zhenjiang Jin, name: Zhikai Lei, name: Jiaxing Li, name: Jingwen Li, name: Linyang Li, name: Shuaibin Li, name: Wei Li, name: Yining Li, name: Hongwei Liu, name: Jiangning Liu, name: Jiawei Hong, name: Kaiwen Liu, name: Kuikun Liu, name: Xiaoran Liu, name: Chengqi Lv, name: Haijun Lv, name: Kai Lv, name: Li Ma, name: Runyuan Ma, name: Zerun Ma, name: Wenchang Ning, name: Linke Ouyang, name: Jiantao Qiu, name: Yuan Qu, name: Fukai Shang, name: Yunfan Shao, name: Demin Song, name: Zifan Song, name: Zhihao Sui, name: Peng Sun, name: Yu Sun, name: Huanze Tang, name: Bin Wang, name: Guoteng Wang, name: Jiaqi Wang, name: Jiayu Wang, name: Rui Wang, name: Yudong Wang, name: Ziyi Wang, name: Xingjian Wei, name: Qizhen Weng, name: Fan Wu, name: Yingtong Xiong, name: Chao Xu, name: Ruiliang Xu, name: Hang Yan, name: Yirong Yan, name: Xiaogui Yang, name: Haochen Ye, name: Huaiyuan Ying, name: Jia Yu, name: Jing Yu, name: Yuhang Zang, name: Chuyu Zhang, name: Li Zhang, name: Pan Zhang, name: Peng Zhang, name: Ruijie Zhang, name: Shuo Zhang, name: Songyang Zhang, name: Wenjian Zhang, name: Wenwei Zhang, name: Xingcheng Zhang, name: Xinyue Zhang, name: Hui Zhao, name: Qian Zhao, name: Xiaomeng Zhao, name: Fengzhe Zhou, name: Zaida Zhou, name: Jingming Zhuo, name: Yicheng Zou, name: Xipeng Qiu, name: Yu Qiao, name: Dahua Lin

The evolution of Large Language Models (LLMs) like ChatGPT and GPT-4 has
sparked discussions on the advent of Artificial General Intelligence (AGI).
However, replicating such advancements in open-source models has been
challenging. This paper introduces InternLM2, an open-source LLM that
outperforms its predecessors in comprehensive evaluations across 6 dimensions
and 30 benchmarks, long-context modeling, and open-ended subjective evaluations
through innovative pre-training and optimization techniques. The pre-training
process of InternLM2 is meticulously detailed, highlighting the preparation of
diverse data types including text, code, and long-context data. InternLM2
efficiently captures long-term dependencies, initially trained on 4k tokens
before advancing to 32k tokens in pre-training and fine-tuning stages,
exhibiting remarkable performance on the 200k ``Needle-in-a-Haystack" test.
InternLM2 is further aligned using Supervised Fine-Tuning (SFT) and a novel
Conditional Online Reinforcement Learning from Human Feedback (COOL RLHF)
strategy that addresses conflicting human preferences and reward hacking. By
releasing InternLM2 models in different training stages and model sizes, we
provide the community with insights into the model's evolution.