Update: Decoder-cdlm-llada-12epoch
Browse files- README.md +38 -3
- adapter_config.json +45 -0
- adapter_model.safetensors +3 -0
README.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CDLM-LLaDA LoRA adapter for LLaDA-8B-Instruct
|
| 2 |
+
|
| 3 |
+
This repository hosts the LoRA adapter for the LLaDA-8B-Instruct diffusion LLM (dLLM), produced with the CDLM (Consistency Diffusion Language Models) method. CDLM integrates consistency modeling and a block-wise causal attention mask so the student model becomes fully KV-cache compatible while retaining the strong local bidirectional modeling within each block. In practice, the adapter enables significantly faster inference with competitive quality.
|
| 4 |
+
|
| 5 |
+
- GitHub: https://github.com/minseo25/CDLM
|
| 6 |
+
- Paper: TBA
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
## Model details
|
| 10 |
+
|
| 11 |
+
- Base model: GSAI-ML/LLaDA-8B-Instruct
|
| 12 |
+
- Method: CDLM (consistency distillation + block-wise causal masking for KV-cache compatibility)
|
| 13 |
+
- Format: PEFT LoRA adapter (`adapter_model.safetensors`, `adapter_config.json`)
|
| 14 |
+
- Intended use: attach this adapter to the base LLaDA-8B-Instruct model for accelerated inference via the CDLM decoding path
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
## How to use
|
| 18 |
+
|
| 19 |
+
This is a LoRA adapter, not a full model. You must load the base model and then attach this adapter. For best speedups, use the CDLM inference path in the accompanying codebase.
|
| 20 |
+
|
| 21 |
+
## License
|
| 22 |
+
|
| 23 |
+
This adapter is released under the MIT License. The base model is governed by its own license; please ensure compliance with the base model’s terms.
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
## Citation
|
| 27 |
+
|
| 28 |
+
We will update the BibTeX below once the arXiv link is public.
|
| 29 |
+
|
| 30 |
+
```bibtex
|
| 31 |
+
@article{cdlm2025,
|
| 32 |
+
title = {CDLM: Consistency Diffusion Language Models for Faster Sampling},
|
| 33 |
+
author = {TBA},
|
| 34 |
+
journal = {arXiv preprint},
|
| 35 |
+
year = {2025},
|
| 36 |
+
eprint = {TBA},
|
| 37 |
+
}
|
| 38 |
+
```
|
adapter_config.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": {
|
| 4 |
+
"base_model_class": "LLaDAModelLM",
|
| 5 |
+
"parent_library": "model.modeling_llada"
|
| 6 |
+
},
|
| 7 |
+
"base_model_name_or_path": "GSAI-ML/LLaDA-8B-Instruct",
|
| 8 |
+
"bias": "none",
|
| 9 |
+
"corda_config": null,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 64,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.1,
|
| 22 |
+
"megatron_config": null,
|
| 23 |
+
"megatron_core": "megatron.core",
|
| 24 |
+
"modules_to_save": null,
|
| 25 |
+
"peft_type": "LORA",
|
| 26 |
+
"qalora_group_size": 16,
|
| 27 |
+
"r": 64,
|
| 28 |
+
"rank_pattern": {},
|
| 29 |
+
"revision": null,
|
| 30 |
+
"target_modules": [
|
| 31 |
+
"up_proj",
|
| 32 |
+
"k_proj",
|
| 33 |
+
"q_proj",
|
| 34 |
+
"ff_out",
|
| 35 |
+
"ff_proj",
|
| 36 |
+
"attn_out",
|
| 37 |
+
"v_proj"
|
| 38 |
+
],
|
| 39 |
+
"target_parameters": null,
|
| 40 |
+
"task_type": null,
|
| 41 |
+
"trainable_token_indices": null,
|
| 42 |
+
"use_dora": false,
|
| 43 |
+
"use_qalora": false,
|
| 44 |
+
"use_rslora": false
|
| 45 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:76d7499b5d7201496e51744c91983e9fd7927f506fee482bf8ea94b4a6909413
|
| 3 |
+
size 352318936
|