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
Overview
From CodeImageGen/Pictor-27B- 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.
| Version | File size | File | SHA-256 |
|---|---|---|---|
| IQ2_XXS | 8.79 GB | CodeImageGen_Pictor-27B-IQ2_XXS.gguf | |
| IQ2_XS | 9.01 GB | CodeImageGen_Pictor-27B-IQ2_XS.gguf | |
| IQ2_S | 9.61 GB | CodeImageGen_Pictor-27B-IQ2_S.gguf | |
| IQ2_M | 10.44 GB | CodeImageGen_Pictor-27B-IQ2_M.gguf | |
| Q2_K | 10.74 GB | CodeImageGen_Pictor-27B-Q2_K.gguf | |
| IQ3_XXS | 12.25 GB | CodeImageGen_Pictor-27B-IQ3_XXS.gguf | |
| Q3_K_S | 12.66 GB | CodeImageGen_Pictor-27B-Q3_K_S.gguf | |
| IQ3_XS | 12.72 GB | CodeImageGen_Pictor-27B-IQ3_XS.gguf |
Show all 25 versionsHide the other versions
| Version | File size | File | SHA-256 |
|---|---|---|---|
| Q3_K_M | 13.33 GB | CodeImageGen_Pictor-27B-Q3_K_M.gguf | |
| Q3_K_L | 14.02 GB | CodeImageGen_Pictor-27B-Q3_K_L.gguf | |
| IQ3_M | 14.67 GB | CodeImageGen_Pictor-27B-IQ3_M.gguf | |
| IQ4_XS | 15.42 GB | CodeImageGen_Pictor-27B-IQ4_XS.gguf | |
| Q4_0 | 16.27 GB | CodeImageGen_Pictor-27B-Q4_0.gguf | |
| Q4_K_S | 16.29 GB | CodeImageGen_Pictor-27B-Q4_K_S.gguf | |
| IQ4_NL | 17.38 GB | CodeImageGen_Pictor-27B-IQ4_NL.gguf | |
| Q4_K_M | 17.38 GB | CodeImageGen_Pictor-27B-Q4_K_M.gguf | |
| Q4_1 | 17.75 GB | CodeImageGen_Pictor-27B-Q4_1.gguf | |
| Q4_K_L | 18.80 GB | CodeImageGen_Pictor-27B-Q4_K_L.gguf | |
| Q5_K_S | 19.49 GB | CodeImageGen_Pictor-27B-Q5_K_S.gguf | |
| Q5_K_M | 20.85 GB | CodeImageGen_Pictor-27B-Q5_K_M.gguf | |
| Q6_K_S | 22.78 GB | CodeImageGen_Pictor-27B-Q6_K_S.gguf | |
| Q6_K | 23.78 GB | CodeImageGen_Pictor-27B-Q6_K.gguf | |
| Q6_K_L | 24.89 GB | CodeImageGen_Pictor-27B-Q6_K_L.gguf | |
| Q8_0 | 29.05 GB | CodeImageGen_Pictor-27B-Q8_0.gguf | |
| BF16 | 54.66 GB | CodeImageGen_Pictor-27B-bf16-00001-of-00002.gguf+1 parts | Per part |
Architecture
From config.json in CodeImageGen/Pictor-27B- 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
Recommended settings
From generation_config.json in CodeImageGen/Pictor-27BThe sampling settings the model's makers ship as its defaults.
- Temperature
- 1
- Top P
- 0.95
- Top K
- 20
Papers and data
From CodeImageGen/Pictor-27BPapers 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)
| setting | value |
|---|---|
| Base | Qwen/Qwen3.8-27B |
| Training | SFT, then GRPO |
| Reward | IPR (program + image) |
| 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 --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
- Pictor-27B-ablation-IR
- Pictor-27B-ablation-PR
- Pictor-27B-ablation-avgR
- Pictor-27B-SFT
- Pictor-9B
- Pictor-9B-SFT
- Dataset: Pictor-SFT-35k
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.