Downloads · 30 days
0
mariklolik228/AraSwap-Qwen3-8B-Adapters
AraSwap-Qwen3-8B-Adapters is a machine learning model from mariklolik228. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Three separately trained LoRA experts for Qwen3-8B, composed via layer-selective merging.
Downloads · 30 days
0
Access
Public
Updated Mar 2, 2026
Repo size
1.7 GB
Likes
0
Public
Click a slice to open those files.
.safetensors1.7 GB · 100%
From the Hugging Face model README
Three separately trained LoRA experts for Qwen3-8B, composed via layer-selective merging.
| Adapter | Data | LoRA r | Steps |
|---|---|---|---|
arabic_expert/ | Arabic Wikipedia + Arabic MMLU | 64 | 1000 |
math_expert/ | GSM8K + MATH (English) | 64 | 1000 |
cultural_expert/ | ACVA + Arabic cultural subjects | 32 | 1000 |
Frobenius norm analysis of each expert's weight delta identifies layer specialization. Under a strict 15% dominance criterion, 4 layers are selected for swapping:
AraSwap merged OALL avg: 62.1% (4-bit, 0-shot)
Key finding: AraTrust 85.6% > baseline 85.2% (+0.4pp).
from peft import PeftModel
from transformers import AutoModelForCausalLM
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-8B")
model = PeftModel.from_pretrained(base, "mariklolik228/AraSwap-Qwen3-8B-Adapters", subfolder="arabic_expert")
@article{kashirskiy2026araswap,
title={AraSwap: Layer-Level Capability Composition for Arabic LLM Adaptation},
author={Kashirskiy, Mark and Lipinski, Artiom and Makarov, Ilya},
year={2026}
}