Update README.md
Browse files
README.md
CHANGED
@@ -9,96 +9,99 @@ tags: []
|
|
9 |
|
10 |
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
## Model Details
|
13 |
|
14 |
-
### Model Description
|
15 |
|
16 |
<!-- Provide a longer summary of what this model is. -->
|
17 |
|
18 |
-
|
|
|
19 |
|
20 |
-
- **Developed by:**
|
21 |
-
- **Funded by [optional]:**
|
22 |
-
- **Shared by [optional]:**
|
23 |
-
- **Model type:**
|
24 |
-
- **Language(s) (NLP):**
|
25 |
-
- **License:**
|
26 |
-
- **Finetuned from model [optional]:**
|
27 |
|
28 |
### Model Sources [optional]
|
29 |
|
30 |
<!-- Provide the basic links for the model. -->
|
31 |
|
32 |
-
- **Repository:**
|
33 |
-
- **Paper [optional]:**
|
34 |
-
|
35 |
|
36 |
## Uses
|
37 |
|
38 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
39 |
|
40 |
-
### Direct Use
|
41 |
|
42 |
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
43 |
|
44 |
-
|
45 |
|
46 |
-
### Downstream Use [optional]
|
47 |
|
48 |
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
49 |
-
|
50 |
-
[More Information Needed]
|
51 |
|
52 |
### Out-of-Scope Use
|
53 |
|
54 |
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
55 |
|
56 |
-
|
57 |
|
58 |
## Bias, Risks, and Limitations
|
59 |
|
60 |
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
61 |
|
62 |
-
|
63 |
-
|
64 |
-
### Recommendations
|
65 |
-
|
66 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
67 |
-
|
68 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
69 |
|
70 |
## How to Get Started with the Model
|
71 |
-
|
72 |
-
Use the code below to get started with the model.
|
73 |
-
|
74 |
-
[More Information Needed]
|
75 |
|
76 |
## Training Details
|
|
|
|
|
|
|
|
|
|
|
77 |
|
78 |
### Training Data
|
|
|
79 |
|
80 |
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
81 |
|
82 |
-
[More Information Needed]
|
83 |
|
84 |
### Training Procedure
|
85 |
|
86 |
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
87 |
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
|
92 |
|
93 |
-
#### Training Hyperparameters
|
94 |
-
|
95 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
96 |
-
|
97 |
-
#### Speeds, Sizes, Times [optional]
|
98 |
-
|
99 |
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
100 |
|
101 |
-
[More Information Needed]
|
102 |
|
103 |
## Evaluation
|
104 |
|
@@ -106,11 +109,10 @@ Use the code below to get started with the model.
|
|
106 |
|
107 |
### Testing Data, Factors & Metrics
|
108 |
|
109 |
-
#### Testing Data
|
110 |
|
111 |
<!-- This should link to a Dataset Card if possible. -->
|
112 |
|
113 |
-
|
114 |
|
115 |
#### Factors
|
116 |
|
@@ -142,31 +144,37 @@ Use the code below to get started with the model.
|
|
142 |
|
143 |
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
144 |
|
|
|
|
|
145 |
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
146 |
|
147 |
-
- **Hardware Type:**
|
148 |
-
- **Hours used:**
|
149 |
-
- **
|
150 |
-
- **
|
151 |
-
- **Carbon Emitted:** [More Information Needed]
|
152 |
|
153 |
## Technical Specifications [optional]
|
154 |
|
155 |
### Model Architecture and Objective
|
156 |
|
157 |
-
|
|
|
|
|
|
|
|
|
|
|
158 |
|
159 |
### Compute Infrastructure
|
160 |
|
161 |
-
|
162 |
|
163 |
#### Hardware
|
164 |
|
165 |
-
|
166 |
|
167 |
#### Software
|
168 |
|
169 |
-
|
170 |
|
171 |
## Citation [optional]
|
172 |
|
|
|
9 |
|
10 |
|
11 |
|
12 |
+
## Overview
|
13 |
+
|
14 |
+
|
15 |
+
**DeepAutoAI/Explore_Llama-3.2-1B-Inst** is developed by **deepAuto.ai** by learning the distribution of llama-3.2-1B-instruct.
|
16 |
+
Our approach leverages the base model’s pretrained weights and optimizes them for the **Winogrande** and **ARC-Challenge** datasets by
|
17 |
+
training a latent diffusion model on the pretrained weights. specifically , this model is based on learning the distrinution of transformer layers from 16 to 31.
|
18 |
+
|
19 |
+
Through this process, we learn the distribution of the base model's weight space, enabling us to explore optimal configurations.
|
20 |
+
We then sample multiple sets of weights, using the **model-soup averaging technique** to identify the best-performing weights for both datasets.
|
21 |
+
These weights are merged using linear interpolation to create the final model weights for **DeepAutoAI/Explore_Llama-3.1-1B-Inst**.
|
22 |
+
|
23 |
+
This approach has led to improved performance on previously unseen leaderboard tasks, all without any additional task-specific training.
|
24 |
+
|
25 |
+
The work is currently in progress
|
26 |
+
|
27 |
+
|
28 |
## Model Details
|
29 |
|
|
|
30 |
|
31 |
<!-- Provide a longer summary of what this model is. -->
|
32 |
|
33 |
+
We trained a diffusion model to learn the distribution of subset of llama to enable generation weights that improve the performance.
|
34 |
+
We generate task specific weights on winogrande and arc_challenge then transfer the best model for leaderboard benchmarking.
|
35 |
|
36 |
+
- **Developed by:** DeepAuto.ai
|
37 |
+
- **Funded by [optional]:** DeepAuto.ai
|
38 |
+
- **Shared by [optional]:** DeepAuto.ai
|
39 |
+
- **Model type:** llama-3.2-1B
|
40 |
+
- **Language(s) (NLP):** English
|
41 |
+
- **License:** NA
|
42 |
+
- **Finetuned from model [optional]:** No fine-tuning
|
43 |
|
44 |
### Model Sources [optional]
|
45 |
|
46 |
<!-- Provide the basic links for the model. -->
|
47 |
|
48 |
+
- **Repository:** Under construction
|
49 |
+
- **Paper [optional]:** To be announce
|
50 |
+
|
51 |
|
52 |
## Uses
|
53 |
|
54 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
55 |
|
|
|
56 |
|
57 |
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
58 |
|
59 |
+
The direct use case of our work is o improve existing model performance as well as generating task specific weights with no training.
|
60 |
|
|
|
61 |
|
62 |
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
63 |
+
Performance improvement of existing large models with limited compute
|
|
|
64 |
|
65 |
### Out-of-Scope Use
|
66 |
|
67 |
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
68 |
|
69 |
+
No fine-tuning or architecture generalization
|
70 |
|
71 |
## Bias, Risks, and Limitations
|
72 |
|
73 |
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
74 |
|
75 |
+
Using a generative model to produce weights can potentially lead to unintended or undesirable outputs. However, the generated content
|
76 |
+
will still fall within the range of what the base model is inherently capable of producing.
|
|
|
|
|
|
|
|
|
|
|
77 |
|
78 |
## How to Get Started with the Model
|
79 |
+
The work is under progress
|
|
|
|
|
|
|
80 |
|
81 |
## Training Details
|
82 |
+
We employed a latent diffusion process on pretrained model weights, unlocking the ability to generate diverse, previously unseen neural networks.
|
83 |
+
Remarkably, even within the constraints of one-shot learning, our approach consistently produces a wide range of weight variations, each offering
|
84 |
+
distinct performance characteristics. These generated weights not only open opportunities for weight averaging and model merging but also have the
|
85 |
+
potential to significantly enhance model performance. Moreover, they enable the creation of task-specific weights, tailored to optimize performance
|
86 |
+
for specialized applications
|
87 |
|
88 |
### Training Data
|
89 |
+
The training data used to produced the current model is the base pretrained weights
|
90 |
|
91 |
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
92 |
|
|
|
93 |
|
94 |
### Training Procedure
|
95 |
|
96 |
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
97 |
|
98 |
+
- We selected a set of layers and combined their pretrained weights, then trained a Variational Autoencoder (VAE) to encode these weights into the layer dimension.
|
99 |
+
- We conditionally trained a diffusion model on this set of weights, allowing individual sampling of layer-specific weights.
|
100 |
+
- All selected layers were encoded into a 1024-dimensional space. This model exclusively contained the sampled weights for layer normalization."
|
101 |
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
104 |
|
|
|
105 |
|
106 |
## Evaluation
|
107 |
|
|
|
109 |
|
110 |
### Testing Data, Factors & Metrics
|
111 |
|
|
|
112 |
|
113 |
<!-- This should link to a Dataset Card if possible. -->
|
114 |
|
115 |
+
We test our method on Winogrande and arc_challenge, and hellaswag
|
116 |
|
117 |
#### Factors
|
118 |
|
|
|
144 |
|
145 |
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
146 |
|
147 |
+
|
148 |
+
|
149 |
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
150 |
|
151 |
+
- **Hardware Type:** Nvidia-A100-40Gb
|
152 |
+
- **Hours used:** VAE is trained for 4 hour and diffusion process 4 hours
|
153 |
+
- **Compute Region:** South Korea
|
154 |
+
- **Carbon Emitted:** 0.96kg
|
|
|
155 |
|
156 |
## Technical Specifications [optional]
|
157 |
|
158 |
### Model Architecture and Objective
|
159 |
|
160 |
+
We used Latent diffusion for weights generation, and llama3-2-1B as target architectures.
|
161 |
+
|
162 |
+
The primary objective of this weight generation process was to demonstrate that by learning only the distribution
|
163 |
+
of few layers weights (normlaization layers in this case) in an 1-billion-parameter model, it is possible to significantly enhance the
|
164 |
+
model's capabilities. Notably, this is achieved using a fraction of the computational resources and without the
|
165 |
+
need for fine-tuning, showcasing the efficiency and potential of this approach.
|
166 |
|
167 |
### Compute Infrastructure
|
168 |
|
169 |
+
Nvidia-A100 cluster
|
170 |
|
171 |
#### Hardware
|
172 |
|
173 |
+
A single Nvidia-A100
|
174 |
|
175 |
#### Software
|
176 |
|
177 |
+
Model is tested using lm-harness tool version 0.4.3
|
178 |
|
179 |
## Citation [optional]
|
180 |
|