Update README.md
Browse files
README.md
CHANGED
@@ -9,7 +9,7 @@ model-index:
|
|
9 |
results: []
|
10 |
---
|
11 |
|
12 |
-
# 🐦 Magpie
|
13 |
|
14 |
Project Web: [https://magpie-align.github.io/](https://magpie-align.github.io/)
|
15 |
|
@@ -18,14 +18,15 @@ Arxiv Technical Report: [https://arxiv.org/abs/2406.08464](https://arxiv.org/abs
|
|
18 |
Codes: [https://github.com/magpie-align/magpie](https://github.com/magpie-align/magpie)
|
19 |
|
20 |
## Abstract
|
21 |
-
|
22 |
High-quality instruction data is critical for aligning large language models (LLMs). Although some models, such as Llama-3-Instruct, have open weights, their alignment data remain private, which hinders the democratization of AI. High human labor costs and a limited, predefined scope for prompting prevent existing open-source data creation methods from scaling effectively, potentially limiting the diversity and quality of public alignment datasets. Is it possible to synthesize high-quality instruction data at scale by extracting it directly from an aligned LLM? We present a self-synthesis method for generating large-scale alignment data named Magpie. Our key observation is that aligned LLMs like Llama-3-Instruct can generate a user query when we input only the left-side templates up to the position reserved for user messages, thanks to their auto-regressive nature. We use this method to prompt Llama-3-Instruct and generate 4 million instructions along with their corresponding responses. We perform a comprehensive analysis of the extracted data and select 300K high-quality instances. To compare Magpie data with other public instruction datasets, we fine-tune Llama-3-8B-Base with each dataset and evaluate the performance of the fine-tuned models. Our results indicate that in some tasks, models fine-tuned with Magpie perform comparably to the official Llama-3-8B-Instruct, despite the latter being enhanced with 10 million data points through supervised fine-tuning (SFT) and subsequent feedback learning. We also show that using Magpie solely for SFT can surpass the performance of previous public datasets utilized for both SFT and preference optimization, such as direct preference optimization with UltraFeedback. This advantage is evident on alignment benchmarks such as AlpacaEval, ArenaHard, and WildBench.
|
|
|
23 |
|
24 |
## About This Model
|
25 |
|
26 |
This model is a fine-tuned version of [meta-llama/Meta-Llama-3-8B](https://huggingface.co/meta-llama/Meta-Llama-3-8B) on [Magpie-Align/Magpie-Pro-300K-Filtered](https://huggingface.co/datasets/Magpie-Align/Magpie-Pro-300K-Filtered) dataset.
|
27 |
|
28 |
-
It achieves performance comparable with the official Llama-3-8B-Instruct Model
|
29 |
|
30 |
- **Alpaca Eval 2 (GPT-4-Turbo-1106): 25.08 (LC), 29.47 (WR)**
|
31 |
- **Alpaca Eval 2 (Llama-3-8B-Instruct): 52.12 (LC), 53.43 (WR)**
|
|
|
9 |
results: []
|
10 |
---
|
11 |
|
12 |
+
# 🐦 Llama-3-8B-Magpie-Pro-SFT-v0.1
|
13 |
|
14 |
Project Web: [https://magpie-align.github.io/](https://magpie-align.github.io/)
|
15 |
|
|
|
18 |
Codes: [https://github.com/magpie-align/magpie](https://github.com/magpie-align/magpie)
|
19 |
|
20 |
## Abstract
|
21 |
+
<details><summary>Click Here</summary>
|
22 |
High-quality instruction data is critical for aligning large language models (LLMs). Although some models, such as Llama-3-Instruct, have open weights, their alignment data remain private, which hinders the democratization of AI. High human labor costs and a limited, predefined scope for prompting prevent existing open-source data creation methods from scaling effectively, potentially limiting the diversity and quality of public alignment datasets. Is it possible to synthesize high-quality instruction data at scale by extracting it directly from an aligned LLM? We present a self-synthesis method for generating large-scale alignment data named Magpie. Our key observation is that aligned LLMs like Llama-3-Instruct can generate a user query when we input only the left-side templates up to the position reserved for user messages, thanks to their auto-regressive nature. We use this method to prompt Llama-3-Instruct and generate 4 million instructions along with their corresponding responses. We perform a comprehensive analysis of the extracted data and select 300K high-quality instances. To compare Magpie data with other public instruction datasets, we fine-tune Llama-3-8B-Base with each dataset and evaluate the performance of the fine-tuned models. Our results indicate that in some tasks, models fine-tuned with Magpie perform comparably to the official Llama-3-8B-Instruct, despite the latter being enhanced with 10 million data points through supervised fine-tuning (SFT) and subsequent feedback learning. We also show that using Magpie solely for SFT can surpass the performance of previous public datasets utilized for both SFT and preference optimization, such as direct preference optimization with UltraFeedback. This advantage is evident on alignment benchmarks such as AlpacaEval, ArenaHard, and WildBench.
|
23 |
+
</details><be>
|
24 |
|
25 |
## About This Model
|
26 |
|
27 |
This model is a fine-tuned version of [meta-llama/Meta-Llama-3-8B](https://huggingface.co/meta-llama/Meta-Llama-3-8B) on [Magpie-Align/Magpie-Pro-300K-Filtered](https://huggingface.co/datasets/Magpie-Align/Magpie-Pro-300K-Filtered) dataset.
|
28 |
|
29 |
+
It achieves performance comparable with the official Llama-3-8B-Instruct Model with SFT only!
|
30 |
|
31 |
- **Alpaca Eval 2 (GPT-4-Turbo-1106): 25.08 (LC), 29.47 (WR)**
|
32 |
- **Alpaca Eval 2 (Llama-3-8B-Instruct): 52.12 (LC), 53.43 (WR)**
|