--- 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)