Pictor-9B: How the Code-Based Text-to-Image Model Works
Pictor-9B is an open-weight 9B text-to-image model fine-tuned from Qwen3.5-9B that creates images by writing JavaScript and rendering it in headless Chrome. The CodeImageGen team renamed the earlier CIG-9B-SFT checkpoint to Pictor-9B-SFT. This guide covers the rendering pipeline, GenEval2 scores, GGUF sizes, MTP speculative decoding and the model's stated limitations.
View 2 referencesAllow the functional cookie to save your likes. Privacy details
What Is Pictor-9B and Why Was It Renamed?
Pictor-9B is an open-weight 9B text-to-image model fine-tuned from Qwen3.5-9B that creates images by writing programs rather than pixels. The CodeImageGen team renamed the earlier CIG-9B-SFT checkpoint to Pictor-9B-SFT. The rename is recorded on the Hugging Face GGUF card, which still carries the old repository name.
The naming is worth pinning down before you download anything. The card states plainly that "CIG-9B-SFT has now been renamed to Pictor-9B-SFT by the CodeImageGen team." The GGUF repository therefore serves the same weights under a legacy filename, while the official model card uses the Pictor name. Search results that treat the two names as different models are mistaken.
How Does Pictor-9B Generate an Image Without a Diffusion Pipeline?
Instead of denoising latents, Pictor-9B emits a JavaScript program for the prompt and runs that program in headless Chrome to draw the final image. The rendered page is the picture. This code-based approach makes the browser the renderer, so the model needs a working rendering environment rather than a conventional diffusion scheduler.
The workflow has two stages. First the language model translates the text prompt into JavaScript. Then a separate rendering pipeline executes that code and captures the result. The model card points to a rendering setup repository that was still marked "coming soon" at the time of reading. Without that second stage you get source code, not an image.
Is Pictor-9B the Model the Authors Actually Released?
No. The official card calls Pictor-9B-SFT a comparison model from the paper and explicitly directs users to Pictor-27B for the released model. That distinction changes how you should read benchmark tables: the 9B checkpoint demonstrates the research method, while the larger model is the one the team positions as the product.
The card also says the model is not deployed by any inference provider. If you want to reproduce the reported behaviour, you must host the weights and the renderer yourself. That is a meaningful barrier compared with hosted image APIs, and it explains why community discussion of Pictor-9B centres on GGUF quantization and local inference rather than simple API calls.
What Do the GenEval2 GM and AM Scores Mean Here?
The card reports GenEval2 GM 26.4 and AM 57.5 for Pictor-9B-SFT. It does not define either metric on the page, so treat them as the authors' reported numbers rather than an independently reproduced score. Compare them only against results produced with the same evaluator and rendering setup.
Two cautions follow from that. A single code-rendering pipeline can change output quality without any change to model weights, and the card's benchmark was produced with the authors' own renderer. If you swap Chrome versions or rendering flags, you are no longer measuring the same system. The scores are useful for ranking the paper's comparison models, not as a universal quality label.
Which GGUF Quantizations Are Available and How Much Space Do They Need?
The GGUF release spans 4.8 GB for Q3_K_M to 18.4 GB for BF16, with Q4_K_M at 5.83 GB marked as the default choice. An NVFP4 file at 8.46 GB targets Blackwell GPUs such as the RTX 50 series, RTX Pro 6000, B200 and B300. Q8_0 reaches 9.79 GB and is described as generally unnecessary.
| Quantization | File size | Position in the release |
|---|---|---|
| Q3_K_M | 4.8 GB | Smallest, lowest quality |
| Q4_K_M | 5.83 GB | Recommended default |
| Q5_K_M | 6.67 GB | High quality |
| Q6_K | 7.56 GB | Near-lossless |
| NVFP4 | 8.46 GB | Blackwell-native FP4 |
| Q8_0 | 9.79 GB | Highest standard quant |
| BF16 | 18.4 GB | Full precision weights |
The GGUF quantization was produced with llama.cpp, and NVFP4 was calibrated with llm-compressor. Pick by available memory first: a 5–6 GB file fits far more machines than BF16, and the quality difference between Q5_K_M and Q8_0 is unlikely to matter for a renderer-based pipeline.
What Does MTP Speculative Decoding Change at Inference Time?
The release includes an optional MTP head, model-mtp.safetensors, that predicts several future tokens in one forward pass. Because the draft heads live inside the weights, local inference does not need a separate smaller draft model. The published llama-cli example uses --spec-type draft-mtp with --spec-draft-n-max 2.
The GGUF card reports a test on an NVIDIA RTX PRO 6000 Blackwell Server Edition with 96 GB VRAM: average prompt processing of 197.71 tokens/s, generation of 230.61 tokens/s, 74.4 seconds total wall time at 16,384 tokens context, and peak VRAM use of 7.59 GiB. Those figures come from one five-prompt test dated November 2026, so treat them as a reference point rather than a guarantee for your hardware.
How Do I Run Pictor-9B Locally?
Local use requires the merged weights, a browser renderer and an inference runner that supports the chosen GGUF format. The code path is short once those pieces are in place, and the steps below follow the order the model card and quantization release describe.
- Download a quantization. Q4_K_M at 5.83 GB is the default recommendation; choose NVFP4 only on Blackwell hardware.
- Run the model with llama.cpp. Use the documented
--spec-type draft-mtpflags if you want the optional MTP head. - Wire in the renderer. The model emits JavaScript, so headless Chrome must execute it and capture the image.
- Verify the pipeline. The official card shows
python -m grpo.t2i.eval.generate_one --model CodeImageGen/Pictor-9B-SFT --prompt "a red fox in the snow" --out fox.png.
You need the rendering environment for the last step. The card marks its setup repository as coming soon, so a clean reproduction may require following the CodeImageGen project rather than relying on the weights alone.
What Are the Limitations of Pictor-9B Today?
The renderer is not bundled in the 9B model card, the paper and code links were marked "coming soon" at the time of reading, and no inference provider hosts the checkpoint. The model is Apache-2.0, inherited from Qwen3.5-9B, so it can be modified and redistributed with that licence's conditions.
The practical limits are operational rather than legal. You need Chrome rendering, a compatible local inference stack and enough memory for the chosen quantization. Because the published scores come from the authors' own renderer, independent quality checks are still thin. Treat Pictor-9B as a research checkpoint for experimenting with program-based image generation, not a drop-in replacement for a hosted image API.
Common Questions About Pictor-9B
A few questions come up repeatedly when people first encounter this checkpoint. The answers below are drawn from the two Hugging Face cards, and they focus on identity, hardware and licensing rather than on benchmark interpretation, which is covered in the sections above.
Is Pictor-9B the same model as CIG-9B-SFT?
Yes. The GGUF card says CIG-9B-SFT was renamed to Pictor-9B-SFT by CodeImageGen. The old filename remains on the quantization repository, which is why both names appear in search results. There is no separate model behind the two labels.
Does Pictor-9B need a GPU?
Not necessarily for the language model: GGUF quantizations are designed for llama.cpp and can run on CPU, though slowly. The renderer does need a working headless Chrome environment. The reported 230.61 tokens/s figure came from a Blackwell GPU, so local CPU speed will be far lower.
Why is the card pointing me to Pictor-27B?
The 9B checkpoint is described as a comparison model from the paper. Pictor-27B is the model the authors call their released model. If you want the configuration the team intends people to use, start there instead.
Can I use Pictor-9B commercially?
The weights are Apache-2.0, so commercial use is permitted under that licence. Check the base model and dataset terms as well, and budget for the rendering infrastructure you will need to operate the pipeline at production volume.