Skip to content

CodeImageGen

Pictor-27B

A 27B model by CodeImageGen that uses tools such as web search and can think before answering.

Tools Thinking
Downloads
3,902 downloads last month
Likes
0 likes
Uploaded
Uploaded 3 Dec 2026

Get it in Zero1LLM

Then open Explore in the app and search for:

Parameters
26,895,998,464 (26.9B)
Context length
262,144 tokens
Architecture
qwen35
Task
text-generation
Licence
apache-2.0
Released
27 Nov 2026
Last updated
2 Dec 2026

This is bartowski's upload of CodeImageGen/Pictor-27B, which is based on Qwen/Qwen3.8-27B.

Tools

Uses tools, so web search and the browser work best with it.

Thinking

Can think step by step before it answers.

Each version is the same model stored at a different precision: smaller files use less memory and lose a little quality.

VersionFile sizeFileSHA-256
IQ2_XXS8.79 GBCodeImageGen_Pictor-27B-IQ2_XXS.gguf
IQ2_XS9.01 GBCodeImageGen_Pictor-27B-IQ2_XS.gguf
IQ2_S9.61 GBCodeImageGen_Pictor-27B-IQ2_S.gguf
IQ2_M10.44 GBCodeImageGen_Pictor-27B-IQ2_M.gguf
Q2_K10.74 GBCodeImageGen_Pictor-27B-Q2_K.gguf
IQ3_XXS12.25 GBCodeImageGen_Pictor-27B-IQ3_XXS.gguf
Q3_K_S12.66 GBCodeImageGen_Pictor-27B-Q3_K_S.gguf
IQ3_XS12.72 GBCodeImageGen_Pictor-27B-IQ3_XS.gguf
Show all 25 versions
VersionFile sizeFileSHA-256
Q3_K_M13.33 GBCodeImageGen_Pictor-27B-Q3_K_M.gguf
Q3_K_L14.02 GBCodeImageGen_Pictor-27B-Q3_K_L.gguf
IQ3_M14.67 GBCodeImageGen_Pictor-27B-IQ3_M.gguf
IQ4_XS15.42 GBCodeImageGen_Pictor-27B-IQ4_XS.gguf
Q4_016.27 GBCodeImageGen_Pictor-27B-Q4_0.gguf
Q4_K_S16.29 GBCodeImageGen_Pictor-27B-Q4_K_S.gguf
IQ4_NL17.38 GBCodeImageGen_Pictor-27B-IQ4_NL.gguf
Q4_K_M17.38 GBCodeImageGen_Pictor-27B-Q4_K_M.gguf
Q4_117.75 GBCodeImageGen_Pictor-27B-Q4_1.gguf
Q4_K_L18.80 GBCodeImageGen_Pictor-27B-Q4_K_L.gguf
Q5_K_S19.49 GBCodeImageGen_Pictor-27B-Q5_K_S.gguf
Q5_K_M20.85 GBCodeImageGen_Pictor-27B-Q5_K_M.gguf
Q6_K_S22.78 GBCodeImageGen_Pictor-27B-Q6_K_S.gguf
Q6_K23.78 GBCodeImageGen_Pictor-27B-Q6_K.gguf
Q6_K_L24.89 GBCodeImageGen_Pictor-27B-Q6_K_L.gguf
Q8_029.05 GBCodeImageGen_Pictor-27B-Q8_0.gguf
BF1654.66 GBCodeImageGen_Pictor-27B-bf16-00001-of-00002.gguf+1 partsPer part
Model class
Qwen3_5ForCausalLM
Model type
qwen3_5_text
Layers
64
Hidden size
5120
Attention heads
24
Key/value heads
4
Vocabulary
248,320
Context length
262,144 tokens
Weights
float16

The sampling settings the model's makers ship as its defaults.

Temperature
1
Top P
0.95
Top K
20

Papers the model's Hugging Face page links to (the model's own report and papers it cites).

Pictor-27B

Pictor-27B writes JavaScript programs that render images from a text prompt. It is Qwen3.8-27B trained with SFT on teacher programs and GRPO with the image+program reward (IPR).

Paper · Project page · Code (coming soon)

settingvalue
BaseQwen/Qwen3.8-27B
TrainingSFT, then GRPO
RewardIPR (program + image)
StepsGRPO step 250
Precisionfp16, 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 --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 49.5, AM 77.4.

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 arXiv:2612.02434},
  year    = {2026}
}

On Hugging Face

Everything on this page comes from these pages and is refreshed every few hours; Hugging Face always has the latest.