merge-my-models / README.md
afouda's picture
Upload folder using huggingface_hub
a6cf7af verified
|
raw
history blame
764 Bytes
---
license: apache-2.0
tags:
- merge
- mergekit
- lazymergekit
- allenai/longformer-base-4096
- gpt2
---
# merge my models
merge my models is a merge of the following models using [mergekit](https://github.com/cg123/mergekit):
* [allenai/longformer-base-4096](https://huggingface.co./allenai/longformer-base-4096)
* [gpt2](https://huggingface.co./gpt2)
## 🧩 Configuration
```yaml{'slices': [{'sources': [{'model': 'allenai/longformer-base-4096', 'layer_range': [0, 12]}, {'model': 'gpt2', 'layer_range': [0, 12]}]}], 'merge_method': 'slerp', 'base_model': 'allenai/longformer-base-4096', 'parameters': {'t': [{'filter': 'self_attn', 'value': [0, 0.5, 0.3, 0.7, 1]}, {'filter': 'mlp', 'value': [1, 0.5, 0.7, 0.3, 0]}, {'value': 0.5}]}, 'dtype': 'bfloat16'}```