File size: 2,129 Bytes
3fa320a
 
 
 
 
 
 
 
 
 
 
b39a1ae
3fa320a
e610c4a
3fa320a
b39a1ae
 
3fa320a
 
 
 
 
 
 
 
 
 
 
 
 
b39a1ae
3fa320a
 
b39a1ae
3fa320a
 
 
 
 
 
 
 
 
b39a1ae
 
 
 
 
 
6955f13
b39a1ae
 
 
 
3fa320a
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
license: apache-2.0
base_model: Qwen/Qwen3.8-27B
library_name: transformers
pipeline_tag: text-generation
tags:
- code-based-image-generation
- text-to-image
- javascript
---

# Pictor-27B-ablation-IR

A comparison model from the paper, not our released model; for that, use [Pictor-27B](https://huggingface.co/CodeImageGen/Pictor-27B). It is Qwen3.8-27B after SFT and GRPO with the IR reward: the judge sees only the rendered image.

Paper (coming soon) · Project page (coming soon) · Code (coming soon)

| | |
|---|---|
| Base | [Qwen/Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B) |
| Training | SFT, then GRPO |
| Reward | IR (image only) |
| Steps | GRPO step 250 |
| Precision | fp16, merged weights |

The model writes a JavaScript program for a text prompt. The image is the program rendered in headless Chrome.

## Use

```bash
python -m grpo.t2i.eval.generate_one --model CodeImageGen/Pictor-27B-ablation-IR --prompt "a red fox in the snow" --out fox.png
```

Setup (renderer, environment): the GitHub repo, coming soon.

`model-mtp.safetensors` is the MTP head for speculative decoding. It is optional.

## Results

GenEval2: GM 45.8, AM 75.0.

## Other models

- [Pictor-27B](https://huggingface.co/CodeImageGen/Pictor-27B)
- [Pictor-27B-ablation-PR](https://huggingface.co/CodeImageGen/Pictor-27B-ablation-PR)
- [Pictor-27B-ablation-avgR](https://huggingface.co/CodeImageGen/Pictor-27B-ablation-avgR)
- [Pictor-27B-SFT](https://huggingface.co/CodeImageGen/Pictor-27B-SFT)
- [Pictor-9B](https://huggingface.co/CodeImageGen/Pictor-9B)
- [Pictor-9B-SFT](https://huggingface.co/CodeImageGen/Pictor-9B-SFT)
- Dataset: [Pictor-SFT-35k](https://huggingface.co/datasets/CodeImageGen/Pictor-SFT-35k)

## License

Apache-2.0, the licence of the base model. This is a modified version of Qwen3.8-27B: fine-tuned with SFT and GRPO.

## Citation

```bibtex
@article{wang2026codeimagegen,
  title   = {Code-based Image Generation: Benchmarking, Baselines, and Improved Rewards},
  author  = {Wang, Nicole and Liang, Zhanhao and Leng, Xingjian and Zheng, Liang},
  journal = {arXiv preprint},
  year    = {2026}
}
```