SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.21758 · ICCV · 2025

Lumina-Image 2.0: A Unified and Efficient Image Generative Framework

Hongsheng Li, Chang Xu, Zhen Li, Yu Qiao, Peng Gao, Wenhai Wang, Bo Zhang, Xiaohong Liu, Xinyue Li, Bin Fu, Dongyang Liu, Le Zhuo, and 8 more

arXiv · PDF · Open in the Atlas

Code that ran

15 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 8 failures of our instrument; 1 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2503.21758.json · badge: /api/ran/2503.21758.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Alpha-VLLM/Lumina-Image-2.0 canonical (classifier label)
classifier basis not recorded on the link
15 ran · 1 no recorded run
FunctionStatusWhere it lives
interpolate_fn Ran
ran; our contract draft was wrong, not the code
Alpha-VLLM/Lumina-Image-2.0/transport/dpm_solver.py
code served (permissive licence) · get_code("6a35b62fbc80f70a")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 1) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-05T00:15:28Z). If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# x: PyTorch tensor with shape [N, C], where N is batch size, C is number of channels
x = torch.randn(2, 1)

# xp: PyTorch tensor with shape [C, K], where K is number of keypoints
xp = torch.linspace(0, 1, 4).unsqueeze(0).repeat(1, 1)  # shape [1, 4]

# yp: PyTorch tensor with shape [C, K]
yp = torch.linspace(0, 2, 4).unsqueeze(0).repeat(1, 1)  # shape [1, 4]

ARGS = {
    "x": x,
    "xp": xp,
    "yp": yp,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 1) — shape (2, 1) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
apply_average_pool Ran
ran on a synthesized input
Alpha-VLLM/Lumina-Image-2.0/finetune.py
code served (permissive licence) · get_code("36a146cad5a4abd0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (1, 4, 4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small latent tensor with shape (1, C, H, W)
# Using distinct dimensions: batch=1, channels=4, height=8, width=6
latent = torch.randn(1, 4, 8, 6)

# Downsampling factor
factor = 2

ARGS = {
    "latent": latent,
    "factor": factor,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (1, 4, 4, 3) — shape (1, 4, 4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
center_crop Ran
ran on a synthesized input
Alpha-VLLM/Lumina-Image-2.0/imgproc.py
code served (permissive licence) · get_code("241d401b6c9cb411")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Image. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from PIL import Image
import numpy as np

# Create a small test image (100x80 pixels, RGB)
test_image = Image.new('RGB', (100, 80), color=(255, 0, 0))

# Define crop size as a tuple
crop_size = (32, 24)

ARGS = {
    'pil_image': test_image,
    'crop_size': crop_size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
center_crop_arr Ran
ran; our contract draft was wrong, not the code
Alpha-VLLM/Lumina-Image-2.0/imgproc.py
code served (permissive licence) · get_code("ea73360d2d5d9224")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Image. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from PIL import Image
import numpy as np

# Create a simple PIL Image for testing
# Make it larger than 2 * image_size so we can test the resizing logic
pil_image = Image.new('RGB', (256, 256), color='red')

# Define image_size parameter
image_size = 64

# Construct ARGS dictionary
ARGS = {
    'pil_image': pil_image,
    'image_size': image_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dataloader_collate_fn Ran
ran on a synthesized input
Alpha-VLLM/Lumina-Image-2.0/finetune.py
code served (permissive licence) · get_code("3c0739fc97f1625d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function expects samples to be an iterable of tuples where:
# - x[0] is an image (likely a tensor)
# - x[1] is a caption (likely a string or token sequence)

# Create sample data: a list of (image, caption) tuples
samples = [
    (torch.randn(3, 4), "a cat sitting on a mat"),
    (torch.randn(3, 4), "a dog playing in the park"),
]

ARGS = {
    "samples": samples
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
encode_prompt Ran
ran on a synthesized input
Alpha-VLLM/Lumina-Image-2.0/sample.py
code served (permissive licence) · get_code("2efc694c55219099")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import numpy as np
import random

torch.manual_seed(0)

# Create a minimal text encoder that mimics the expected behavior
class MinimalTextEncoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.embedding = nn.Embedding(100, 4)
    
    def forward(self, input_ids, attention_mask, output_hidden_states=False):
        # Embed the input ids
        embeds = self.embedding(input_ids)
        # Return a mock output with hidden_states attribute
        class Output:
            def __init__(self, hidden_states):
                self.hidden_states = hidden_states
        # Return mock hidden states (list with at least 2 elements, we use [-2])
        return Output([embeds, embeds, embeds])

# Create a minimal tokenizer that mimics the expected behavior
class MinimalTokenizer:
    def __call__(self, captions, padding=True, pad_to_multiple_of=8, 
                 max_length=256, truncation=True, return_tensors='pt'):
        batch_size = len(captions)
        seq_len = 8
        
        # Create mock token ids (values < 100 for embedding)
        input_ids = torch.randint(0, 100, (batch_size, seq_len))
        attention_mask = torch.ones((batch_size, seq_len), dtype=torch.long)
        
        class TokenizerOutput:
            def __init__(self, input_ids, attention_mask):
                self.input_ids = input_ids
                self.attention_mask = attention_mask
        
        return TokenizerOutput(input_ids, attention_mask)

# Setup the arguments
text_encoder = MinimalTextEncoder()
tokenizer = MinimalTokenizer()

prompt_batch = [
    "a cat on a mat",
    ["a dog", "a bird"],
]

proportion_empty_prompts = 0.2
is_train = True

ARGS = {
    "prompt_batch": prompt_batch,
    "text_encoder": text_encoder,
    "tokenizer": tokenizer,
    "proportion_empty_prompts": proportion_empty_prompts,
    "is_train": is_train,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
expand_dims Ran
ran; our contract draft was wrong, not the code
Alpha-VLLM/Lumina-Image-2.0/transport/dpm_solver.py
code served (permissive licence) · get_code("e6110366588c5c65")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (2, 1, 1, 1) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small 1D tensor with shape [N]
v = torch.randn(2)

# Create a dims parameter - total number of dimensions desired
dims = 4

ARGS = {
    "v": v,
    "dims": dims,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 1, 1, 1) — shape (2, 1, 1, 1) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
expand_t_like_x Ran
ran; our contract draft was wrong, not the code
Alpha-VLLM/Lumina-Image-2.0/transport/path.py
code served (permissive licence) · get_code("1c00a422b396fa8b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 1, 1, 1) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create time vector t with batch_dim=2
t = torch.randn(2)

# Create data point x with batch_dim=2 and some spatial dimensions
# x should be a list or tensor where x[0] has a .size() method
# The function accesses x[0].size() to get the number of dimensions
x = [torch.randn(4, 3, 5), torch.randn(4, 3, 5)]

ARGS = {
    "t": t,
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 1, 1, 1) — shape (2, 1, 1, 1) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_train_sampler Ran
ran on a synthesized input
Alpha-VLLM/Lumina-Image-2.0/finetune.py
code served (permissive licence) · get_code("7fba42c78fe9f3c3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

class DummyDataset:
    def __init__(self, size):
        self.size = size
    
    def __len__(self):
        return self.size

dataset = DummyDataset(size=10)
rank = 0
world_size = 2
global_batch_size = 8
max_steps = 4
resume_step = 1
seed = 42

ARGS = {
    "dataset": dataset,
    "rank": rank,
    "world_size": world_size,
    "global_batch_size": global_batch_size,
    "max_steps": max_steps,
    "resume_step": resume_step,
    "seed": seed,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
log_state Ran
ran; our contract draft was wrong, not the code
Alpha-VLLM/Lumina-Image-2.0/transport/utils.py
code served (permissive licence) · get_code("e0c9eec71fe93415")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# The function log_state takes a state dict and formats it for logging
# It iterates through sorted items and checks if values are objects
# We need to create a state dict with various types of values

class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Create a state dict with mixed types
state = {
    'model': SimpleModule(),
    'epoch': 42,
    'loss': 3.14159,
    'accuracy': 0.95,
    'batch_size': 32,
    'learning_rate': 0.001,
    'tensor': torch.randn(2, 4),
    'list': [1, 2, 3],
    'string': 'training_run_1',
    'dict_config': {'hidden_dim': 128, 'num_layers': 2},
}

ARGS = {
    'state': state
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mean_flat Ran
ran; our contract draft was wrong, not the code
Alpha-VLLM/Lumina-Image-2.0/transport/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from poppuppy/secant-expectation, is pointer only (licence: NONE) · get_code("b883daa24762cb05")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from poppuppy/secant-expectation, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

model_wrapper Ran
ran on a synthesized input
Alpha-VLLM/Lumina-Image-2.0/transport/dpm_solver.py
code served (permissive licence) · get_code("3b14933b6646c3c6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal diffusion model
class MinimalDiffusionModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def forward(self, x, t_input, **kwargs):
        # Simple model that predicts noise
        return self.linear(x)

# Create a minimal noise schedule
class MinimalNoiseSchedule:
    def __init__(self):
        self.T = 1.0
    
    def get_sigma(self, t):
        return torch.tensor(0.5)
    
    def marginal_std(self, t):
        return torch.tensor(0.5)
    
    def marginal_alpha(self, t):
        return torch.tensor(0.866)

# Create a minimal classifier function
class MinimalClassifier(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 2)
    
    def forward(self, x, t_input, cond, **kwargs):
        return self.linear(x)

# Instantiate components
model = MinimalDiffusionModel()
noise_schedule = MinimalNoiseSchedule()
classifier_fn = MinimalClassifier()

# Create condition tensors
condition = torch.randn(2, 4)
unconditional_condition = torch.zeros(2, 4)

# Define ARGS dictionary with all parameters
ARGS = {
    'model': model,
    'noise_schedule': noise_schedule,
    'model_type': 'noise',
    'model_kwargs': {},
    'guidance_type': 'uncond',
    'condition': condition,
    'unconditional_condition': unconditional_condition,
    'guidance_scale': 1.0,
    'interval_guidance': [0, 1.0],
    'classifier_fn': classifier_fn,
    'classifier_kwargs': {}
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
modulate Ran
ran; our contract draft was wrong, not the code
Alpha-VLLM/Lumina-Image-2.0/models/model.py
code served (permissive licence) · get_code("128eb60a7316f121")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# x: a tensor that will be multiplied element-wise
# The function does x * (1 + scale.unsqueeze(1))
# So x should be compatible with a scaled version
# scale gets unsqueezed at dimension 1, so if scale is shape (batch,),
# then scale.unsqueeze(1) becomes (batch, 1)
# For broadcasting to work with x * (1 + scale.unsqueeze(1)),
# x should be shape (batch, features) or compatible

x = torch.randn(2, 4)  # batch_size=2, features=4
scale = torch.randn(2)  # batch_size=2, will become (2, 1) after unsqueeze

ARGS = {
    "x": x,
    "scale": scale,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
time_shift Ran
ran on a synthesized input
Alpha-VLLM/Lumina-Image-2.0/transport/utils.py
code served (permissive licence) · get_code("811faa8400431f27")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch as th
import math

torch = th

torch.manual_seed(0)

ARGS = {
    "mu": 0.5,
    "sigma": 2.0,
    "t": th.tensor([0.2, 0.8])
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
var_center_crop Ran
ran; our contract draft was wrong, not the code
Alpha-VLLM/Lumina-Image-2.0/imgproc.py
code served (permissive licence) · get_code("a14f0d1dfea0492b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Image. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import random
from PIL import Image

# Create a simple PIL Image for testing
# Create a small test image (200x150 pixels, RGB)
pil_image = Image.new('RGB', (200, 150), color=(73, 109, 137))

# Define crop sizes - a list of tuples with different aspect ratios
crop_size_list = [
    (64, 64),
    (96, 96),
    (128, 128),
    (80, 60),
]

# Define the arguments dictionary
ARGS = {
    'pil_image': pil_image,
    'crop_size_list': crop_size_list,
    'random_top_k': 4,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
none_or_str Not yet run
unverified (harvested, no recorded run)
Alpha-VLLM/Lumina-Image-2.0/sample.py
code served (permissive licence) · get_code("2fc6fdb85f13dc41")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 1 the same month, 5 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
expand_dims 39 other papers
33 dated earlier, 6 later · 4 only as an assembly brick
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2202.09778 (2022-02)
Pseudo Numerical Methods for Diffusion Models on Manifolds
2206.00927 (2022-06)
DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Steps
and 36 more not named here
center_crop_arr 37 other papers
27 dated earlier, 2 the same month, 6 later, 2 same year, order not determinable
2211.17091 (2022-11)
Refining Generative Process with Discriminator Guidance in Score-based Diffusion Models
2212.09748 (2022-12)
Scalable Diffusion Models with Transformers
2311.09257 (2023-11)
UFOGen: You Forward Once Large Scale Text-to-Image Generation via Diffusion GANs
and 34 more not named here
interpolate_fn 34 other papers
31 dated earlier, 3 later
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2211.01095 (2022-11)
DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Models
2212.09478 (2022-12)
MM-Diffusion: Learning Multi-Modal Diffusion Models for Joint Audio and Video Generation
and 31 more not named here
none_or_str 16 other papers
12 dated earlier, 4 later
1810.01845 (2018-10)
Task-Oriented Hand Motion Retargeting for Dexterous Manipulation Imitation
1909.10893 (2019-09)
Recurrent Independent Mechanisms
2109.11251 (2021-09)
Trust Region Policy Optimisation in Multi-Agent Reinforcement Learning
and 13 more not named here
mean_flat 4 other papers
3 dated earlier, 1 later
2401.08740 (2024-01)
SiT: Exploring Flow and Diffusion-based Generative Models with Scalable Interpolant Transformers
2408.05710 (2024-08)
Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediators
2409.18128 (2024-09)
FlowTurbo: Towards Real-time Flow-Based Image Generation with Velocity Refiner
and 1 more not named here
log_state 3 other papers
3 dated earlier
2401.08740 (2024-01)
SiT: Exploring Flow and Diffusion-based Generative Models with Scalable Interpolant Transformers
2408.05710 (2024-08)
Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediators
2409.18128 (2024-09)
FlowTurbo: Towards Real-time Flow-Based Image Generation with Velocity Refiner
expand_t_like_x 1 other paper
1 dated earlier
2409.15278 (2024-09)
PixWizard: Versatile Image-to-Image Visual Assistant with Open-Language Instructions
modulate 1 other paper
1 dated earlier
2409.15278 (2024-09)
PixWizard: Versatile Image-to-Image Visual Assistant with Open-Language Instructions
var_center_crop 1 other paper
1 dated earlier
2409.15278 (2024-09)
PixWizard: Versatile Image-to-Image Visual Assistant with Open-Language Instructions

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We introduce Lumina-Image 2.0, an advanced text-to-image (T2I) model that surpasses previous state-of-the-art methods across multiple benchmarks. Lumina-Image 2.0 is characterized by two key features: (1) Unification -it adopts a unified architecture (Unified Next-DiT) that treats text and image tokens as a joint sequence, enabling natural cross-modal interactions and allowing seamless task expansion. Besides, since high-quality captioners can provide semantically well-aligned text-image training pairs, we introduce a unified captioning system, Unified Captioner (UniCap), which can generate detailed and accurate multilingual captions for our model. This not only accelerates model convergence, but also enhances prompt adherence, multi-granularity prompt handling, and task expansion with customized prompt templates. ( 2) Efficiency -to improve the efficiency of our proposed model, we develop multi-stage progressive training strategies to optimize our model, alongside inference-time acceleration strategies without compromising image quality. We evaluate our model on academic benchmarks and T2I arenas, with results confirming that it matches or exceeds existing state-of-theart models across various metrics, highlighting the effectiveness of our methods. We have released our training details, code, and models at https://github.com/Alpha-VLLM/Lumina-Image-2.0.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2503.21758")
get_code_for_paper("2503.21758")
have("2503.21758")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2503.21758.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2503.21758.svg)](https://syntology.ai/paper/2503.21758)

Connect an agent — have() is free.