Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: code2lora
|
| 4 |
+
tags:
|
| 5 |
+
- code2lora
|
| 6 |
+
- lora
|
| 7 |
+
- hypernetwork
|
| 8 |
+
- qwen2.5-coder
|
| 9 |
+
base_model: Qwen/Qwen2.5-Coder-1.5B
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Code2LoRA — evo multitask v2 (multitask-2)
|
| 13 |
+
|
| 14 |
+
GRU + multi-task hypernetwork head for **Code2LoRA**. Given a repository's
|
| 15 |
+
commit history (encoded with `Qwen/Qwen3-Embedding-0.6B`), it generates a LoRA
|
| 16 |
+
adapter for the frozen base model `Qwen/Qwen2.5-Coder-1.5B`.
|
| 17 |
+
|
| 18 |
+
This **v2** checkpoint extends the multi-task head so the `qa` task covers both:
|
| 19 |
+
|
| 20 |
+
* **diff QA** — questions about what a commit changed, and
|
| 21 |
+
* **repo-state QA** — questions about the current code (what a method/class does,
|
| 22 |
+
a constant's value, a function signature, control flow, …),
|
| 23 |
+
|
| 24 |
+
in addition to the **assert_rhs** assertion-completion task.
|
| 25 |
+
|
| 26 |
+
`num_tasks = 2` (task-conditioned): `assert_rhs` (index 0), `qa` (index 1). The
|
| 27 |
+
same walk produces genuinely different adapters per task.
|
| 28 |
+
|
| 29 |
+
Load it in the terminal tool:
|
| 30 |
+
|
| 31 |
+
```bash
|
| 32 |
+
pip install code2lora
|
| 33 |
+
c2lt # uses this checkpoint by default
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
Or point any C2L deployment at it:
|
| 37 |
+
|
| 38 |
+
```bash
|
| 39 |
+
export C2L_CKPT_REPO=code2lora/c2l-evo-multitask-v2
|
| 40 |
+
export C2L_CKPT_FILE=gru_head.best.pt
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
File: `gru_head.best.pt`.
|