Decentralized LoRA fine-tuning of a small LLM (Qwen/Qwen3-0.6B) across 5 clients.
| Setting | Value |
|---|---|
| Model | Qwen/Qwen3-0.6B + LoRA (r=8, on q_proj/v_proj) |
| Topology | Barabási–Albert (n=50, m=1) |
| Aggregation | DecAvg, 200 communication rounds |
| Partitioning | IID (5% validation split) |
| Data | Mix of 10 instruction datasets (finance, medical, SQL, cybersecurity, science) |
Only the LoRA adapter weights are trained and exchanged between clients, so each round shares a few MB per client instead of the full model.
Needs a GPU with at least 80 GB of memory (e.g. A100 80GB).
Run from this directory (examples/LLMs), so dEngine picks up the local dengine_llm package:
pip install -r requirements.txt
TORCH_CUDNN_BENCHMARK=True \
TORCH_CUDNN_DETERMINISTIC=False \
PYTHON_GIL=0 \
HF_TOKEN="<your_token_goes_here>" \
dengine-simulate --config config.yml