Infinity-Instruct-3M-0625-Yi-1.5-9B is an opensource supervised instruction tuning model without reinforcement learning from human feedback (RLHF). This model is just finetuned on Infinity-Instruct-3M and Infinity-Instruct-0625 and showing favorable results on AlpacaEval 2.0 and MT-Bench.
๐ฅ๐ฅ๐ฅ[2024/07/09] We release the chat dataset Infinity-Instruct-0625, it is a upgraded version of the Infinity-Instruct-0613.
๐ฅ๐ฅ๐ฅ[2024/06/28] We release the model weight of InfInstruct-Llama3-70B 0613. It shows favorable results on AlpacaEval 2.0 compared to GPT4-0613 without RLHF.
๐ฅ๐ฅ๐ฅ[2024/06/21] We release the model weight of InfInstruct-Mistral-7B 0613. It shows favorable results on AlpacaEval 2.0 compared to Mixtral 8x7B v0.1, Gemini Pro, and GPT-3.5 without RLHF.
๐ฅ๐ฅ๐ฅ[2024/06/13] We share the intermediate result of our data construction process (corresponding to the InfInstruct-3M in the table below). Our ongoing efforts focus on risk assessment and data generation. The finalized version with 10 million instructions is scheduled for release in late June.
Infinity-Instruct-3M-0625-Yi-1.5-9B is tuned on Million-level instruction dataset Infinity-Instruct. First, we apply the foundational dataset Infinity-Instruct-3M to improve the foundational ability (math & code) of Yi-1.5-9B, and get the foundational instruct model Infinity-Instruct-3M-Yi-1.5-9B. Then we finetune the Infinity-Instruct-3M-Yi-1.5-9B to get the stronger chat model Infinity-Instruct-3M-0625-Yi-1.5-9B. Here is the training hyperparamers.
Thanks to FlagScale, we could concatenate multiple training samples to remove padding token and apply diverse acceleration techniques to the traning procudure. It effectively reduces our training costs. We will release our code in the near future!
*denote the model is finetuned without reinforcement learning from human feedback (RLHF).
We evaluate Infinity-Instruct-3M-0625-Yi-1.5-9B on the two most popular instructions following benchmarks. Mt-Bench is a set of challenging multi-turn questions including code, math and routine dialogue. AlpacaEval2.0 is based on AlpacaFarm evaluation set. Both of these two benchmarks use GPT-4 to judge the model answer. AlpacaEval2.0 displays a high agreement rate with human-annotated benchmark, Chatbot Arena.
The resources, including code, data, and model weights, associated with this project are restricted for academic research purposes only and cannot be used for commercial purposes. The content produced by any version of Infinity Instruct is influenced by uncontrollable variables such as randomness, and therefore, the accuracy of the output cannot be guaranteed by this project. This project does not accept any legal liability for the content of the model output, nor does it assume responsibility for any losses incurred due to the use of associated resources and output results.
import os
os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com"
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("BAAI/Infinity-Instruct-3M-0625-Yi-1.5-9B", revision="a42c86c61b98ca4fdf238d688fe6ea11cf414d29")
model = AutoModelForCausalLM.from_pretrained("BAAI/Infinity-Instruct-3M-0625-Yi-1.5-9B", revision="a42c86c61b98ca4fdf238d688fe6ea11cf414d29", device_map="auto")