The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: ValueError
Message: Expected object or value
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1835, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 621, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 285, in _generate_tables
examples = [ujson_loads(line) for line in batch.splitlines()]
~~~~~~~~~~~^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/utils/json.py", line 21, in ujson_loads
return pd.io.json.ujson_loads(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
ValueError: Expected object or value
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1887, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
messages list | metadata unknown |
|---|---|
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "sftge2-f606bc528903",
"source_id": "geneval2-synth-v4-01345",
"teacher": "gpt-5.6-luna",
"sequence_tokens": 3690,
"code_sha256": "c1799406c4d6a286bafbc6ddddc7b838a2028a31232ed4ffaa9d0d9b5a63bf6c",
"image_sha256": "b624b47ece82bd18f9fe91411a347fdff321ae6c882763c1893dd4e39c28a78b",
"program_directo... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "sftfluxf-entity-23b05beb669c",
"source_id": "flux-reason-6m:aesthetics-part01-02064148",
"teacher": "gpt-5.6-luna",
"sequence_tokens": 3845,
"code_sha256": "da41202a79ee2d3a78801c512ae82c32c730f5594a154789d8abfbb0e1d73598",
"image_sha256": "76ee23412bd7e6e6fc5072fa52a95d289423e0c2e02ad34268fdde14d1... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "sftfluxz-imagination-98d4b9e60246",
"source_id": "flux-reason-6m:imaginative-00828855",
"teacher": "gpt-5.6-sol",
"sequence_tokens": 7185,
"code_sha256": "9b5012a88ad38431a07215c66a48a5d8074e8494ffcedb89e5bc2df9404d23fe",
"image_sha256": "b9aea5baefb579371e161b70beb3ad853f8223382db0de3becc7846c3d52... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "sftfluxf-affection-82c8e292114c",
"source_id": "flux-reason-6m:imaginative-00828327",
"teacher": "gpt-5.6-sol",
"sequence_tokens": 6517,
"code_sha256": "1409616a11271013c4fb4f645aacd1aadf39beb52f2127cd0afe4b32e401c1d8",
"image_sha256": "51e9c4de49a47e182ec2ca84e359ca6963b18f904eabe89cb802e1e70a9b2b... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "s2-geneval2-synth-v3-6-0304",
"teacher": "gpt-5.6-sol",
"sequence_tokens": 6360,
"code_sha256": "a52697184fbddcf2a22dcf20181c45a3c3ef2f4e579d478d29176a3d8d9173ec",
"image_sha256": "dc501651eaa5bb00e9e42524a8ea950e137a22e5c7690b2fab9d1c4536f377fb",
"program_directory": "results/t2i-sft-teachers-2026... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "s4-geneval2-synth-v3-10-1245",
"teacher": "gpt-5.6-luna",
"sequence_tokens": 3006,
"code_sha256": "fc20fcfb61c7bc514b9aebb9d9839ac4abb688b1032318b94c79410be79c3f30",
"image_sha256": "43be8f8d54c91b30670476281450e436313473b2c6c9e03a8b9a132ec2b2a2e5",
"program_directory": "results/t2i-sft-teachers-20... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "s4-geneval2-synth-v3-9-0770",
"teacher": "gpt-5.6-luna",
"sequence_tokens": 4114,
"code_sha256": "9cd2f59b3a96fbd48ea23743fcea3d075dc67038370c5fcf816d6d24fe212a5a",
"image_sha256": "78ebeb84a5d93bf7a16b20444a5899a625ccd800ba6c41c6e2312c7c0011a02d",
"program_directory": "results/t2i-sft-teachers-202... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "s0-geneval2-synth-v2-0251",
"teacher": "gpt-5.6-luna",
"sequence_tokens": 3693,
"code_sha256": "9bbe6df94c8cd59fa516ea7effa628b701fab0db12b00dbb552f1f70bc7f59a4",
"image_sha256": "1855aad5b5c150cdd81252f7f4ff52449bf7bf5fa3957b56e05097ab91a7008d",
"program_directory": "results/t2i-sft-teachers-20261... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "sftfluxu-imagination-f8d4547c56c9",
"source_id": "flux-reason-6m:imaginative-00037548",
"teacher": "gpt-5.6-luna",
"sequence_tokens": 5135,
"code_sha256": "ba2ece572ee7b57622e1915cd33fed29cab2ecb4f12a72bf65fd5cb03259f317",
"image_sha256": "de4933f555ac6afd00800d944c8b07d68715ce16ddb33ec35c1a44e8d6d... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "s2-geneval2-synth-v3-9-0074",
"teacher": "gpt-5.6-luna",
"sequence_tokens": 5764,
"code_sha256": "5bc38b19c6f9aad01452250161b07e257c18dcc3cf17931554d54ef8082528a5",
"image_sha256": "8eefee040e8355df18153912f5e99241b60fa0eba759f966e44152b7d396817f",
"program_directory": "results/t2i-sft-teachers-202... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "reserve-v1-comp-1372",
"teacher": "gpt-5.6-terra",
"sequence_tokens": 3594,
"code_sha256": "5eb7942d5bbe4f068b94402ca24195feeada3764e767b8d70a948a47b170156c",
"image_sha256": "09a80bd84fc4b3a521ea0deeed955ad4963aa92a5368f449dd0416f3edb5cb2a",
"program_directory": "results/t2i-sft-teachers-20261023/... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "sftfluxf-affection-485eef5330af",
"source_id": "flux-reason-6m:imaginative-00421215",
"teacher": "gpt-5.6-luna",
"sequence_tokens": 4549,
"code_sha256": "84c55cfef3e85494afeedcbe250c7490697dd8c431b95a106d79efc954a8be5a",
"image_sha256": "d80baf717a650e35012e68fa5a74fac8c50fea818e092bd99679923200b06... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "s0-geneval2-synth-v2-0397",
"teacher": "gpt-5.6-sol",
"sequence_tokens": 3655,
"code_sha256": "067a960983136b21272218ddcba04224ed8ee9419839ad233213bfca9f67050b",
"image_sha256": "7f908e88613fcba3ab3ec3dfe4ab848bd72852037cd9368ebced2de1c0d62f94",
"program_directory": "results/t2i-sft-teachers-202610... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "reserve-v1-comp-2899",
"teacher": "gpt-5.6-terra",
"sequence_tokens": 4330,
"code_sha256": "15405cf6884f0716928b7d08f40f6230011bc02ca219fc62e2f2541c7913e483",
"image_sha256": "ce2bbb587215b547a3d12c38e32f0e4bcf433255edc186232dcabb95bbb73141",
"program_directory": "results/t2i-sft-teachers-20261023/... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "sftfluxx-long_text-2a37485ca416",
"source_id": "flux-reason-6m:aesthetics-part01-01039295",
"teacher": "gpt-5.6-terra",
"sequence_tokens": 6508,
"code_sha256": "b6b904a9abc3038d6400b1dcebd0490dd59ce0b4079778ea00fdcc8359007462",
"image_sha256": "72af991c21fd670b10b92ab6e8e367de4744b368dcdafe7f973462... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "s4-geneval2-synth-v3-7-0640",
"teacher": "gpt-5.6-luna",
"sequence_tokens": 3424,
"code_sha256": "011439c2e964841c8ac4f20d08420311dcfaf3a00986e25b55c66d734faa6bd2",
"image_sha256": "ec1f6bfefcc650411e8254d7dbee7e8e2a7a24a6f68574f056b6504b9c60fc3d",
"program_directory": "results/t2i-sft-teachers-202... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "sftge2-9b73e2deb9dc",
"source_id": "geneval2-synth-v4-00627",
"teacher": "gpt-5.6-luna",
"sequence_tokens": 4511,
"code_sha256": "7aff0a5e5808421c7b1cd180572a989e3c15ed3f7062da3f2378df609d3f195d",
"image_sha256": "288998027f266e5fbcb09d4eb0b1928807d12e41ca6fe65cc64ee2eff3963cb4",
"program_directo... |
[
{
"role": "system",
"content": "Write JavaScript that renders the described image as realistically as possible. Define `async function render(stage)` where `stage` is an empty 512x512 DOM element already on the page - build whatever you need inside it. Do not call any AI image-generation or text-to-image se... | {
"id": "sftfluxx-style-6d447fb061dd",
"source_id": "flux-reason-6m:imaginative-00423037",
"teacher": "gpt-5.6-terra",
"sequence_tokens": 4669,
"code_sha256": "2ed22a91a51816ea42680ed14af115b040b8ecee8eb03b27daa794d5930eb39e",
"image_sha256": "5e3cb3dd9dc0f6947e5c162a528edb105ee73e92fa906c2b50a95939c48341fc... |
CIG-SFT-35k
35,000 prompt and program pairs for supervised fine-tuning of code-based image generation. Each program is a JavaScript
render(stage) function that draws the prompt in a 512x512 DOM element.
- Prompts: 50% GenEval2-style (17,500), 50% captions from FLUX-Reason-6M (17,500, Apache-2.0).
- Programs: written by GPT-5.6 teachers, Sol 20% (7,000), Terra 30% (10,500), Luna 50% (17,500), with the same split in each prompt source.
- A program is kept if it finishes normally, renders a non-blank image, loads nothing external and fits in 8,192 tokens (prompt plus program).
- FLUX captions whose images are related to PRISM-Bench prompts were left out.
Used to train CIG-27B-SFT and the models built on it.
Files
All files are in geneval-flux/.
| file | rows | what |
|---|---|---|
train.jsonl |
35,000 | training set |
validation.jsonl |
191 | held-out validation set, no overlap with train |
register.jsonl |
35,000 | one record per training row: prompt, teacher and the checks it passed |
manifest.json |
counts per source and teacher, and sha256 of the three jsonl files | |
validation-manifest.json |
counts and sha256 of validation.jsonl |
train.jsonl rows:
messages: chat list ofsystem(the task instruction),user(the prompt) andassistant(the program).metadata:id,source_id,teacher,family(geneval2orflux),sequence_tokens,code_sha256,image_sha256(of the rendered image),sourceandprogram_directory(internal generation run and path).
validation.jsonl rows have the same messages; metadata holds id, teacher, sft_sequence_tokens and code_sha256.
register.jsonl records match train.jsonl by id. Main fields: prompt, prompt_sha256, teacher, family,
finish_reason, code_bytes, prompt_tokens, completion_tokens_including_eos, sft_sequence_tokens, fits_8192,
external_url_flag, embedded_raster_flag, blank_gate_pass, spatial_rgb_rms_std, image_sha256, reject_reasons.
Download
With the code at https://github.com/codeimagegen/codeimagegen:
python train/fetch_sft_data.py geneval-flux --repo codeimagegen/CIG-SFT-35k --out data/sft/geneval-flux
It downloads geneval-flux/* and checks every file's sha256 against the manifest. Or with huggingface_hub:
from huggingface_hub import snapshot_download
snapshot_download("codeimagegen/CIG-SFT-35k", repo_type="dataset", allow_patterns=["geneval-flux/*"])
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}
}
- Downloads last month
- 31