Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- ar
|
| 5 |
+
license: mit
|
| 6 |
+
tags:
|
| 7 |
+
- model-merging
|
| 8 |
+
- hybridization
|
| 9 |
+
- monolingual
|
| 10 |
+
- zero-padding
|
| 11 |
+
pretty_name: Monolingual Hybridization Research
|
| 12 |
+
---
|
| 13 |
+
# Monolingual Hybridization Research
|
| 14 |
+
|
| 15 |
+
**Author:** Mouad Tarif
|
| 16 |
+
**Date:** April 2026
|
| 17 |
+
**Type:** Independent Research Log
|
| 18 |
+
|
| 19 |
+
## Summary
|
| 20 |
+
|
| 21 |
+
This work documents experiments on hybridizing monolingual language models without retraining. The goal is to create a functional merged model that preserves both original languages and exhibits emergent cross-lingual capabilities.
|
| 22 |
+
|
| 23 |
+
## Papers
|
| 24 |
+
|
| 25 |
+
### Paper 1: Hybridizing the Incompatible
|
| 26 |
+
**Date:** 11 April 2026
|
| 27 |
+
**DOI:** [10.5281/zenodo.19520544](https://doi.org/10.5281/zenodo.19520544)
|
| 28 |
+
|
| 29 |
+
Experiment: Monolingual model + NLLB (Meta).
|
| 30 |
+
Result: ≈50% success, arithmetic collapse, NLLB dominance.
|
| 31 |
+
Insight: "Hybridizing is like genetic engineering — the host may reject foreign genes unless made compatible."
|
| 32 |
+
|
| 33 |
+
### Paper 2: The Final Hybrid
|
| 34 |
+
**Date:** 14 April 2026
|
| 35 |
+
**DOI:** [10.5281/zenodo.19562409](https://doi.org/10.5281/zenodo.19562409)
|
| 36 |
+
|
| 37 |
+
Method: Zero-padding expansion for 2D tensors, repetition for 1D tensors. RAM limited to 4GB. Tokenizer alignment (tokenizer.json vs vocab.json).
|
| 38 |
+
Result: Both original languages preserved, no single model dominates, emergent cross-lingual capabilities observed.
|
| 39 |
+
|
| 40 |
+
## Code
|
| 41 |
+
|
| 42 |
+
[GitHub: Monolingual-Hybridization](https://github.com/mouad-tarif/Monolingual-Hybridization)
|
| 43 |
+
**Date:** 14 April 2026
|
| 44 |
+
|
| 45 |
+
## Files
|
| 46 |
+
|
| 47 |
+
- `hybridize_models.py` — Main hybridization script
|
| 48 |
+
- `load_and_test_hybrid.py` — Load and test script
|
| 49 |
+
|
| 50 |
+
## Citation
|
| 51 |
+
|
| 52 |
+
```bibtex
|
| 53 |
+
@misc{tarif2026hybrid,
|
| 54 |
+
title={Monolingual Hybridization Research},
|
| 55 |
+
author={Tarif, Mouad},
|
| 56 |
+
year={2026},
|
| 57 |
+
doi={10.5281/zenodo.19520544}
|
| 58 |
+
}
|