Pictor-9B / README.md
nicolecello's picture
dataset renamed to Pictor-SFT-35k
8aef16b verified
|
Raw History Blame
2.06 kB
---
license: apache-2.0
base_model: Qwen/Qwen3.5-9B
library_name: transformers
pipeline_tag: text-generation
tags:
- code-based-image-generation
- text-to-image
- javascript
---
# Pictor-9B
Pictor-9B is the 9B version of [Pictor-27B](https://huggingface.co/CodeImageGen/Pictor-27B): Qwen3.5-9B trained with SFT on teacher programs and GRPO
with the image+program reward (IPR).
Paper (coming soon) · Project page (coming soon) · Code (coming soon)
| | |
|---|---|
| Base | [Qwen/Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B) |
| Training | SFT, then GRPO |
| Reward | IPR (program + image) |
| 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-9B --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 38.4, AM 69.7.
## Other models
- [Pictor-27B](https://huggingface.co/CodeImageGen/Pictor-27B)
- [Pictor-27B-ablation-IR](https://huggingface.co/CodeImageGen/Pictor-27B-ablation-IR)
- [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-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.5-9B: 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}
}
```