CIG-27B-IR / README.md
nicolecello's picture
Add card
3fa320a verified
|
Raw History Blame Contribute Delete
1.72 kB
metadata
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

CIG-27B-IR

Qwen3.8-27B after SFT and GRPO with the IR reward: the judge sees only the rendered image.

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/CIG-27B-IR --prompt "a red fox in the snow" --out fox.png

Setup (renderer, environment): https://github.com/codeimagegen/codeimagegen

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

Results

GenEval2: GM 45.8, AM 75.0.

Other models

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}
}