SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2504.01934 · 2025

ILLUME+: Illuminating Unified MLLM with Dual Visual Tokenization and Diffusion Refinement

arXiv · PDF · Open in the Atlas

Code that ran

19 of 20 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, 1 violated it and 15 have no contract verdict; 3 failures of our instrument; 1 no recorded run), 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/2504.01934.json · badge: /api/ran/2504.01934.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
illume-unified-mllm/ILLUME_plus community (classifier label)
classifier basis not recorded on the link
19 ran · 1 no recorded run
FunctionStatusWhere it lives
all_gather Ran
ran on a synthesized input
illume-unified-mllm/ILLUME_plus/ILLUME/illume/dist_utils.py
code served (permissive licence) · get_code("1c8d976c39a57c9e")
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 float; no output shape is stated. 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 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
import pickle

torch.manual_seed(0)

# The all_gather function takes one parameter: data
# It can be any picklable object
# We'll test with a simple dictionary to ensure it's picklable

data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "dict"},
    "tensor": torch.randn(2, 4)
}

ARGS = {
    "data": data
}
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 float — 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
calculate_image_token_num Ran
ran on a synthesized input
illume-unified-mllm/ILLUME_plus/ILLUME/generation_eval/models/inference_utils.py
code served (permissive licence) · get_code("d953291e013c1472")
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 logging

logging.basicConfig(level=logging.INFO)

ARGS = {
    'h': 224,
    'w': 224,
    'downsample_rate_per_level': [28, 16]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
check_image_token_num Ran
ran on a synthesized input
illume-unified-mllm/ILLUME_plus/ILLUME/app_hf.py
code served (permissive licence) · get_code("c255b91c2246dc37")
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. 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 logging

# Construct valid arguments for check_image_token_num

# The function expects:
# - image_embed_inds: a list of lists/sequences of indices
# - token_nums: a list of expected token numbers for each level (default=[81, 256])
# - identifier: a string for logging (default='')

ARGS = {
    'image_embed_inds': [
        list(range(81)),      # Level 0: 81 tokens
        list(range(256))      # Level 1: 256 tokens
    ],
    'token_nums': [81, 256],
    'identifier': 'test_check'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
divide_to_patches Ran
ran; our contract draft was wrong, not the code
illume-unified-mllm/ILLUME_plus/ILLUME/illume/mm_utils.py
code served (permissive licence) · get_code("7e03b180fa317c9a")
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 4, 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.

from PIL import Image
import numpy as np

# Create a simple test image
# The function expects a PIL.Image.Image object
# It calls .size to get width and height, and .crop() to create patches
image_array = np.random.randint(0, 256, (100, 120, 3), dtype=np.uint8)
test_image = Image.fromarray(image_array, mode='RGB')

# Define patch size
patch_size = 32

ARGS = {
    "image": test_image,
    "patch_size": patch_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 list, ndim 4, 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
get_local_proc_group Ran
ran on a synthesized input
illume-unified-mllm/ILLUME_plus/ILLUME/illume/dist_utils.py
code served (permissive licence) · get_code("4e189d5dad79f682")
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 int, ndim 0, dtype family int, shape () 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.distributed as dist

torch.manual_seed(0)

# Since dist.get_world_size() will return 1 in non-distributed setting,
# the function will return None early. To make the function do something
# meaningful, we need to mock the distributed functions.

class MockDistributed:
    def __init__(self):
        self.world_size = 16
        self.rank = 0
        self.groups = {}
    
    def is_available(self):
        return True
    
    def is_initialized(self):
        return True
    
    def get_rank(self):
        return self.rank
    
    def get_world_size(self):
        return self.world_size
    
    def new_group(self, ranks):
        group_id = len(self.groups)
        self.groups[group_id] = ranks
        return group_id

# Monkey-patch torch.distributed for testing
original_is_available = dist.is_available
original_is_initialized = dist.is_initialized
original_get_rank = dist.get_rank
original_get_world_size = dist.get_world_size
original_new_group = dist.new_group

mock_dist = MockDistributed()

dist.is_available = mock_dist.is_available
dist.is_initialized = mock_dist.is_initialized
dist.get_rank = mock_dist.get_rank
dist.get_world_size = mock_dist.get_world_size
dist.new_group = mock_dist.new_group

ARGS = {
    'group_size': 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 int, ndim 0, dtype family int, shape () — shape () 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
is_zero3_model Ran
ran on a synthesized input
illume-unified-mllm/ILLUME_plus/ILLUME/illume/model/utils.py
code served (permissive licence) · get_code("c55a1f7e4549fb3e")
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 bool, ndim 0, dtype family float, shape () 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 a simple model with standard parameters
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Create a model instance
model = SimpleModel()

# Create a list of parameters (for testing the params argument)
params = list(model.parameters())

# Also create a mock Zero3 parameter with the required attributes
class MockZero3Param:
    def __init__(self):
        self.ds_tensor = torch.zeros(2, 4)
        self.ds_id = 0
        self.ds_status = "active"
        self.ds_shape = (2, 4)
        self.ds_numel = 8

mock_zero3_param = MockZero3Param()

# ARGS dictionary with all parameters
ARGS = {
    "model": model,
    "params": None
}
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 bool, ndim 0, dtype family float, shape () — shape () 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
load_and_merge_config Ran
ran on a synthesized input
illume-unified-mllm/ILLUME_plus/ILLUME/illume/registry_utils.py
code served (permissive licence) · get_code("9778219ab71b8d25")
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 dict. 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 os
import tempfile

# Create temporary directory for test config files
temp_dir = tempfile.mkdtemp()

# Create a base config file
base_config_content = """
model_name = 'base_model'
learning_rate = 0.001
batch_size = 32
nested_config = {
    'param1': 'value1',
    'param2': 42
}
"""

base_config_path = os.path.join(temp_dir, 'base_config.py')
with open(base_config_path, 'w') as f:
    f.write(base_config_content)

# Create a main config file that inherits from base
main_config_content = f"""
_base_ = 'base_config.py'
model_name = 'main_model'
epochs = 100
nested_config = {{
    'param2': 99,
    'param3': 'new_value'
}}
"""

main_config_path = os.path.join(temp_dir, 'main_config.py')
with open(main_config_path, 'w') as f:
    f.write(main_config_content)

# Define ARGS with the config_path parameter
ARGS = {
    'config_path': main_config_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
load_py_config Ran
ran on a synthesized input
illume-unified-mllm/ILLUME_plus/ILLUME/illume/registry_utils.py
code served (permissive licence) · get_code("3e40955600cc6631")
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 dict. 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 os
import tempfile

# Create a temporary Python config file
temp_dir = tempfile.mkdtemp()
config_file_path = os.path.join(temp_dir, 'test_config.py')

# Write a simple config file
config_content = """
# Test configuration file
model_name = "test_model"
learning_rate = 0.001
batch_size = 32
layers = [64, 128, 256]
use_dropout = True
_base_ = "base_config.py"
"""

with open(config_file_path, 'w') as f:
    f.write(config_content)

ARGS = {
    'config_path': config_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
merge_dicts Ran
ran on a synthesized input
illume-unified-mllm/ILLUME_plus/ILLUME/illume/registry_utils.py
code served (permissive licence) · get_code("10f7276899092b15")
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 dict. 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
from copy import deepcopy

# Construct valid arguments for merge_dicts
# The function takes two parameters: base and new
# Both should be dictionaries
# The function recursively merges new into base, handling nested dicts

base_dict = {
    "model_name": "bert",
    "learning_rate": 0.001,
    "training": {
        "epochs": 10,
        "batch_size": 32,
        "optimizer": "adam"
    },
    "data": {
        "path": "/data",
        "augment": True
    }
}

new_dict = {
    "learning_rate": 0.0005,
    "training": {
        "epochs": 20,
        "warmup_steps": 1000
    },
    "new_param": "new_value"
}

ARGS = {
    "base": base_dict,
    "new": new_dict
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
pad_sequence Ran
ran on a synthesized input
illume-unified-mllm/ILLUME_plus/ILLUME/app_hf.py
code served (permissive licence) · get_code("d4d72d2f8ec8ae97")
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 int, shape (2, 5) 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

torch.manual_seed(0)

# Stand-in tokenizer class with padding_side attribute
class MockTokenizer:
    def __init__(self, padding_side='right'):
        self.padding_side = padding_side

# Create input_ids as a list of 1D tensors with different lengths
input_ids = [
    torch.tensor([101, 2054, 2003]),
    torch.tensor([101, 2054, 2003, 2007, 1045])
]

ARGS = {
    'tokenizer': MockTokenizer(padding_side='right'),
    'input_ids': input_ids,
    'batch_first': True,
    'padding_value': 0
}
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 int, shape (2, 5) — shape (2, 5) 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
pad_sequence Ran
ran on a synthesized input
illume-unified-mllm/ILLUME_plus/ILLUME/generation_eval/models/illume.py
code served (permissive licence) · get_code("0a6a1f6fb96cd47b")
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 int, shape (2, 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

torch.manual_seed(0)

class MockTokenizer:
    def __init__(self, padding_side='right'):
        self.padding_side = padding_side

# Create mock tokenizer
tokenizer = MockTokenizer(padding_side='right')

# Create list of input_ids tensors with varying lengths
input_ids = [
    torch.tensor([1, 2, 3]),
    torch.tensor([4, 5])
]

batch_first = True
padding_value = 0

ARGS = {
    'tokenizer': tokenizer,
    'input_ids': input_ids,
    'batch_first': batch_first,
    'padding_value': padding_value
}
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 int, shape (2, 3) — shape (2, 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
parse_interleaved_text_image Ran
ran on a synthesized input
illume-unified-mllm/ILLUME_plus/ILLUME/generation_eval/models/inference_utils.py
code served (permissive licence) · get_code("c6ccde0b6ee512a0")
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
import re

# Construct valid arguments for parse_interleaved_text_image

# Create a sample full_output_text with interleaved image blocks
full_output_text = """
This is some text before an image.
<start_of_image>
<|image_level0_0|> <|image_level0_1|> <|image_level0_2|>
<|image_level1_5|> <|image_level1_6|>
<end_of_image>
Some text between images.
<start_of_image>
<|image_level0_10|> <|image_level0_11|>
<|image_level1_15|> <|image_level1_16|> <|image_level1_17|>
<end_of_image>
Final text after images.
"""

num_levels = 2
image_placeholder = '<image>'
start_tag = '<start_of_image>'
end_tag = '<end_of_image>'

ARGS = {
    'full_output_text': full_output_text,
    'num_levels': num_levels,
    'image_placeholder': image_placeholder,
    'start_tag': start_tag,
    'end_tag': end_tag,
}
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
reduce_dict Ran
ran, violated the contract we drafted
illume-unified-mllm/ILLUME_plus/ILLUME/illume/dist_utils.py
code served (permissive licence) · get_code("2a3280757ce5a198")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned dict. 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.distributed as dist

torch.manual_seed(0)

# Create a simple input dictionary with tensor values
# The function expects all values to be tensors that can be stacked
input_dict = {
    'loss': torch.tensor(2.5),
    'accuracy': torch.tensor(0.85),
    'metric_a': torch.tensor(1.2),
}

# The average parameter is a boolean
average = True

ARGS = {
    'input_dict': input_dict,
    'average': average
}
Setup block drafted by
a language model, Claude Sonnet 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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
replace_last Ran
ran on a synthesized input
illume-unified-mllm/ILLUME_plus/ILLUME/illume/conversation.py
code served (permissive licence) · get_code("d40f1727de55b957")
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

ARGS = {
    "original_string": "hello world hello",
    "target": "hello",
    "replacement": "hi"
}
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
replace_ratio_tags_in_text Ran
ran on a synthesized input
illume-unified-mllm/ILLUME_plus/ILLUME/illume/conversation.py
code served (permissive licence) · get_code("25c22c3cf79f39b6")
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 re

def replace_ratio_tags_in_text(text):
    pattern = '<height_(\\d+)><width_(\\d+)>'

    def _replacer_function(match, resolution_indicator=64):
        try:
            h_tag_str = match.group(1)
            w_tag_str = match.group(2)
            h_tag = int(h_tag_str)
            w_tag = int(w_tag_str)
            h = h_tag * resolution_indicator
            w = w_tag * resolution_indicator
            return f'{h}x{w}'
        except (ValueError, IndexError):
            print(f"Warning: Could not process tag '{match.group(0)}'. Keeping original.")
            return match.group(0)
    processed_text = re.sub(pattern, _replacer_function, text)
    return processed_text


ARGS = {
    "text": "Image size: <height_2><width_3> and another <height_4><width_5> with invalid <height_abc><width_def>"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
replace_sequentially_regex Ran
ran on a synthesized input
illume-unified-mllm/ILLUME_plus/ILLUME/illume/conversation.py
code served (permissive licence) · get_code("4e41538bc082c01f")
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 re

def replace_sequentially_regex(original_string, target, content_list):
    replacements_iter = iter(content_list)

    def get_replacement(match):
        try:
            return str(next(replacements_iter))
        except StopIteration:
            return match.group(0)
    new_string = re.sub(re.escape(target), get_replacement, original_string)
    return new_string


ARGS = {
    "original_string": "The quick brown fox jumps over the lazy dog. The cat sat on the mat.",
    "target": "The",
    "content_list": ["A", "An", "One"]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
resize_and_pad_image Ran
ran; our contract draft was wrong, not the code
illume-unified-mllm/ILLUME_plus/ILLUME/illume/mm_utils.py
code served (permissive licence) · get_code("468eedeba67f1b00")
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 sample image for testing
# Create a simple RGB image with distinct dimensions (100x75)
img_array = np.random.randint(0, 256, (75, 100, 3), dtype=np.uint8)
sample_image = Image.fromarray(img_array, mode='RGB')

# Define target resolution (width, height)
target_resolution = (200, 150)

ARGS = {
    "image": sample_image,
    "target_resolution": target_resolution,
}
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
select_best_resolution Ran
ran on a synthesized input
illume-unified-mllm/ILLUME_plus/ILLUME/illume/mm_utils.py
code served (permissive licence) · get_code("29d67c6717548a53")
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, 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
import numpy as np

# Set random seed for reproducibility
torch.manual_seed(0)

# Define the arguments for select_best_resolution
ARGS = {
    'original_size': (800, 600),
    'possible_resolutions': [(336, 336), (672, 336), (1008, 336), (336, 672), (672, 672), (1008, 672), (336, 1008), (672, 1008), (1008, 1008)]
}
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, ndim 1, dtype family int — a tuple 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
unpad_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
illume-unified-mllm/ILLUME_plus/ILLUME/illume/model/illume_arch.py
code served (permissive licence) · get_code("55c32993da87759b")
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 3, dtype family float, shape (3, 10, 12) 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 padded image tensor in CxHxW format
# Let's say original image was 8x6 (width x height)
# After padding and resizing, it became 12x12 (square)
# C=3 (RGB), H=12, W=12
tensor = torch.randn(3, 12, 12)

# Original size as (width, height) tuple
original_size = (8, 6)

ARGS = {
    "tensor": tensor,
    "original_size": original_size,
}
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 3, dtype family float, shape (3, 10, 12) — shape (3, 10, 12) 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
load_state_dict_maybe_zero_3 Not yet run
unverified (harvested, no recorded run)
illume-unified-mllm/ILLUME_plus/ILLUME/illume/model/utils.py
code served (permissive licence) · get_code("14dac797f0c4b233")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 3 the same month, 4 later) and 16 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
unpad_image 69 other papers
51 dated earlier, 4 the same month, 9 later, 5 same year, order not determinable · 5 only as an assembly brick
2304.08485 (2023-04)
Visual Instruction Tuning
2309.09958 (2023-09)
An Empirical Study of Scaling Instruct-Tuned Large Multimodal Models
2310.03744 (2023-10)
Improved Baselines with Visual Instruction Tuning
and 66 more not named here
resize_and_pad_image 65 other papers
51 dated earlier, 1 the same month, 9 later, 4 same year, order not determinable
2106.06909 (2021-06)
GigaSpeech: An Evolving, Multi-domain ASR Corpus with 10,000 Hours of Transcribed Audio
2308.13566 (2023-08)
MLLM-DataEngine: An Iterative Refinement Approach for MLLM
2310.08588 (2023-10)
Octopus: Embodied Vision-Language Programmer from Environmental Feedback
and 62 more not named here
divide_to_patches 64 other papers
50 dated earlier, 1 the same month, 9 later, 4 same year, order not determinable
2106.06909 (2021-06)
GigaSpeech: An Evolving, Multi-domain ASR Corpus with 10,000 Hours of Transcribed Audio
2308.13566 (2023-08)
MLLM-DataEngine: An Iterative Refinement Approach for MLLM
2310.08588 (2023-10)
Octopus: Embodied Vision-Language Programmer from Environmental Feedback
and 61 more not named here
reduce_dict 15 other papers
14 dated earlier, 1 later
2003.04030 (2020-03)
Learning Delicate Local Representations for Multi-Person Pose Estimation
2004.01946 (2020-04)
Weakly-Supervised Mesh-Convolutional Hand Reconstruction in the Wild
2108.02833 (2021-08)
Elaborative Rehearsal for Zero-shot Action Recognition
and 12 more not named here

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 present ILLUME+ that leverages dual visual tokenization and a diffusion decoder to improve both deep semantic understanding and high-fidelity image generation. Existing unified models have struggled to simultaneously handle the three fundamental capabilities in a unified model: understanding, generation, and editing. Models like Chameleon and EMU3 utilize VQGAN for image discretization, due to the lack of deep semantic interaction, they lag behind specialist models like LLaVA in visual understanding tasks. To mitigate this, LaViT and ILLUME employ semantic encoders for tokenization, but they struggle with image editing due to poor texture preservation. Meanwhile, Janus series decouples the input and output image representation, limiting their abilities to seamlessly handle interleaved image-text understanding and generation. In contrast, ILLUME+ introduces a unified dual visual tokenizer, DualViTok, which preserves both fine-grained textures and text-aligned semantics while enabling a coarse-to-fine image representation strategy for multimodal understanding and generation. Additionally, we employ a diffusion model as the image detokenizer for enhanced generation quality and efficient super-resolution. ILLUME+ follows a continuous-input, discrete-output scheme within the unified MLLM and adopts a progressive training procedure that supports dynamic resolution across the vision tokenizer, MLLM, and diffusion decoder. This design allows for flexible and efficient context-aware image editing and generation across diverse tasks. ILLUME+ (3B) exhibits competitive performance against existing unified MLLMs and specialized models across multimodal understanding, generation, and editing benchmarks. With its strong performance, ILLUME+ provides a scalable and versatile foundation for future multimodal applications. Project Page: https://illume-unified-mllm.github.io/.

For agents

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

get_harvested_code_for_paper("2504.01934")
get_code_for_paper("2504.01934")
have("2504.01934")

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

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

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

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

Connect an agent — have() is free.