Triangle104 commited on
Commit
7b474ed
1 Parent(s): 43cd658

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +137 -0
README.md CHANGED
@@ -9,6 +9,143 @@ tags:
9
  This model was converted to GGUF format from [`FuseAI/FuseChat-Llama-3.2-1B-Instruct`](https://huggingface.co/FuseAI/FuseChat-Llama-3.2-1B-Instruct) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
10
  Refer to the [original model card](https://huggingface.co/FuseAI/FuseChat-Llama-3.2-1B-Instruct) for more details on the model.
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  ## Use with llama.cpp
13
  Install llama.cpp through brew (works on Mac and Linux)
14
 
 
9
  This model was converted to GGUF format from [`FuseAI/FuseChat-Llama-3.2-1B-Instruct`](https://huggingface.co/FuseAI/FuseChat-Llama-3.2-1B-Instruct) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
10
  Refer to the [original model card](https://huggingface.co/FuseAI/FuseChat-Llama-3.2-1B-Instruct) for more details on the model.
11
 
12
+ ---
13
+ Model details:
14
+ -
15
+ We present FuseChat-3.0, a series of models crafted to enhance
16
+ performance by integrating the strengths of multiple source LLMs into
17
+ more compact target LLMs. To achieve this fusion, we utilized four
18
+ powerful source LLMs: Gemma-2-27B-It, Mistral-Large-Instruct-2407,
19
+ Qwen-2.5-72B-Instruct, and Llama-3.1-70B-Instruct. For the target LLMs,
20
+ we employed three widely-used smaller models—Llama-3.1-8B-Instruct,
21
+ Gemma-2-9B-It, and Qwen-2.5-7B-Instruct—along with two even more compact
22
+ models—Llama-3.2-3B-Instruct and Llama-3.2-1B-Instruct. The implicit
23
+ model fusion process involves a two-stage training pipeline comprising
24
+ Supervised Fine-Tuning (SFT) to mitigate distribution discrepancies
25
+ between target and source LLMs, and Direct Preference Optimization (DPO)
26
+ for learning preferences from multiple source LLMs. The resulting
27
+ FuseChat-3.0 models demonstrated substantial improvements in tasks
28
+ related to general conversation, instruction following, mathematics, and
29
+ coding. Notably, when Llama-3.1-8B-Instruct served as the target LLM,
30
+ our fusion approach achieved an average improvement of 6.8 points across
31
+ 14 benchmarks. Moreover, it showed significant improvements of 37.1 and
32
+ 30.1 points on instruction-following test sets AlpacaEval-2 and
33
+ Arena-Hard respectively. We have released the FuseChat-3.0 models on Huggingface, stay tuned for the forthcoming dataset and code.
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+ Overview
42
+
43
+
44
+
45
+
46
+ Combining the strengths of multiple large language models (LLMs)
47
+ represents a promising approach to enhance individual model
48
+ capabilities. Model fusion is a technique that integrates the strengths
49
+ of robust source LLMs into a target LLM.
50
+
51
+
52
+ Previous iterations of the FuseChat
53
+ series employed probabilistic distribution matrices generated by source
54
+ models to transfer knowledge to target models. We refer to this method
55
+ as explicit model fusion (EMF) because it involves a
56
+ well-defined knowledge transfer process. While applicable to models with
57
+ varying architectures and sizes, and without increasing memory overhead
58
+ during inference, this approach presents notable challenges such as
59
+ vocabulary alignment and the merging of distribution matrices from
60
+ different LLMs. These issues complicate model fusion, reduce its
61
+ efficiency, and may introduce noise and errors and affect the fusion
62
+ results.
63
+
64
+
65
+ FuseChat-3.0, however, takes a different approach by enhancing a
66
+ single LLM through implicit learning from robust open-source LLMs, a
67
+ process we term implicit model fusion (IMF). The
68
+ concept of IMF has been widely utilized to improve the performance of
69
+ weaker models. For instance, a weak model can be boosted through
70
+ fine-tuning with outputs from stronger LLMs. Moreover, a reward model
71
+ can be trained using outputs from various LLMs, enabling it to learn and
72
+ capture the differences in capabilities between the LLMs. Zephyr
73
+ further collects responses from multiple LLMs and ranks them with GPT-4
74
+ to obtain preference data for training the policy. Inspired by recent
75
+ alignment techniques, we propose an IMF method to transfer the
76
+ capabilities of source LLMs to a target LLM through preference
77
+ optimization.
78
+
79
+
80
+ Our IMF method follows a three-stage process aimed at effectively
81
+ transferring capabilities from source LLMs to a target LLM. First,
82
+ during dataset construction, we sample N responses from
83
+ each of the source LLMs and annotate these responses using an external
84
+ reward model. Second, in the supervised fine-tuning (SFT)
85
+ stage, we fine-tune the target model using the best responses, which
86
+ not only enhances the target model's capabilities but also helps
87
+ mitigate the distributional gap between the source and target models.
88
+ Finally, in the direct preference optimization (DPO)
89
+ stage, we optimize the target model by using the best and worst
90
+ responses from the source models as preference pairs, further enhancing
91
+ the target model's performance. The complete pipeline will be detailed
92
+ in the following paragraph.
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+ Dataset
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ Prompt Selection
111
+
112
+
113
+
114
+
115
+ Our datasets were designed to enhance model's instruction following,
116
+ general conversation, mathematics, coding, and Chinese-language
117
+ capabilities. We selected data from open-source community datasets,
118
+ applying targeted filtering and preprocessing. Key datasets and
119
+ filtering criteria included:
120
+
121
+
122
+ Instruction Following & General Conversation: Sourced from UltraFeedback, Magpie-Pro-DPO-100K-v0.1, and HelpSteer2, excluding code and math data.
123
+ Mathematics: Selected from OpenMathInstruct-2, with nearly 60,000 unique samples.
124
+ Coding: Curated from leetcode and self-oss-instruct-sc2-exec-filter-50k, retaining prompts with test cases.
125
+ Chinese Language: Integrated alpaca_gpt4_zh and Magpie-Qwen2-Pro-200K-Chinese, filtering out code and math prompts to retain approximately 10,000 high-quality samples.
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+ Response Sampling
134
+
135
+
136
+
137
+
138
+ For each dataset's prompts, we synthesized responses mainly from four different series of source models, specifically Gemma-2-27b-It, Mistral-Large-Instruct-2407, Qwen-2.5-72B-Instruct, and Llama-3.1-70B-Instruct.
139
+
140
+
141
+ Instruction Following & General Conversation: We sampled each prompt five times from all the source models.
142
+ Mathematics: We retained the responses generated by
143
+ Llama-3.1-405B-Instruct from the original dataset (OpenMathInstruct-2)
144
+ and additionally sampled responses using Qwen-2.5-Math-72B-Instruct.
145
+ Coding: We sampled each prompt eight times for all source models.
146
+ Chinese Language: We included single response sampled exclusively from Qwen-2.5-72B-Instruct.
147
+
148
+ ---
149
  ## Use with llama.cpp
150
  Install llama.cpp through brew (works on Mac and Linux)
151