SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2504.02160 · ICCV · 2025

Less-to-More Generalization: Unlocking More Controllability by In-Context Generation

Qian He, Fei Ding, Mengqi Huang, Shaojin Wu, Wenxu Wu, Yufeng Cheng

arXiv · PDF · Open in the Atlas

Code that ran

13 of 43 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; 1 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 7 failures of our instrument; 30 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.02160.json · badge: /api/ran/2504.02160.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
bytedance/UNO community
Papers with Code archive
13 ran · 30 no recorded run
FunctionStatusWhere it lives
DiagonalGaussian Ran
ran on a synthesized input
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("141926ef085f264b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float, shape (2, 1, 8) 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
from torch import nn

class DiagonalGaussian(nn.Module):

    def __init__(self, sample: bool=True, chunk_dim: int=1):
        super().__init__()
        self.sample = sample
        self.chunk_dim = chunk_dim

    def forward(self, z):
        mean, logvar = torch.chunk(z, 2, dim=self.chunk_dim)
        if self.sample:
            std = torch.exp(0.5 * logvar)
            return mean + std * torch.randn_like(mean)
        else:
            return mean


INIT_ARGS = {
    'sample': True,
    'chunk_dim': 1
}

ARGS = {
    'z': torch.randn(2, 2, 8)
}

if __name__ == '__main__':
    model = DiagonalGaussian(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Input shape: {ARGS['z'].shape}")
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 (2, 1, 8) — shape (2, 1, 8) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Downsample Ran
ran on a synthesized input
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("e50b194d9e5c1fb2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float, shape (2, 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
from torch import nn

INIT_ARGS = {
    'in_channels': 4,
}

ARGS = {
    'x': torch.randn(2, 4, 8, 6),
}

if __name__ == '__main__':
    from torch import Tensor
    
    class Downsample(nn.Module):
        def __init__(self, in_channels: int):
            super().__init__()
            self.conv = nn.Conv2d(in_channels, in_channels, kernel_size=3, stride=2, padding=0)

        def forward(self, x: Tensor):
            pad = (0, 1, 0, 1)
            x = nn.functional.pad(x, pad, mode='constant', value=0)
            x = self.conv(x)
            return x
    
    model = Downsample(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Input shape: {ARGS['x'].shape}")
    print(f"Output shape: {output.shape}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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, 4, 4, 3) — shape (2, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
LoRALinearLayer Ran
ran on a synthesized input
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("fd0e61395994c276")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 2, dtype family float; 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
from torch import nn

class LoRALinearLayer(nn.Module):

    def __init__(self, in_features, out_features, rank=4, network_alpha=None, device=None, dtype=None):
        super().__init__()
        self.down = nn.Linear(in_features, rank, bias=False, device=device, dtype=dtype)
        self.up = nn.Linear(rank, out_features, bias=False, device=device, dtype=dtype)
        self.network_alpha = network_alpha
        self.rank = rank
        nn.init.normal_(self.down.weight, std=1 / rank)
        nn.init.zeros_(self.up.weight)

    def forward(self, hidden_states):
        orig_dtype = hidden_states.dtype
        dtype = self.down.weight.dtype
        down_hidden_states = self.down(hidden_states.to(dtype))
        up_hidden_states = self.up(down_hidden_states)
        if self.network_alpha is not None:
            up_hidden_states *= self.network_alpha / self.rank
        return up_hidden_states.to(orig_dtype)


INIT_ARGS = {
    'in_features': 4,
    'out_features': 3,
    'rank': 2,
    'network_alpha': 1.0,
    'device': None,
    'dtype': None,
}

ARGS = {
    'hidden_states': torch.randn(2, 4),
}

if __name__ == '__main__':
    layer = LoRALinearLayer(**INIT_ARGS)
    output = layer(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output dtype: {output.dtype}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
MLPEmbedder Ran
ran on a synthesized input
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("094e7d93e9f6ab58")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 2, dtype family float, shape (2, 8) 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
from torch import nn, Tensor

class MLPEmbedder(nn.Module):

    def __init__(self, in_dim: int, hidden_dim: int):
        super().__init__()
        self.in_layer = nn.Linear(in_dim, hidden_dim, bias=True)
        self.silu = nn.SiLU()
        self.out_layer = nn.Linear(hidden_dim, hidden_dim, bias=True)

    def forward(self, x: Tensor) -> Tensor:
        return self.out_layer(self.silu(self.in_layer(x)))


INIT_ARGS = {
    'in_dim': 4,
    'hidden_dim': 8,
}

ARGS = {
    'x': torch.randn(2, 4),
}

model = MLPEmbedder(**INIT_ARGS)
output = model(**ARGS)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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, 8) — shape (2, 8) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Upsample Ran
ran on a synthesized input
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("5b35d346e47b654c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 6, 6) 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
from torch import nn, Tensor

class Upsample(nn.Module):

    def __init__(self, in_channels: int):
        super().__init__()
        self.conv = nn.Conv2d(in_channels, in_channels, kernel_size=3, stride=1, padding=1)

    def forward(self, x: Tensor):
        x = nn.functional.interpolate(x, scale_factor=2.0, mode='nearest')
        x = self.conv(x)
        return x


INIT_ARGS = {
    'in_channels': 4
}

ARGS = {
    'x': torch.randn(2, 4, 3, 3)
}

if __name__ == '__main__':
    model = Upsample(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Input shape: {ARGS['x'].shape}")
    print(f"Output shape: {output.shape}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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, 4, 6, 6) — shape (2, 4, 6, 6) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
get_lin_function Ran
ran; our contract draft was wrong, not the code
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("6116719157e7bd76")
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 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 numpy as np

torch.manual_seed(0)

ARGS = {
    "x1": 256.0,
    "y1": 0.5,
    "x2": 4096.0,
    "y2": 1.15,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, 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
get_lora_rank Ran
ran, honoured the contract we drafted
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("a6ce9c89a8dcb637")
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 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

torch.manual_seed(0)

# The function expects a checkpoint dict where keys ending with '.down.weight'
# contain tensors. It returns the first dimension (shape[0]) of such a tensor.
# We need to create a checkpoint dict with at least one key ending in '.down.weight'

checkpoint = {
    'layer1.down.weight': torch.randn(5, 4),
    'layer1.up.weight': torch.randn(4, 5),
    'layer2.down.weight': torch.randn(3, 6),
    'other_key': torch.randn(2, 2),
}

ARGS = {
    'checkpoint': checkpoint
}
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 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
load_checkpoint Ran
ran; our contract draft was wrong, not the code
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("ab79c3404dbddc29")
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
import tempfile
import os
from pathlib import Path

torch.manual_seed(0)

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

# Create a dummy .pt checkpoint file
pt_checkpoint_path = os.path.join(temp_dir, "model.pt")
dummy_state_dict = {
    "layer1.weight": torch.randn(4, 3),
    "layer1.bias": torch.randn(4),
    "layer2.weight": torch.randn(3, 2),
}
torch.save(dummy_state_dict, pt_checkpoint_path)

# Create a dummy .safetensors checkpoint file
safetensors_path = os.path.join(temp_dir, "model.safetensors")
try:
    from safetensors.torch import save_file
    safetensors_state_dict = {
        "layer1.weight": torch.randn(4, 3),
        "layer1.bias": torch.randn(4),
        "layer2.weight": torch.randn(3, 2),
    }
    save_file(safetensors_state_dict, safetensors_path)
except Exception:
    # Fallback: safetensors might not be available, skip creating it
    safetensors_path = None

ARGS = {
    "local_path": pt_checkpoint_path,
    "repo_id": None,
    "name": None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
huggingface_hub, safetensors, 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
load_model Ran
ran; our contract draft was wrong, not the code
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("5317947c40cdbb83")
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 safetensors.torch import save_file
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory for test files
tmpdir = tempfile.mkdtemp()

# Create a .pt checkpoint file
pt_checkpoint_path = os.path.join(tmpdir, "model.pt")
pt_state_dict = {
    "layer1.weight": torch.randn(4, 3),
    "layer1.bias": torch.randn(4),
    "layer2.weight": torch.randn(5, 4),
}
torch.save(pt_state_dict, pt_checkpoint_path)

# Create a .safetensors checkpoint file
safetensors_checkpoint_path = os.path.join(tmpdir, "model.safetensors")
save_file(pt_state_dict, safetensors_checkpoint_path)

ARGS = {
    "ckpt": pt_checkpoint_path,
    "device": "cpu",
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
safetensors, 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
load_safetensors Ran
ran; our contract draft was wrong, not the code
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("ec3fa3a95d08a424")
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 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 tempfile
import os
from safetensors.torch import save_file

torch.manual_seed(0)

# Create a temporary directory and a valid safetensors file
temp_dir = tempfile.mkdtemp()
safetensors_path = os.path.join(temp_dir, "test.safetensors")

# Create some small tensors and save them in safetensors format
tensors_to_save = {
    "tensor1": torch.randn(2, 4),
    "tensor2": torch.randn(3, 5),
    "tensor3": torch.randn(2, 2, 3),
}

save_file(tensors_to_save, safetensors_path)

ARGS = {
    "path": safetensors_path,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
safetensors, 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
prepare_multi_ip Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("1ee6f33cbfb2cbe9")
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
import torch.nn as nn
from transformers import CLIPTextModel, CLIPTokenizer, T5EncoderModel, T5Tokenizer
from unittest.mock import Mock, MagicMock

torch.manual_seed(0)

# Create mock HFEmbedder instances
class MockHFEmbedder(nn.Module):
    def __init__(self, is_clip=False):
        super().__init__()
        self.is_clip = is_clip
        self.device = torch.device('cpu')
    
    def forward(self, text):
        # Return appropriate shape based on is_clip
        if self.is_clip:
            # CLIP returns pooled output: [batch, 768]
            batch_size = len(text) if isinstance(text, list) else 1
            return torch.randn(batch_size, 768)
        else:
            # T5 returns sequence output: [batch, seq_len, 768]
            batch_size = len(text) if isinstance(text, list) else 1
            return torch.randn(batch_size, 77, 768)

# Create embedder instances
t5_embedder = MockHFEmbedder(is_clip=False)
clip_embedder = MockHFEmbedder(is_clip=True)

# Create test image tensor: [batch, channels, height, width]
# Using [2, 3, 8, 8] - batch=2, channels=3, height=8, width=8
img = torch.randn(2, 3, 8, 8)

# Create prompt
prompt = ["a cat", "a dog"]

# Create reference images
ref_img1 = torch.randn(2, 3, 4, 4)
ref_img2 = torch.randn(2, 3, 6, 6)
ref_imgs = [ref_img1, ref_img2]

# Create positional encoding mode
pe = 'd'

ARGS = {
    't5': t5_embedder,
    'clip': clip_embedder,
    'img': img,
    'prompt': prompt,
    'ref_imgs': ref_imgs,
    'pe': pe,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch, transformers — 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
preprocess_ref Ran
ran; our contract draft was wrong, not the code
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("8f824f754f1c382b")
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 small test image
# Using a 640x480 image (landscape orientation)
img_array = np.random.randint(0, 256, (480, 640, 3), dtype=np.uint8)
test_image = Image.fromarray(img_array, mode='RGB')

ARGS = {
    'raw_image': test_image,
    'long_size': 512
}
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
swish Ran
ran; our contract draft was wrong, not the code
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("5fb036462ae82f9f")
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 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
from torch import Tensor

torch.manual_seed(0)

# The swish function takes a single Tensor argument and applies:
# x * torch.sigmoid(x)
# We need to provide a small tensor as input

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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, 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
AttnBlock Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("237044dc7eab755f")
How it ran

no invocation recorded.

AutoEncoder Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("fbae76808b84e0a7")
How it ran

no invocation recorded.

Decoder Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("d1ebf28fb88a2094")
How it ran

no invocation recorded.

DoubleStreamBlock Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("d8050e753e9c5ca8")
How it ran

no invocation recorded.

DoubleStreamBlockLoraProcessor Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("a24812f33fae55b7")
How it ran

no invocation recorded.

DoubleStreamBlockProcessor Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("22edaa04a474763a")
How it ran

no invocation recorded.

Encoder Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("d5faadf0ab7aec2d")
How it ran

no invocation recorded.

Flux Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("fdb03645e82376bd")
How it ran

no invocation recorded.

HFEmbedder Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("d3268980d3acc461")
How it ran

no invocation recorded.

ModelSpec Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("b1dbb41fa4ebe7ef")
How it ran

no invocation recorded.

ResnetBlock Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("4479f990cc0a645e")
How it ran

no invocation recorded.

SelfAttention Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("3d23efb955326633")
How it ran

no invocation recorded.

SingleStreamBlock Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("c3c72350a9e4085a")
How it ran

no invocation recorded.

SingleStreamBlockLoraProcessor Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("381efa5cff5bbd21")
How it ran

no invocation recorded.

SingleStreamBlockProcessor Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("3cfa047b450ce3a0")
How it ran

no invocation recorded.

UNOPipeline Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("0a1d0bd5e3c40921")
How it ran

no invocation recorded.

attention Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("030be521b5aae819")
How it ran

no invocation recorded.

denoise Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("56043c53adfe4418")
How it ran

no invocation recorded.

get_noise Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("f6d9d4596b3ebd28")
How it ran

no invocation recorded.

get_schedule Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("a3d4da0ede5997f2")
How it ran

no invocation recorded.

load_ae Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("08cf34908f46f2a0")
How it ran

no invocation recorded.

load_clip Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("022dc7a94a8ae580")
How it ran

no invocation recorded.

load_flow_model Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("cd23972a162f29d8")
How it ran

no invocation recorded.

load_flow_model_only_lora Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("7875bcc97a6839d0")
How it ran

no invocation recorded.

load_from_repo_id Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("710fb1ae1bde5dd7")
How it ran

no invocation recorded.

load_t5 Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("007103c6e39ef191")
How it ran

no invocation recorded.

set_lora Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("2c10ff79bdee3461")
How it ran

no invocation recorded.

time_shift Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("8946943fa561779b")
How it ran

no invocation recorded.

timestep_embedding Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("7f58624d56f501f5")
How it ran

no invocation recorded.

unpack Not yet run
unverified (harvested, no recorded run)
bytedance/UNO/uno/flux/pipeline.py
code served (permissive licence) · get_code("330e00c9f233c90f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 43 samples lifted from this paper's linked repositories, 43 carry a function identity and 0 do not. Of the 43 distinct functions with an identity, 11 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 1 the same month, 8 later) and 32 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
swish
brick of this paper's assembly: helper
7 other papers
2 dated earlier, 5 later
2409.00587 (2024-09)
FLUX that Plays Music
2412.07517 (2024-12)
FireFlow: Fast Inversion of Rectified Flow for Image Semantic Editing
2508.05606 (2025-08)
Uni-cot: Towards Unified Chain-of-Thought Reasoning Across Text and Vision
and 4 more not named here
attention
brick of this paper's assembly: helper
6 other papers
3 dated earlier, 3 later · 1 only as an assembly brick
2409.00587 (2024-09)
FLUX that Plays Music
2411.04746 (2024-11)
Taming Rectified Flow for Inversion and Editing
2412.07517 (2024-12)
FireFlow: Fast Inversion of Rectified Flow for Image Semantic Editing
and 3 more not named here
timestep_embedding
brick of this paper's assembly: helper
5 other papers
3 dated earlier, 2 later · 1 only as an assembly brick
2412.07517 (2024-12)
FireFlow: Fast Inversion of Rectified Flow for Image Semantic Editing
2502.01105 (2025-02)
LayerTracer: Cognitive-Aligned Layered SVG Synthesis via Diffusion Transformer
2502.17363 (2025-02)
KV-Edit: Training-Free Image Editing for Precise Background Preservation
and 2 more not named here
MLPEmbedder
brick of this paper's assembly: helper
3 other papers
1 dated earlier, 2 later · 2 only as an assembly brick
2502.17363 (2025-02)
KV-Edit: Training-Free Image Editing for Precise Background Preservation
2602.00883 (2026-02)
DIAMOND: Directed Inference for Artifact Mitigation in Flow Matching Models
2606.17584 (2026-06)
Root-Selecting Fixed-Point Inversion for Rectified Flows via Trajectory Straightness
time_shift
brick of this paper's assembly: helper
3 other papers
3 dated earlier
2411.04746 (2024-11)
Taming Rectified Flow for Inversion and Editing
2412.07517 (2024-12)
FireFlow: Fast Inversion of Rectified Flow for Image Semantic Editing
2502.17363 (2025-02)
KV-Edit: Training-Free Image Editing for Precise Background Preservation
get_schedule
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 the same month
2502.17363 (2025-02)
KV-Edit: Training-Free Image Editing for Precise Background Preservation
2504.17761 (2025-04)
Step1X-Edit: A Practical Framework for General Image Editing
DoubleStreamBlock
brick of this paper's assembly: helper
1 other paper
1 later
2602.00883 (2026-02)
DIAMOND: Directed Inference for Artifact Mitigation in Flow Matching Models
DoubleStreamBlockProcessor
brick of this paper's assembly: helper
1 other paper
1 later
2602.00883 (2026-02)
DIAMOND: Directed Inference for Artifact Mitigation in Flow Matching Models
SelfAttention
brick of this paper's assembly: helper
1 other paper
1 later
2602.00883 (2026-02)
DIAMOND: Directed Inference for Artifact Mitigation in Flow Matching Models
SingleStreamBlock
brick of this paper's assembly: helper
1 other paper
1 later
2602.00883 (2026-02)
DIAMOND: Directed Inference for Artifact Mitigation in Flow Matching Models
unpack
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2502.17363 (2025-02)
KV-Edit: Training-Free Image Editing for Precise Background Preservation

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

Figure 1. The proposed UNO framework demonstrates strong generalization capabilities and supports customization across both singlesubject and multi-subject driven generation tasks.

For agents

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

get_harvested_code_for_paper("2504.02160")
get_code_for_paper("2504.02160")
have("2504.02160")

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

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

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

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

Connect an agent — have() is free.