File size: 2,755 Bytes
ad01868
 
 
 
bd71d13
296f3f5
 
ad01868
d0030b9
ad01868
 
b404f5b
100e700
d0030b9
bd71d13
 
a9f4e16
ad01868
3af39e6
 
ad01868
 
 
 
1234090
ad01868
 
 
 
33f00f4
ad01868
 
 
33f00f4
ad01868
 
 
 
 
 
 
 
 
 
 
9ceea8a
53d8096
9ceea8a
 
de1839f
9ceea8a
 
 
de1839f
9ceea8a
 
fd0b337
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
base_model:
- mistralai/Mistral-7B-Instruct-v0.3
library_name: transformers
license: apache-2.0
language:
- en
---

# mistral-7b-instruct-v0.3-depth-upscaling

![image/webp](https://cdn-uploads.huggingface.co/production/uploads/643eab4f05a395e2b1c727e3/qwYq9q2PpTfYwb1nsym9u.webp)Mistral:
a strong, cold northwesterly wind that blows through the Rhône valley and southern France into the Mediterranean, mainly in winter.

![image/png](https://cdn-uploads.huggingface.co/production/uploads/643eab4f05a395e2b1c727e3/elcrExK_Q5MQjcdAjYi9V.png)

This is an attempt at depth upscaling , Based on the paper [SOLAR 10.7B: Scaling Large Language Models with Simple yet Effective Depth Up-Scaling](https://arxiv.org/abs/2312.15166), which is a technique designed to efficiently scale large language models. The process begins with structural depthwise scaling which may initially reduce performance, but this is rapidly restored during a crucial continued pretraining phase. This phase optimizes the expanded model's parameters to the new depth configuration, significantly enhancing performance.

It's important to note that this represents only the initial phase of the model's development. The next critical steps involve fine-tuning. As expected and according to the paper, the initial upscaled model in phase one (without fine-tuning) scores lower than the base model. This is expected to improve above and beyond this after fine-tuning is finished.
Feel free to fine-tune on your own dataset.

## Merge Details
### Merge Method

This model was merged using the passthrough merge method. The first 24 layers of one copy of the model are stitched to the last 24 layers of another copy, resulting in a total of 48 layers with 10.7B parameters.

### Models Merged

The following models were included in the merge:
* [mistralai/Mistral-7B-Instruct-v0.3](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3) merged with itself.

### Configuration

The following configuration was used to produce this model:

```yaml
slices:
  - sources:
    - model: mistralai/Mistral-7B-Instruct-v0.3
      layer_range: [0, 24]
  - sources:
    - model: mistralai/Mistral-7B-Instruct-v0.3
      layer_range: [8, 32]
merge_method: passthrough
dtype: bfloat16
```
Eval results:
| Metric               | Value |
|----------------------|-------|
| **Avg.**             | 64.04 |
| **ARC (25-shot)**    | 63.14 |
| **HellaSwag (10-shot)** | 83.29 |
| **MMLU (5-shot)**    | 62.31 |
| **TruthfulQA (0-shot)** | 60.65 |
| **Winogrande (5-shot)** | 78.45 |
| **GSM8K (5-shot)**   | 36.39 |
Full results [here](https://huggingface.co/datasets/open-llm-leaderboard/details_giannisan__Mistral-10.7B-Instruct-v0.3-depth-upscaling/blob/main/results_2024-05-30T06-01-17.134852.json)