Instructions to use render-attribution/RA-GRPO-HTML-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use render-attribution/RA-GRPO-HTML-4B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("render-attribution/Qwen3-VL-4B-SFT-HTML") model = PeftModel.from_pretrained(base_model, "render-attribution/RA-GRPO-HTML-4B") - Notebooks
- Google Colab
- Kaggle
Update model card and adapter config
Browse files- README.md +4 -3
- adapter_config.json +1 -1
README.md
CHANGED
|
@@ -16,9 +16,10 @@ tags:
|
|
| 16 |
LoRA adapter for [Qwen3-VL-4B-SFT](https://huggingface.co/render-attribution/Qwen3-VL-4B-SFT-HTML) that turns an image into HTML code. It is
|
| 17 |
the HTML model of RA-GRPO (Table 4 of the paper), trained for 300 steps with render-attributed
|
| 18 |
credit: each rendered element is traced back to the code that drew it, matched to the reference element it should
|
| 19 |
-
reproduce, scored
|
|
|
|
| 20 |
|
| 21 |
-
[Paper](https://arxiv.org/abs/
|
| 22 |
|
| 23 |
## Result
|
| 24 |
|
|
@@ -53,7 +54,7 @@ reproduces the paper's decoding exactly, and `train/configs/html.yaml ragrpo` re
|
|
| 53 |
@article{wang2026whodrew,
|
| 54 |
title = {Who Drew That Pixel? Fine-Grained Visual Attribution for Image-to-Code Generation and Editing},
|
| 55 |
author = {Hexuan Wang and Zixian Ma and Ranjay Krishna and Jaemin Cho},
|
| 56 |
-
journal = {arXiv preprint arXiv:
|
| 57 |
year = {2026}
|
| 58 |
}
|
| 59 |
```
|
|
|
|
| 16 |
LoRA adapter for [Qwen3-VL-4B-SFT](https://huggingface.co/render-attribution/Qwen3-VL-4B-SFT-HTML) that turns an image into HTML code. It is
|
| 17 |
the HTML model of RA-GRPO (Table 4 of the paper), trained for 300 steps with render-attributed
|
| 18 |
credit: each rendered element is traced back to the code that drew it, matched to the reference element it should
|
| 19 |
+
reproduce, and scored. The tokens that drew it get this score, standardized over the 8 samples, mixed half and half
|
| 20 |
+
with the GRPO advantage.
|
| 21 |
|
| 22 |
+
[Paper](https://arxiv.org/abs/2612.00307) | [Code](https://github.com/render-attribution/render-attribution) | [Project page](https://render-attribution.github.io)
|
| 23 |
|
| 24 |
## Result
|
| 25 |
|
|
|
|
| 54 |
@article{wang2026whodrew,
|
| 55 |
title = {Who Drew That Pixel? Fine-Grained Visual Attribution for Image-to-Code Generation and Editing},
|
| 56 |
author = {Hexuan Wang and Zixian Ma and Ranjay Krishna and Jaemin Cho},
|
| 57 |
+
journal = {arXiv preprint arXiv:2612.00307},
|
| 58 |
year = {2026}
|
| 59 |
}
|
| 60 |
```
|
adapter_config.json
CHANGED
|
@@ -37,7 +37,7 @@
|
|
| 37 |
"down_proj"
|
| 38 |
],
|
| 39 |
"target_parameters": null,
|
| 40 |
-
"task_type":
|
| 41 |
"trainable_token_indices": null,
|
| 42 |
"use_dora": false,
|
| 43 |
"use_qalora": false,
|
|
|
|
| 37 |
"down_proj"
|
| 38 |
],
|
| 39 |
"target_parameters": null,
|
| 40 |
+
"task_type": "CAUSAL_LM",
|
| 41 |
"trainable_token_indices": null,
|
| 42 |
"use_dora": false,
|
| 43 |
"use_qalora": false,
|