SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.14237 · ICCV · 2025

Make Your Training Flexible: Towards Deployment-Efficient Video Models

Kunchang Li, Limin Wang, Yi Wang, Xiangyu Zeng, Chenting Wang, Tianxiang Jiang

arXiv · PDF · Open in the Atlas

Code that ran

17 of 17 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; 6 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 4 failures of our instrument; 0 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/2503.14237.json · badge: /api/ran/2503.14237.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
OpenGVLab/FluxViT canonical (classifier label)
classifier basis not recorded on the link
17 ran · 0 no recorded run
FunctionStatusWhere it lives
cosine_scheduler Ran
ran on a synthesized input
OpenGVLab/FluxViT/single_modality/utils.py
code served (permissive licence) · get_code("3f8a3473642aa49d")
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 ndarray, ndim 1, dtype family float, shape (500,) 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 math
import numpy as np

ARGS = {
    "base_value": 0.1,
    "final_value": 0.001,
    "epochs": 10,
    "niter_per_ep": 50,
    "warmup_epochs": 2,
    "start_warmup_value": 0.0,
    "warmup_steps": -1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (500,) — shape (500,) 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
create_optimizer Ran
ran on a synthesized input
OpenGVLab/FluxViT/single_modality/optim_factory.py
code served (permissive licence) · get_code("5e4e5db6f2ca5c09")
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 Adam. 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
from unittest.mock import Mock

torch.manual_seed(0)

# Create a minimal model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
        self.bias_param = nn.Parameter(torch.randn(2))
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

# Create args object with all required attributes
class Args:
    def __init__(self):
        self.opt = 'adam'
        self.lr = 0.001
        self.weight_decay = 1e-5
        self.opt_eps = 1e-8
        self.opt_betas = (0.9, 0.999)
        self.momentum = 0.9

args = Args()

# Define get_num_layer function
def get_num_layer(name):
    if 'linear1' in name:
        return 0
    elif 'linear2' in name:
        return 1
    else:
        return 0

# Define get_layer_scale function
def get_layer_scale(layer_id):
    if layer_id is None:
        return 1.0
    return 1.0 / (layer_id + 1)

# Define skip_list
skip_list = []

ARGS = {
    'args': args,
    'model': model,
    'get_num_layer': get_num_layer,
    'get_layer_scale': get_layer_scale,
    'filter_bias_and_bn': True,
    'skip_list': skip_list,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
timm, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Adam — a Adam output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Adam 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
crop_clip Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
OpenGVLab/FluxViT/single_modality/functional.py
code served (permissive licence) · get_code("bc39b8ed5fefa7eb")
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.

import numpy as np
import PIL
from PIL import Image

# Create a small numpy array-based clip
np_clip = [
    np.random.randint(0, 256, (100, 120, 3), dtype=np.uint8),
    np.random.randint(0, 256, (100, 120, 3), dtype=np.uint8),
]

# Create a small PIL Image-based clip
pil_clip = [
    Image.new('RGB', (120, 100), color=(73, 109, 137)),
    Image.new('RGB', (120, 100), color=(200, 150, 100)),
]

# Test with numpy arrays
ARGS = {
    'clip': np_clip,
    'min_h': 10,
    'min_w': 15,
    'h': 50,
    'w': 60,
}
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_1d_sincos_pos_embed Ran
ran, honoured the contract we drafted
OpenGVLab/FluxViT/single_modality/models/pos_embed.py
pointer only (licence: MIT); the stored copy get_code serves, from opengvlab/egovideo, is pointer only (licence: NONE) · get_code("1075afcc0bf619d6")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from opengvlab/egovideo, 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.

get_2d_sincos_pos_embed Ran
ran, honoured the contract we drafted
OpenGVLab/FluxViT/single_modality/models/pos_embed.py
pointer only (licence: MIT); the stored copy get_code serves, from lluosi/RDB-CL, is pointer only (licence: NONE) · get_code("77e8a3ac46f3afec")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from lluosi/RDB-CL, 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.

get_3d_sincos_pos_embed Ran
ran, honoured the contract we drafted
OpenGVLab/FluxViT/single_modality/models/pos_embed.py
pointer only (licence: MIT); the stored copy get_code serves, from opengvlab/egovideo, is pointer only (licence: NONE) · get_code("54f45ddeec14da87")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from opengvlab/egovideo, 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.

get_ceph_path Ran
ran on a synthesized input
OpenGVLab/FluxViT/single_modality/utils.py
code served (permissive licence) · get_code("090a19eec6390c6c")
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 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 os

# Analyze the function to understand what's needed:
# - ckpt_path: a path string that will be split
# - ceph_args: a dict with keys 'ckpt_path_split' and 'ceph_checkpoint_prefix'

# The function splits ckpt_path by a delimiter and joins with a prefix
# No complex objects needed, just strings and a dict

ARGS = {
    'ckpt_path': '/home/user/models/checkpoint_v1/model.pt',
    'ceph_args': {
        'ckpt_path_split': 'checkpoint_v1',
        'ceph_checkpoint_prefix': '/ceph/storage/checkpoints'
    }
}
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, ndim 1, dtype family float — 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
get_grad_norm_ Ran
ran, honoured the contract we drafted
OpenGVLab/FluxViT/single_modality/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from sekeunkim/echofm, is pointer only (licence: NONE) · get_code("ba1356e8ceb654d2")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from sekeunkim/echofm, 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.

get_num_layer_for_vit Ran
ran on a synthesized input
OpenGVLab/FluxViT/single_modality/optim_factory.py
code served (permissive licence) · get_code("009cf18580e4b995")
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

torch.manual_seed(0)

# This function takes two parameters: var_name and num_max_layer
# var_name is a string representing a variable name in a Vision Transformer model
# num_max_layer is an integer representing the maximum number of layers

ARGS = {
    'var_name': 'blocks.5.mlp.fc1.weight',
    'num_max_layer': 12
}
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
get_objective_score Ran
ran on a synthesized input
OpenGVLab/FluxViT/single_modality/models/vid_tldr.py
code served (permissive licence) · get_code("4e608b064deca5f5")
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 3, dtype family float, shape (2, 4, 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.functional as F

torch.manual_seed(0)

# Analyzing the function:
# - score_attn is used with .mean(dim=1), torch.clamp, F.normalize with p=1 and dim=-1
# - It goes through operations that expect shape (B, T_R, D) based on the operations
# - After mean(dim=1), it should have shape (B, D)
# - After F.normalize with dim=-1, it maintains shape
# - scores.sum(dim=2) suggests there's a dim=2, so original shape needs 3 dims
# - scores = scores.sum(dim=2).unsqueeze(-1) results in shape (B, T_R, 1)
# - So before sum(dim=2), scores shape is (B, T_R, something)
# - Working backwards: score_attn.mean(dim=1) reduces dim 1
# - If score_attn starts as (B, num_heads, T_R, D) and mean(dim=1) gives (B, T_R, D)
# - F.normalize with dim=-1 normalizes along last dim
# - scores = score_attn * torch.log(score_attn) preserves shape
# - scores.sum(dim=2) sums along dim 2, so (B, T_R, D) -> (B, T_R)
# - Then unsqueeze(-1) -> (B, T_R, 1)

# Building score_attn with shape (B, num_heads, T_R, D)
# B=2 (batch), num_heads=3, T_R=4 (time), D=5 (feature dim)
B = 2
num_heads = 3
T_R = 4
D = 5

# Create attention scores: (B, num_heads, T_R, D)
score_attn = torch.rand(B, num_heads, T_R, D)
# Ensure values are in valid range for log operations
score_attn = torch.clamp(score_attn, min=0.01, max=0.99)

ARGS = {
    "score_attn": score_attn,
    "eps": 1e-17
}
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 3, dtype family float, shape (2, 4, 1) — shape (2, 4, 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_objective_score_gini Ran
ran on a synthesized input
OpenGVLab/FluxViT/single_modality/models/vid_tldr.py
code served (permissive licence) · get_code("7aae2e8f7142f44d")
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 3, dtype family float, shape (2, 3, 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)

# score_attn is used with:
# - .mean(dim=1)
# - torch.isnan().any()
# - gini_impurity() which does torch.sum(...**2, dim=-1)
# - .unsqueeze(-1)
# - .shape unpacking as (B, T_R, _)
# - .amin(dim=1, keepdim=True)
# - .amax(dim=1, keepdim=True)
# - .mean(dim=1, keepdim=True)
# - < comparison
# - .masked_fill()
#
# Input shape: (B, num_heads, T_R, num_classes) or similar that allows mean(dim=1)
# After mean(dim=1): (B, T_R, num_classes)
# gini_impurity expects probabilities on dim=-1
# Result after gini_impurity and unsqueeze: (B, T_R, 1)

B = 2
T_R = 3
num_classes = 4

# Create valid probability distributions (sum to 1 on last dimension)
score_attn = torch.rand(B, 2, T_R, num_classes)  # (B, num_heads, T_R, num_classes)
score_attn = score_attn / score_attn.sum(dim=-1, keepdim=True)  # normalize to get valid probabilities

ARGS = {
    "score_attn": score_attn,
}
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 3, dtype family float, shape (2, 3, 1) — shape (2, 3, 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_parameter_groups Ran
ran; our contract draft was wrong, not the code
OpenGVLab/FluxViT/single_modality/optim_factory.py
pointer only (licence: MIT); the stored copy get_code serves, from boyazeng/understand_bias, is pointer only (licence: NONE) · get_code("0ef0019514eaaa09")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from boyazeng/understand_bias, 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.

get_resize_sizes Ran
ran, honoured the contract we drafted
OpenGVLab/FluxViT/single_modality/functional.py
code served (permissive licence) · get_code("2b53e457d5632b4e")
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

# Analyze the function: get_resize_sizes takes im_h (image height), 
# im_w (image width), and size (a target dimension). It uses basic 
# arithmetic operations on these numeric values and returns a tuple.

torch.manual_seed(0)

# Create simple numeric arguments
im_h = 480  # image height - distinct value
im_w = 640  # image width - distinct value
size = 256  # target resize dimension - distinct value

ARGS = {
    "im_h": im_h,
    "im_w": im_w,
    "size": size,
}
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
gini_impurity Ran
ran on a synthesized input
OpenGVLab/FluxViT/single_modality/models/vid_tldr.py
code served (permissive licence) · get_code("75b43d03703e3dd4")
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

torch.manual_seed(0)

# The function expects probabilities as a tensor
# It computes: 1 - sum(probabilities^2) along the last dimension
# So we need a tensor with shape (..., num_classes)
# Let's create a small batch of probability distributions

probabilities = torch.tensor([
    [0.1, 0.2, 0.3, 0.4],  # 4 classes, batch size 2
    [0.25, 0.25, 0.25, 0.25]
], dtype=torch.float32)

ARGS = {
    "probabilities": probabilities
}
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
resize_clip Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
OpenGVLab/FluxViT/single_modality/functional.py
code served (permissive licence) · get_code("981936c73d3cdd12")
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.

import numbers
import cv2
import numpy as np
import PIL
from PIL import Image

# Create a small numpy array clip (list of frames)
frame1 = np.random.randint(0, 256, (480, 640, 3), dtype=np.uint8)
frame2 = np.random.randint(0, 256, (480, 640, 3), dtype=np.uint8)
np_clip = [frame1, frame2]

# Create a PIL Image clip
pil_frame1 = Image.fromarray(np.random.randint(0, 256, (480, 640, 3), dtype=np.uint8))
pil_frame2 = Image.fromarray(np.random.randint(0, 256, (480, 640, 3), dtype=np.uint8))
pil_clip = [pil_frame1, pil_frame2]

ARGS = {
    'clip': np_clip,
    'size': 256,
    'interpolation': 'bilinear'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, cv2, 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
spatial_sampling Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
OpenGVLab/FluxViT/single_modality/datasets/kinetics.py
code served (permissive licence) · get_code("f188ca6f84532f7f")
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; 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 torch.nn as nn

torch.manual_seed(0)

# Create a small tensor for frames: (num_frames, height, width, channels)
# Using distinct dimensions: 2 frames, 256 height, 256 width, 3 channels
frames = torch.randint(0, 256, (2, 256, 256, 3), dtype=torch.uint8).float()

# Define mock functions that the spatial_sampling function calls
def random_short_side_scale_jitter(images, min_size, max_size, inverse_uniform_sampling=False):
    """Mock function for scaling"""
    return images, None

def random_crop(frames, crop_size):
    """Mock function for random cropping"""
    return frames[:, :crop_size, :crop_size, :], None

def random_resized_crop(images, target_height, target_width, scale, ratio):
    """Mock function for random resized crop"""
    return images[:, :target_height, :target_width, :]

def random_resized_crop_with_shift(images, target_height, target_width, scale, ratio):
    """Mock function for random resized crop with shift"""
    return images[:, :target_height, :target_width, :]

def horizontal_flip(prob, frames):
    """Mock function for horizontal flip"""
    return frames, None

def uniform_crop(frames, crop_size, spatial_idx):
    """Mock function for uniform cropping"""
    return frames[:, :crop_size, :crop_size, :], None

# Inject mock functions into the module namespace
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'random_short_side_scale_jitter', random_short_side_scale_jitter)
setattr(current_module, 'random_crop', random_crop)
setattr(current_module, 'random_resized_crop', random_resized_crop)
setattr(current_module, 'random_resized_crop_with_shift', random_resized_crop_with_shift)
setattr(current_module, 'horizontal_flip', horizontal_flip)
setattr(current_module, 'uniform_crop', uniform_crop)

ARGS = {
    'frames': frames,
    'spatial_idx': -1,
    'min_scale': 256,
    'max_scale': 320,
    'crop_size': 224,
    'random_horizontal_flip': True,
    'inverse_uniform_sampling': False,
    'aspect_ratio': None,
    'scale': None,
    'motion_shift': False,
}
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 — no output shape is stated: observe_signature.py could not observe it (fixture:KeyError)
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
tensor_normalize Ran
ran, honoured the contract we drafted
OpenGVLab/FluxViT/single_modality/datasets/kinetics.py
pointer only (licence: MIT); the stored copy get_code serves, from kangsankim07/videoicl, is pointer only (licence: NONE) · get_code("14b3b13b2e7ee844")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kangsankim07/videoicl, 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.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 1 the same month, 2 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
get_2d_sincos_pos_embed 95 other papers
79 dated earlier, 5 the same month, 10 later, 1 same year, order not determinable · 33 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
and 92 more not named here
get_grad_norm_ 21 other papers
18 dated earlier, 2 later, 1 same year, order not determinable
2308.00566 (2023-08)
Stochastic positional embeddings improve masked image modeling
2310.12979 (2023-10)
Predicting a Protein's Stability under a Million Mutations
2311.13627 (2023-11)
Vamos: Versatile Action Models for Video Understanding
and 18 more not named here
get_parameter_groups 18 other papers
17 dated earlier, 1 same year, order not determinable
1905.02244 (2019-05)
Searching for MobileNetV3
136810051 (2022 (year only))
AMixer: Adaptive Weight Mixing for Self-Attention Free Vision Transformers
136860514 (2022 (year only))
SLIP: Self-supervision meets Language-Image Pre-training
and 15 more not named here
tensor_normalize 15 other papers
15 dated earlier
2210.00788 (2022-10)
Towards a Unified View on Visual Parameter-Efficient Transfer Learning
2211.09120 (2022-11)
AdaMAE: Adaptive Masking for Efficient Spatiotemporal Learning with Masked Autoencoders
2307.02227 (2023-07)
MAE-DFER: Efficient Masked Autoencoder for Self-supervised Dynamic Facial Expression Recognition
and 12 more not named here
crop_clip 13 other papers
13 dated earlier
2112.02815 (2021-12)
Make It Move: Controllable Image-to-Video Generation with Text Descriptions
2209.10340 (2022-09)
FNeVR: Neural Volume Rendering for Face Animation
2210.00788 (2022-10)
Towards a Unified View on Visual Parameter-Efficient Transfer Learning
and 10 more not named here
get_resize_sizes 10 other papers
10 dated earlier
2210.00788 (2022-10)
Towards a Unified View on Visual Parameter-Efficient Transfer Learning
2211.09120 (2022-11)
AdaMAE: Adaptive Masking for Efficient Spatiotemporal Learning with Masked Autoencoders
2307.02227 (2023-07)
MAE-DFER: Efficient Masked Autoencoder for Self-supervised Dynamic Facial Expression Recognition
and 7 more not named here
resize_clip 9 other papers
9 dated earlier
2210.00788 (2022-10)
Towards a Unified View on Visual Parameter-Efficient Transfer Learning
2211.09120 (2022-11)
AdaMAE: Adaptive Masking for Efficient Spatiotemporal Learning with Masked Autoencoders
2307.02227 (2023-07)
MAE-DFER: Efficient Masked Autoencoder for Self-supervised Dynamic Facial Expression Recognition
and 6 more not named here
get_3d_sincos_pos_embed 2 other papers
2 dated earlier
2403.05856 (2024-03)
POV: Prompt-Oriented View-Agnostic Learning for Egocentric Hand-Object Interaction in the Multi-View World
2406.18070 (2024-06)
EgoVideo: Exploring Egocentric Foundation Model and Downstream Adaptation
spatial_sampling 2 other papers
2 dated earlier
2402.05892 (2024-02)
Mamba-ND: Selective State Space Modeling for Multi-Dimensional Data
2403.09626 (2024-03)
Video Mamba Suite: State Space Model as a Versatile Alternative for Video Understanding
get_1d_sincos_pos_embed 1 other paper
1 dated earlier
2406.18070 (2024-06)
EgoVideo: Exploring Egocentric Foundation Model and Downstream Adaptation

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

Current video training methods rely on fixed spatiotemporal sampling grids to extract a predetermined number of tokens, limiting adaptability to diverse computational budgets and resulting in suboptimal accuracy-computation trade-offs. This rigidity constrains high-performance models trained in resource-rich environments from being efficiently deployed on resource-constrained devices. We hence introduce a novel paradigm for lossless adaptation across scenarios, enabling models to maintain optimal performance under high-resource conditions while seamlessly transferring to low-resource environments. Central to this is Token Optimization (TO), an adaptive inference framework that dynamically samples and selects input token set to optimize input information under varied computational constraints. To support this, we propose Flux, an augmentation tool that enables flexible sampling grids and token selection. It integrates seamlessly into popular video training frameworks, significantly enhancing model robustness and adaptability with negligible additional cost. Applied to largescale video pretraining, our method produces FluxViT, which achieves state-of-the-art performance across multiple tasks under standard costs. Remarkably, with only 1/4 of the tokens, FluxViT matches prior state-of-the-art models under TO across tasks, achieving nearly 90% computational savings. Code and models are available at https: //github.com/OpenGVLab/FluxViT.

For agents

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

get_harvested_code_for_paper("2503.14237")
get_code_for_paper("2503.14237")
have("2503.14237")

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

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

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

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

Connect an agent — have() is free.