---
base_model:
- meta-llama/Llama-3.1-8B
- Alelcv27/Llama3.1-8B-Base-Math
- Alelcv27/Llama3.1-8B-Base-Code
library_name: transformers
tags:
- mergekit
- merge

---
# Llama3.1-8B-Base-ModelStock-Math-Code

This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).

## Merge Details
### Merge Method

This model was merged using the [Model Stock](https://arxiv.org/abs/2403.19522) merge method using [meta-llama/Llama-3.1-8B](https://huggingface.co/meta-llama/Llama-3.1-8B) as a base.

### Models Merged

The following models were included in the merge:
* [Alelcv27/Llama3.1-8B-Base-Math](https://huggingface.co/Alelcv27/Llama3.1-8B-Base-Math)
* [Alelcv27/Llama3.1-8B-Base-Code](https://huggingface.co/Alelcv27/Llama3.1-8B-Base-Code)

### Configuration

The following YAML configuration was used to produce this model:

```yaml
base_model: meta-llama/Llama-3.1-8B
dtype: bfloat16
merge_method: model_stock
modules:
  default:
    slices:
    - sources:
      - layer_range: [0, 32]
        model: Alelcv27/Llama3.1-8B-Base-Math
      - layer_range: [0, 32]
        model: Alelcv27/Llama3.1-8B-Base-Code
      - layer_range: [0, 32]
        model: meta-llama/Llama-3.1-8B
```
