SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2304.07193 · Trans. Mach. Learn. Res. · 2023

DINOv2: Learning Robust Visual Features without Supervision

Ishan Misra, Julien Mairal, Piotr Bojanowski, Armand Joulin, Po-Yao Huang, Vasil Khalidov, Marc Szafraniec, Patrick Labatut, Huy Vo, Gabriel Synnaeve, Michael Rabbat, Hu Xu, and 14 more

arXiv · PDF · Open in the Atlas

Code that ran

39 of 46 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (13 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 29 have no contract verdict; 8 failures of our instrument; 7 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/2304.07193.json · badge: /api/ran/2304.07193.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
seatizendoi/dinovdeau community (classifier label)
classifier basis not recorded on the link
10 ran · 0 no recorded run
ByungKwanLee/Causal-Unsupervised-Segmentation community
Papers with Code archive
9 ran · 2 no recorded run
facebookresearch/highrescanopyheight community
Papers with Code archive
6 ran · 2 no recorded run
beneroth13/dinov2 community (classifier label)
classifier basis: plan_row
6 ran · 0 no recorded run
gorkaydemir/DINOSAUR community
Papers with Code archive
4 ran · 1 no recorded run
marrlab/dinobloom community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
BurguerJohn/torch-felix community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
PaddlePaddle/PASSL community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
buyeah1109/KEN community
Papers with Code archive
0 ran · 1 no recorded run
BurguerJohn/global_perceptual_similarity_loss community
Papers with Code archive
0 ran · 1 no recorded run
FunctionStatusWhere it lives
Attention Ran
ran on a synthesized input
ByungKwanLee/Causal-Unsupervised-Segmentation/models/dinov2vit.py
pointer only (licence: NONE) · get_code("9557b19d4ebe95ac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ByungKwanLee/Causal-Unsupervised-Segmentation 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.

Attention Ran
ran on a synthesized input
facebookresearch/highrescanopyheight/models/backbone.py
code served (permissive licence) · get_code("8598c6b96e3a0fbb")
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, 3, 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 Attention(nn.Module):

    def __init__(self, dim: int, num_heads: int=8, qkv_bias: bool=False, attn_drop: float=0.0, proj_drop: float=0.0) -> None:
        super().__init__()
        self.num_heads = num_heads
        head_dim = dim // num_heads
        self.scale = head_dim ** (-0.5)
        self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias)
        self.attn_drop = nn.Dropout(attn_drop)
        self.proj = nn.Linear(dim, dim)
        self.proj_drop = nn.Dropout(proj_drop)

    def forward(self, x: Tensor) -> Tensor:
        B, N, C = x.shape
        qkv = self.qkv(x).reshape(B, N, 3, self.num_heads, C // self.num_heads).permute(2, 0, 3, 1, 4)
        q, k, v = (qkv[0] * self.scale, qkv[1], qkv[2])
        attn = q @ k.transpose(-2, -1)
        attn = attn.softmax(dim=-1)
        attn = self.attn_drop(attn)
        x = (attn @ v).transpose(1, 2).reshape(B, N, C)
        x = self.proj(x)
        x = self.proj_drop(x)
        return x


INIT_ARGS = {
    'dim': 8,
    'num_heads': 2,
    'qkv_bias': False,
    'attn_drop': 0.0,
    'proj_drop': 0.0
}

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

if __name__ == '__main__':
    attn = Attention(**INIT_ARGS)
    output = attn(**ARGS)
    print(f"Input shape: {ARGS['x'].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, 3, 8) — shape (2, 3, 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)
Block Ran
ran on a synthesized input · constructed an object; no result was computed
ByungKwanLee/Causal-Unsupervised-Segmentation/models/dinov2vit.py
pointer only (licence: NONE) · get_code("0d03b714971c0501")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ByungKwanLee/Causal-Unsupervised-Segmentation 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.

BlockChunk Ran
ran on a synthesized input · constructed an object; no result was computed
ByungKwanLee/Causal-Unsupervised-Segmentation/models/dinov2vit.py
pointer only (licence: NONE) · get_code("927d2139eab04c62")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ByungKwanLee/Causal-Unsupervised-Segmentation 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.

CreateWeights Ran
ran on a synthesized input
BurguerJohn/torch-felix/felix.py
code served (permissive licence) · get_code("6ceb2adc39304f27")
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 (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 numpy as np
import math

ARGS = {
    "start_weight": 0.1,
    "end_weight": 1.0,
    "count": 5,
    "curve_weight": 2.0
}
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 (5,) — shape (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
Decoder Ran
ran on a synthesized input · constructed an object; no result was computed
gorkaydemir/DINOSAUR/models/model.py
code served (permissive licence) · get_code("e9df43ed81dc2b08")
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 an instance of its own class, Decoder: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class Args:
    def __init__(self):
        self.slot_dim = 64

ARGS = {
    'args': Args()
}
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 Decoder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Decoder 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
DropPath Ran
ran on a synthesized input · constructed an object; no result was computed
ByungKwanLee/Causal-Unsupervised-Segmentation/models/dinov2vit.py
pointer only (licence: NONE) · get_code("22e81d05c408426c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ByungKwanLee/Causal-Unsupervised-Segmentation 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.

ISA Ran
ran on a synthesized input · constructed an object; no result was computed
gorkaydemir/DINOSAUR/models/model.py
code served (permissive licence) · get_code("05d603aa1a9a31eb")
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 an instance of its own class, ISA: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class Args:
    def __init__(self):
        self.num_slots = 3
        self.slot_dim = 4
        self.slot_att_iter = 2
        self.query_opt = True
        self.resize_to = (8, 8)
        self.patch_size = 2

ARGS = {
    'args': Args(),
    'input_dim': 5
}
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 ISA — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ISA 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
LayerScale Ran
ran on a synthesized input · constructed an object; no result was computed
ByungKwanLee/Causal-Unsupervised-Segmentation/models/dinov2vit.py
pointer only (licence: NONE) · get_code("1d18daa479e53b33")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ByungKwanLee/Causal-Unsupervised-Segmentation 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.

LayerScale Ran
ran on a synthesized input · constructed an object; no result was computed
facebookresearch/highrescanopyheight/models/backbone.py
code served (permissive licence) · get_code("d502f73859574661")
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 an instance of its own class, LayerScale: the run constructed the object and did not call it, so no result was computed. 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 torch import nn

torch.manual_seed(0)

ARGS = {
    'dim': 4,
    'init_values': 1e-05,
    'inplace': 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 LayerScale — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a LayerScale 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
MLP Ran
ran on a synthesized input · constructed an object; no result was computed
gorkaydemir/DINOSAUR/models/model.py
code served (permissive licence) · get_code("8912a968e28ea03d")
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 an instance of its own class, MLP: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'input_dim': 4,
    'hidden_dim': 8,
    'output_dim': 4,
    'residual': False,
    'layer_order': '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 MLP — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MLP 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
MaskingGenerator Ran
ran on a synthesized input · constructed an object; no result was computed
facebookresearch/highrescanopyheight/models/backbone.py
code served (permissive licence) · get_code("5fe0498944067403")
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 an instance of its own class, MaskingGenerator: the run constructed the object and did not call it, so no result was computed. 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 math
import numpy as np
import random

random.seed(42)
np.random.seed(42)

ARGS = {
    'input_size': (16, 16),
    'num_masking_patches': 64,
    'min_num_patches': 4,
    'max_num_patches': 100,
    'min_aspect': 0.3,
    'max_aspect': 3.0,
}
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 MaskingGenerator — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MaskingGenerator 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
Mlp Ran
ran on a synthesized input · constructed an object; no result was computed
ByungKwanLee/Causal-Unsupervised-Segmentation/models/dinov2vit.py
pointer only (licence: NONE) · get_code("11ea568c90b9f65a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ByungKwanLee/Causal-Unsupervised-Segmentation 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.

Mlp Ran
ran on a synthesized input · constructed an object; no result was computed
facebookresearch/highrescanopyheight/models/backbone.py
code served (permissive licence) · get_code("a5b98a91fdfc68fa")
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 an instance of its own class, Mlp: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "in_features": 4,
    "hidden_features": 8,
    "out_features": 3,
    "act_layer": nn.GELU,
    "drop": 0.1,
}
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 Mlp — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Mlp 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
PatchEmbed Ran
ran on a synthesized input
ByungKwanLee/Causal-Unsupervised-Segmentation/models/dinov2vit.py
pointer only (licence: NONE) · get_code("8b5fc434aefb49a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ByungKwanLee/Causal-Unsupervised-Segmentation 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.

PatchEmbed Ran
ran on a synthesized input · constructed an object; no result was computed
facebookresearch/highrescanopyheight/models/backbone.py
code served (permissive licence) · get_code("421274bff5d2b1e9")
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 an instance of its own class, PatchEmbed: the run constructed the object and did not call it, so no result was computed. 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 torch import nn

torch.manual_seed(0)

ARGS = {
    "img_size": 224,
    "patch_size": 16,
    "in_chans": 3,
    "embed_dim": 768,
    "norm_layer": nn.LayerNorm,
}
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 PatchEmbed — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PatchEmbed 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
SA Ran
ran on a synthesized input · constructed an object; no result was computed
gorkaydemir/DINOSAUR/models/model.py
code served (permissive licence) · get_code("389e99f57cbc96c6")
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 an instance of its own class, SA: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal args class with all required attributes
class Args:
    def __init__(self):
        self.num_slots = 2
        self.slot_dim = 4
        self.slot_att_iter = 2
        self.query_opt = True

ARGS = {
    'args': Args(),
    'input_dim': 5
}
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 SA — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a SA 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
add_residual Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
marrlab/dinobloom/dinov2/layers/block.py
code served (permissive licence) · get_code("5d16d4d4fc573ac7")
How it ran

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

import torch

torch.manual_seed(0)

# Build tiny tensors for the function arguments
# x: input tensor, shape (batch=2, features=4)
x = torch.randn(2, 4, dtype=torch.float32)

# brange: indices for where to add residual, shape should be compatible with batch dimension
brange = torch.tensor([0, 1], dtype=torch.long)

# residual: tensor to add, same shape as x
residual = torch.randn(2, 4, dtype=torch.float32)

# residual_scale_factor: scalar multiplier
residual_scale_factor = 0.5

# scaling_vector: optional vector for scaled operations, set to None for first branch
scaling_vector = None

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

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

import torch
import numpy as np

torch.manual_seed(0)

# Build tiny tensors for the function
# x: input tensor that will have residual added to it
# Shape: (2, 4) - batch size 2, dimension 4
x = torch.randn(2, 4, dtype=torch.float32)

# brange: indices to use for index_add operation
# Should have values in range [0, batch_size)
brange = torch.tensor([0, 1], dtype=torch.long)

# residual: the residual to add
# Shape: (2, 4) - same shape as x for flattening to work
residual = torch.randn(2, 4, dtype=torch.float32)

# residual_scale_factor: scalar multiplier for the residual
residual_scale_factor = 0.5

# scaling_vector: optional per-element scaling
# Shape: (2, 4) to match x and residual dimensions
scaling_vector = torch.randn(2, 4, dtype=torch.float32)

ARGS = {
    "x": x,
    "brange": brange,
    "residual": residual,
    "residual_scale_factor": residual_scale_factor,
    "scaling_vector": scaling_vector,
}
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 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
collate_fn_monolabel Ran
ran on a synthesized input
seatizendoi/dinovdeau/src/trainer/tools.py
code served (permissive licence) · get_code("707671e31e8906f9")
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 numpy as np

torch.manual_seed(0)

# Construct a batch of items compatible with collate_fn_monolabel
# Each item in the batch needs 'pixel_values' and 'label' keys
batch = [
    {
        'pixel_values': torch.randn(3, 4, 4),  # 3 channels, 4x4 image
        'label': 0
    },
    {
        'pixel_values': torch.randn(3, 4, 4),
        'label': 1
    }
]

ARGS = {
    'batch': batch
}
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 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
collate_fn_multilabel Ran
ran on a synthesized input
seatizendoi/dinovdeau/src/trainer/tools.py
code served (permissive licence) · get_code("7db18bed330a0eff")
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 numpy as np

torch.manual_seed(0)

# Create a minimal batch of multilabel data
batch = [
    {
        'pixel_values': torch.randn(3, 4, 4),  # 3 channels, 4x4 image
        'label': [1.0, 0.0, 1.0, 0.0]  # multilabel: 4 labels
    },
    {
        'pixel_values': torch.randn(3, 4, 4),
        'label': [0.0, 1.0, 0.0, 1.0]
    }
]

ARGS = {
    'batch': batch
}
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 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
compute_best_threshold Ran
ran on a synthesized input
seatizendoi/dinovdeau/src/utils/evaluation.py
code served (permissive licence) · get_code("1dc3843893b5cd44")
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 numpy as np
from sklearn.metrics import f1_score

# Set random seed for reproducibility
np.random.seed(0)

# Create sample data for y_true and y_probs
# y_true: binary labels (0 or 1)
y_true = np.array([0, 1, 1, 0, 1, 0, 1, 1])

# y_probs: probability scores between 0 and 1
y_probs = np.array([0.1, 0.8, 0.9, 0.2, 0.7, 0.3, 0.6, 0.85])

ARGS = {
    "y_true": y_true,
    "y_probs": y_probs,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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
compute_metrics_monolabel Ran
ran on a synthesized input
seatizendoi/dinovdeau/src/trainer/tools.py
code served (permissive licence) · get_code("2460ef2831016887")
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 numpy as np
from transformers import EvalPrediction
from sklearn.metrics import f1_score, accuracy_score

torch.manual_seed(0)

# Create predictions: batch_size=2, num_classes=4
# These are logits that will be softmaxed
predictions = np.array([
    [2.0, 1.0, 0.5, -1.0],
    [0.1, 2.5, 1.2, 0.3]
], dtype=np.float32)

# Create labels: batch_size=2, each label is a class index
label_ids = np.array([0, 1], dtype=np.int64)

# Create EvalPrediction object
p = EvalPrediction(
    predictions=predictions,
    label_ids=label_ids
)

ARGS = {
    'p': p
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, 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
create_head Ran
ran on a synthesized input
seatizendoi/dinovdeau/src/model/model_setup.py
code served (permissive licence) · get_code("4a4314d5371e5636")
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 Sequential. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Define arguments for create_head function
ARGS = {
    "num_features": 128,
    "number_classes": 10,
    "dropout_prob": 0.5,
    "activation_func": nn.ReLU
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
drop_add_residual_stochastic_depth Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ByungKwanLee/Causal-Unsupervised-Segmentation/models/dinov2vit.py
pointer only (licence: NONE) · get_code("ba6d096d6c5fffc9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ByungKwanLee/Causal-Unsupervised-Segmentation 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.

drop_add_residual_stochastic_depth Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
beneroth13/dinov2/dinov2/layers/block.py
code served (permissive licence) · get_code("85f7ffc01945bb72")
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, 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 nn, Tensor
from typing import Callable

torch.manual_seed(0)

# Create a simple residual function that takes a tensor and returns a tensor of same shape
class SimpleResidualFunc(nn.Module):
    def __init__(self, dim: int):
        super().__init__()
        self.linear = nn.Linear(dim, dim)
    
    def forward(self, x: Tensor) -> Tensor:
        # x will have shape (sample_subset_size, n, d)
        # We need to return same shape
        b, n, d = x.shape
        x_flat = x.flatten(1)  # (b, n*d)
        out = self.linear(x_flat)  # (b, n*d)
        return out.view(b, n, d)

# Create input tensor with shape (batch=2, n=3, d=4)
x = torch.randn(2, 3, 4)

# Create a residual function
residual_func = SimpleResidualFunc(dim=3*4)

# Define the sample_drop_ratio parameter
sample_drop_ratio = 0.1

ARGS = {
    "x": x,
    "residual_func": residual_func,
    "sample_drop_ratio": sample_drop_ratio
}
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, 4) — shape (2, 3, 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
drop_add_residual_stochastic_depth Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
marrlab/dinobloom/dinov2/layers/block.py
code served (permissive licence) · get_code("931b30d6ce9e37cb")
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, 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 nn

torch.manual_seed(0)

# Create a simple residual function that takes a tensor and returns a tensor of the same shape
class SimpleResidualFunc(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def forward(self, x: torch.Tensor) -> torch.Tensor:
        # x comes in as (batch, seq, dim), apply linear to last dim
        b, n, d = x.shape
        x_flat = x.reshape(-1, d)
        out = self.linear(x_flat)
        return out.reshape(b, n, d)

residual_func = SimpleResidualFunc()

# Create input tensor: (batch=2, seq=3, dim=4)
x = torch.randn(2, 3, 4)

# sample_drop_ratio as a float between 0 and 1
sample_drop_ratio = 0.25

ARGS = {
    "x": x,
    "residual_func": residual_func,
    "sample_drop_ratio": sample_drop_ratio,
}
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, 4) — shape (2, 3, 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
drop_path Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
beneroth13/dinov2/dinov2/layers/drop_path.py
code served (permissive licence) · get_code("c157f5b112b3a392")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 3, 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 as nn

torch.manual_seed(0)

# Create a small tensor for drop_path
# The function uses x.shape[0] for batch dimension and x.ndim for number of dimensions
# It also calls x.new_empty() and performs element-wise operations
x = torch.randn(2, 4, 3, 5)  # batch=2, then 3 other dimensions with distinct sizes

ARGS = {
    "x": x,
    "drop_prob": 0.5,
    "training": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 4, 3, 5) — shape (2, 4, 3, 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
format_transforms_to_markdown Ran
ran on a synthesized input
seatizendoi/dinovdeau/src/utils/model_card_generator.py
code served (permissive licence) · get_code("d73ef6282cb6a0dc")
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 = {
    'transforms_dict': {
        'color_transforms': [
            {
                'operation': 'Brightness',
                'probability': 0.85
            },
            {
                'operation': 'Contrast',
                'probability': 0.75
            }
        ],
        'geometric_transforms': [
            {
                'operation': 'Rotation',
                'probability': 0.50
            },
            {
                'operation': 'Flip',
                'extra_param': 'some_value'
            }
        ],
        'noise_transforms': [
            {
                'operation': 'GaussianNoise',
                'probability': 0.25,
                'std': 0.1
            }
        ]
    }
}
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
get_branges_scales Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
beneroth13/dinov2/dinov2/layers/block.py
code served (permissive licence) · get_code("5be3610fa1fee19e")
How it ran

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

import torch

torch.manual_seed(0)

# Construct a small tensor with shape (batch=2, sequence=4, dim=3)
x = torch.randn(2, 4, 3)

# Define arguments
ARGS = {
    "x": x,
    "sample_drop_ratio": 0.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 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
get_config_env Ran
ran on a synthesized input
seatizendoi/dinovdeau/src/utils/utils.py
code served (permissive licence) · get_code("dfc557c31ab30db4")
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 json
import tempfile
from pathlib import Path

# Create a temporary config file with valid JSON content
temp_dir = tempfile.TemporaryDirectory()
config_file = Path(temp_dir.name) / "config.json"

config_data = {
    "model_name": "test_model",
    "learning_rate": "0.001",
    "batch_size": "32",
    "epochs": "10"
}

with open(config_file, 'w') as f:
    json.dump(config_data, f)

ARGS = {
    "config_path": str(config_file)
}
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
get_training_type_from_args Ran
ran on a synthesized input
seatizendoi/dinovdeau/src/utils/enums.py
code served (permissive licence) · get_code("5e5ca5dc0d79533a")
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 ClassificationType. 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 argparse import Namespace

ARGS = {
    'args': Namespace(training_type='multilabel')
}
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 ClassificationType — a ClassificationType output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ClassificationType 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
logits_to_probs Ran
ran on a synthesized input
seatizendoi/dinovdeau/src/utils/evaluation.py
code served (permissive licence) · get_code("5474362c7aad954b")
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. 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

# Create sample logits/predictions as a numpy array
# The function expects an ndarray and iterates over it, passing each element to sigmoid
predictions = np.array([0.5, -1.0, 2.0, -0.5])

ARGS = {
    "predictions": predictions
}
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 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
make_2tuple Ran
ran, honoured the contract we drafted
beneroth13/dinov2/dinov2/layers/patch_embed.py
code served (permissive licence) · get_code("3c04490a215299f2")
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 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

torch.manual_seed(0)

# Test case 1: tuple input with length 2
test_tuple = (5, 7)

# Test case 2: integer input
test_int = 3

# We'll create ARGS with the integer case
ARGS = {
    "x": test_int
}
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 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
make_2tuple Ran
ran, honoured the contract we drafted
facebookresearch/highrescanopyheight/models/backbone.py
code served (permissive licence) · get_code("1844e38d40beb412")
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

torch.manual_seed(0)

ARGS = {
    "x": 5
}
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, 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
named_apply Ran
ran; our contract draft was wrong, not the code
beneroth13/dinov2/dinov2/models/vision_transformer.py
code served (permissive licence) · get_code("e7fcb6d9ac9deaf4")
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 SimpleModel. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple nested module structure
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.layer1 = nn.Linear(4, 3)
        self.layer2 = nn.Sequential(
            nn.Linear(3, 2),
            nn.ReLU()
        )
    
    def forward(self, x):
        x = self.layer1(x)
        x = self.layer2(x)
        return x

# Create a simple callback function that tracks module names
collected_modules = []

def callback_fn(module, name):
    collected_modules.append((name, type(module).__name__))

# Instantiate the module
module = SimpleModel()

# Define ARGS dictionary with all parameters
ARGS = {
    'fn': callback_fn,
    'module': module,
    'name': '',
    'depth_first': True,
    'include_root': False
}
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 SimpleModel — a SimpleModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModel 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
named_apply Ran
ran; our contract draft was wrong, not the code
ByungKwanLee/Causal-Unsupervised-Segmentation/models/dinov2vit.py
pointer only (licence: NONE) · get_code("764b0f3c664386a8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ByungKwanLee/Causal-Unsupervised-Segmentation 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.

sigmoid Ran
ran on a synthesized input
seatizendoi/dinovdeau/src/utils/evaluation.py
code served (permissive licence) · get_code("66fcba2b19055cb7")
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 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 numpy as np

# The sigmoid function takes one parameter: _outputs
# It expects a numpy array (or array-like) of numerical values
# The function applies the sigmoid transformation: 1 / (1 + exp(-x))

# Create a small numpy array as test input
_outputs = np.array([[-2.0, -1.0, 0.0, 1.0],
                      [2.0, 0.5, -0.5, 1.5]])

ARGS = {
    "_outputs": _outputs
}
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 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
wrap_forward Ran
ran on a synthesized input
PaddlePaddle/PASSL/passl/core/recompute.py
code served (permissive licence) · get_code("c3b15e0d7daa5901")
How it ran

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

import torch
import functools

torch.manual_seed(0)

def original_func(x, y, z=10):
    """A simple function to be wrapped"""
    return x + y + z

def new_func(func, x, y, z=10):
    """A wrapper function that calls the original with modified behavior"""
    result = func(x, y, z=z)
    return result * 2

ARGS = {
    'func': original_func,
    'newfunc': new_func,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
Block Not yet run
unverified (harvested, no recorded run)
facebookresearch/highrescanopyheight/models/backbone.py
code served (permissive licence) · get_code("912e7d3558003565")
How it ran

no invocation recorded.

DINOSAURpp Not yet run
unverified (harvested, no recorded run)
gorkaydemir/DINOSAUR/models/model.py
code served (permissive licence) · get_code("165b58cc341915b6")
How it ran

no invocation recorded.

DINOv2FeatureExtractor Not yet run
unverified (harvested, no recorded run)
buyeah1109/KEN/KEN/features/DINOv2FeatureExtractor.py
pointer only (licence: NONE) · get_code("2befc0a9ae12b450")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, buyeah1109/KEN 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. No invocation recorded.

DinoVisionTransformer Not yet run
unverified (harvested, no recorded run)
ByungKwanLee/Causal-Unsupervised-Segmentation/models/dinov2vit.py
pointer only (licence: NONE) · get_code("64bfcff23fded249")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ByungKwanLee/Causal-Unsupervised-Segmentation 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. No invocation recorded.

DinoVisionTransformer Not yet run
unverified (harvested, no recorded run)
facebookresearch/highrescanopyheight/models/backbone.py
code served (permissive licence) · get_code("d377a1c9f26035bb")
How it ran

no invocation recorded.

GlobalPercLossTeacherStudent Not yet run
unverified (harvested, no recorded run)
BurguerJohn/global_perceptual_similarity_loss/GlobalPercLossTeacherStudent.py
code served (permissive licence) · get_code("316832e67ccf3416")
How it ran

no invocation recorded.

init_weights_vit_timm Not yet run
unverified (harvested, no recorded run)
ByungKwanLee/Causal-Unsupervised-Segmentation/models/dinov2vit.py
pointer only (licence: NONE) · get_code("9c2af68d5f7355a0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ByungKwanLee/Causal-Unsupervised-Segmentation 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. No invocation recorded.

Also present in other papers' code

Of 46 samples lifted from this paper's linked repositories, 46 carry a function identity and 0 do not. Of the 42 distinct functions with an identity, 14 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 1 the same month, 10 later) and 28 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
DropPath
brick of this paper's assembly: model
47 other papers
18 dated earlier, 1 the same month, 28 later · 33 only as an assembly brick
2003.12039 (2020-03)
RAFT: Recurrent All-Pairs Field Transforms for Optical Flow
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2105.14432 (2021-05)
TransMatcher: Deep Image Matching Through Transformers for Generalizable Person Re-identification
and 44 more not named here
named_apply
brick of this paper's assembly: helper
26 other papers
2 dated earlier, 22 later, 2 undated
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2204.07683 (2022-04)
Safe Self-Refinement for Transformer-based Domain Adaptation
2309.16588 (2023-09)
Vision Transformers Need Registers
and 23 more not named here
drop_add_residual_stochastic_depth
brick of this paper's assembly: helper
21 other papers
1 dated earlier, 18 later, 2 undated
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2312.02366 (2023-12)
Evaluating General Purpose Vision Foundation Models for Medical Image Analysis: An Experimental Study of DINOv2 on Radiology Benchmarks
2402.03138 (2024-02)
Just Cluster It: An Approach for Exploration in High-Dimensions using Clustering and Pre-Trained Representations
and 18 more not named here
make_2tuple
brick of this paper's assembly: helper
20 other papers
1 dated earlier, 18 later, 1 undated · 1 only as an assembly brick
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2312.02366 (2023-12)
Evaluating General Purpose Vision Foundation Models for Medical Image Analysis: An Experimental Study of DINOv2 on Radiology Benchmarks
2402.03138 (2024-02)
Just Cluster It: An Approach for Exploration in High-Dimensions using Clustering and Pre-Trained Representations
and 17 more not named here
drop_path
brick of this paper's assembly: helper
18 other papers
1 dated earlier, 16 later, 1 undated · 2 only as an assembly brick
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2312.02366 (2023-12)
Evaluating General Purpose Vision Foundation Models for Medical Image Analysis: An Experimental Study of DINOv2 on Radiology Benchmarks
2402.03138 (2024-02)
Just Cluster It: An Approach for Exploration in High-Dimensions using Clustering and Pre-Trained Representations
and 15 more not named here
add_residual 17 other papers
16 later, 1 undated
2312.02366 (2023-12)
Evaluating General Purpose Vision Foundation Models for Medical Image Analysis: An Experimental Study of DINOv2 on Radiology Benchmarks
2402.03138 (2024-02)
Just Cluster It: An Approach for Exploration in High-Dimensions using Clustering and Pre-Trained Representations
2402.19231 (2024-02)
CricaVPR: Cross-image Correlation-aware Representation Learning for Visual Place Recognition
and 14 more not named here
get_branges_scales 17 other papers
16 later, 1 undated
2312.02366 (2023-12)
Evaluating General Purpose Vision Foundation Models for Medical Image Analysis: An Experimental Study of DINOv2 on Radiology Benchmarks
2402.03138 (2024-02)
Just Cluster It: An Approach for Exploration in High-Dimensions using Clustering and Pre-Trained Representations
2402.19231 (2024-02)
CricaVPR: Cross-image Correlation-aware Representation Learning for Visual Place Recognition
and 14 more not named here
init_weights_vit_timm
brick of this paper's assembly: helper
4 other papers
1 dated earlier, 3 later · 1 only as an assembly brick
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2403.08568 (2024-03)
Consistent Prompting for Rehearsal-Free Continual Learning
2404.00228 (2024-04)
InfLoRA: Interference-Free Low-Rank Adaptation for Continual Learning
and 1 more not named here
LayerScale
brick of this paper's assembly: model
3 other papers
1 dated earlier, 2 later
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2503.19331 (2025-03)
ChA-MAEViT: Unifying Channel-Aware Masked Autoencoders and Multi-Channel Vision Transformers for Improved Cross-Channel Learning
2511.07222 (2025-11)
Omni-View: Unlocking How Generation Facilitates Understanding in Unified 3D Model based on Multiview images
Mlp
brick of this paper's assembly: model
2 other papers
1 dated earlier, 1 later
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2511.07222 (2025-11)
Omni-View: Unlocking How Generation Facilitates Understanding in Unified 3D Model based on Multiview images
BlockChunk
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
ISA 1 other paper
1 dated earlier · 1 only as an assembly brick
2302.04973 (2023-02)
Invariant Slot Attention: Object Discovery with Slot-Centric Reference Frames
MLP 1 other paper
1 dated earlier · 1 only as an assembly brick
2302.04973 (2023-02)
Invariant Slot Attention: Object Discovery with Slot-Centric Reference Frames
wrap_forward 1 other paper
1 dated earlier
2210.09461 (2022-10)
Token Merging: Your ViT But Faster

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

The recent breakthroughs in natural language processing for model pretraining on large quantities of data have opened the way for similar foundation models in computer vision. These models could greatly simplify the use of images in any system by producing generalpurpose visual features, i.e., features that work across image distributions and tasks without finetuning. This work shows that existing pretraining methods, especially self-supervised methods, can produce such features if trained on enough curated data from diverse sources. We revisit existing approaches and combine different techniques to scale our pretraining in terms of data and model size. Most of the technical contributions aim at accelerating and stabilizing the training at scale. In terms of data, we propose an automatic pipeline to build a dedicated, diverse, and curated image dataset instead of uncurated data, as typically done in the self-supervised literature. In terms of models, we train a ViT model (Dosovitskiy et al., 2021) with 1B parameters and distill it into a series of smaller models that surpass the best available general-purpose features, OpenCLIP (Ilharco et al., 2021) on most of the benchmarks at image and pixel levels.

For agents

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

get_harvested_code_for_paper("2304.07193")
get_code_for_paper("2304.07193")
have("2304.07193")

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

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

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

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

Connect an agent — have() is free.