How to use from
Docker Model Runner
docker model run hf.co/CodeImageGen/Pictor-27B-ablation-IR
Quick Links

Pictor-27B-ablation-IR

A comparison model from the paper, not our released model; for that, use 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
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

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

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

@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}
}
Downloads last month
23
Safetensors
Model size
27B params
Tensor type
F16
ยท
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for CodeImageGen/Pictor-27B-ablation-IR

Base model

Qwen/Qwen3.8-27B
Finetuned
(1,092)
this model

Collection including CodeImageGen/Pictor-27B-ablation-IR