SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.10166 · NeurIPS · 2024

VMamba: Visual State Space Model

Yue Liu, Lingxi Xie, Yaowei Wang, Yunjie Tian, Yuzhong Zhao, Hongtian Yu, Qixiang Ye, Jianbin Jiao, Yunfan Liu

arXiv · PDF · Open in the Atlas

Code that ran

32 of 46 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (6 of them constructed an object rather than computing a result; 6 honoured the contract we drafted, 2 violated it and 10 have no contract verdict; 14 failures of our instrument; 14 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/2401.10166.json · badge: /api/ran/2401.10166.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
MzeroMiko/VMamba canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
zs1314/microscopic-mamba community (classifier label)
classifier basis not recorded on the link
14 ran · 8 no recorded run
zs1314/skinmamba community (classifier label)
classifier basis not recorded on the link
7 ran · 0 no recorded run
zs1314/octamamba community
Papers with Code archive
6 ran · 3 no recorded run
piskovskyi/fMRI-VisionMamba community (classifier label)
classifier basis not recorded on the link
2 ran · 3 no recorded run
FunctionStatusWhere it lives
Final_PatchExpand2D Ran
ran on a synthesized input · constructed an object; no result was computed
zs1314/octamamba/modelszoo/VM_UNet.py
code served (permissive licence) · get_code("ccec5a35b674c038")
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, Final_PatchExpand2D: 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 = {
    'dim': 16,
    'dim_scale': 4,
    'norm_layer': nn.LayerNorm
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Final_PatchExpand2D — 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 Final_PatchExpand2D 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
PatchEmbed2D Ran
ran on a synthesized input · constructed an object; no result was computed
zs1314/octamamba/modelszoo/VM_UNet.py
code served (permissive licence) · get_code("79bd4e665fb7cc5c")
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, PatchEmbed2D: 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)

# Define the PatchEmbed2D class
class PatchEmbed2D(nn.Module):
    """ Image to Patch Embedding
    Args:
        patch_size (int): Patch token size. Default: 4.
        in_chans (int): Number of input image channels. Default: 3.
        embed_dim (int): Number of linear projection output channels. Default: 96.
        norm_layer (nn.Module, optional): Normalization layer. Default: None
    """

    def __init__(self, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None, **kwargs):
        super().__init__()
        if isinstance(patch_size, int):
            patch_size = (patch_size, patch_size)
        self.proj = nn.Conv2d(in_chans, embed_dim, kernel_size=patch_size, stride=patch_size)
        if norm_layer is not None:
            self.norm = norm_layer(embed_dim)
        else:
            self.norm = None

    def forward(self, x):
        x = self.proj(x).permute(0, 2, 3, 1)
        if self.norm is not None:
            x = self.norm(x)
        return x


# Create a small normalization layer for testing
class SimpleNorm(nn.Module):
    def __init__(self, num_features):
        super().__init__()
        self.num_features = num_features
    
    def forward(self, x):
        return x


# Construct ARGS dict with all parameters
ARGS = {
    'patch_size': 4,
    'in_chans': 3,
    'embed_dim': 96,
    'norm_layer': SimpleNorm,
}
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 PatchEmbed2D — 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 PatchEmbed2D 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
PatchExpand2D Ran
ran on a synthesized input · constructed an object; no result was computed
zs1314/octamamba/modelszoo/VM_UNet.py
code served (permissive licence) · get_code("c9ac9c816177196c")
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, PatchExpand2D: 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
from einops import rearrange, repeat

torch.manual_seed(0)

ARGS = {
    "dim": 4,
    "dim_scale": 2,
    "norm_layer": nn.LayerNorm,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PatchExpand2D — 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 PatchExpand2D 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
PatchMerging2D Ran
ran on a synthesized input · constructed an object; no result was computed
zs1314/octamamba/modelszoo/VM_UNet.py
code served (permissive licence) · get_code("d74545ecbd87b7ed")
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, PatchMerging2D: 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,
    "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 PatchMerging2D — 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 PatchMerging2D 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
SS2D Ran
ran on a synthesized input · constructed an object; no result was computed
zs1314/octamamba/modelszoo/VM_UNet.py
code served (permissive licence) · get_code("722c22ee72b8915d")
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, SS2D: 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
import math

torch.manual_seed(0)

# Define a mock selective_scan_fn since it's referenced in the code
def selective_scan_fn(x, dt, A, B, C, D=None, z=None, delta_softplus=False, return_last_state=False):
    return x

ARGS = {
    'd_model': 4,
    'd_state': 2,
    'd_conv': 3,
    'expand': 2,
    'dt_rank': 'auto',
    'dt_min': 0.001,
    'dt_max': 0.1,
    'dt_init': 'random',
    'dt_scale': 1.0,
    'dt_init_floor': 0.0001,
    'dropout': 0.0,
    'conv_bias': True,
    'bias': False,
    'device': None,
    'dtype': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SS2D — 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 SS2D 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
VSSM Ran
ran on a synthesized input · constructed an object; no result was computed
zs1314/octamamba/modelszoo/VM_UNet.py
code served (permissive licence) · get_code("70f3d058a09ba16e")
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, VSSM: 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
from torch.nn import LayerNorm

torch.manual_seed(0)

# Build minimal valid arguments for SS2D
ARGS = {
    'd_model': 64,
    'd_state': 16,
    'd_conv': 3,
    'expand': 2,
    'dt_rank': 'auto',
    'dt_min': 0.001,
    'dt_max': 0.1,
    'dt_init': 'random',
    'dt_scale': 1.0,
    'dt_init_floor': 0.0001,
    'dropout': 0.0,
    'conv_bias': True,
    'bias': False,
    'device': None,
    'dtype': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, timm, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type VSSM — 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 VSSM 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
channel_shuffle Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zs1314/microscopic-mamba/baseline_other/mamba/medmamba.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from YubiaoYue/MedMamba, is pointer only (licence: NONE) · get_code("057445f270d16a96")
How it ran

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

count_parameters Ran
ran, honoured the contract we drafted
zs1314/microscopic-mamba/utils.py
code served (permissive licence) · get_code("f6b944f50d3f15ae")
How it ran

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

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    "model": model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
cross_merge_fwd Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MzeroMiko/VMamba/vmamba.py
code served (permissive licence) · get_code("590aaaa7c8644eeb")
How it ran

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

# Test with channel_first format (B, K, D, H, W)
y_channel_first = torch.randn(2, 4, 4, 3, 5)

# Test with channel_last format (B, H, W, K, D)
y_channel_last = torch.randn(2, 3, 5, 4, 4)

ARGS = {
    "y": y_channel_first,
    "in_channel_first": True,
    "out_channel_first": True,
    "scans": 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 4, 15) — shape (2, 4, 15) 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
cross_scan1b1_fwd Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MzeroMiko/VMamba/vmamba.py
code served (permissive licence) · get_code("e95046a63069075a")
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, 30) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor with shape (B, _, C, H, W) for in_channel_first=True
# B=2, _=4 (4 scan directions), C=3, H=5, W=6
x_channel_first = torch.randn(2, 4, 3, 5, 6)

# Create a small tensor with shape (B, H, W, _, C) for in_channel_first=False
# B=2, H=5, W=6, _=4 (4 scan directions), C=3
x_channel_last = torch.randn(2, 5, 6, 4, 3)

ARGS = {
    "x": x_channel_first,
    "in_channel_first": True,
    "out_channel_first": True,
    "scans": 0,
}
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, 30) — shape (2, 4, 3, 30) 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
cross_scan_fwd Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MzeroMiko/VMamba/vmamba.py
code served (permissive licence) · get_code("ee0b8d655d08adf0")
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, 4, 15) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor with shape (B, C, H, W) for channel-first format
# B=2 (batch), C=4 (channels), H=3 (height), W=5 (width)
x = torch.randn(2, 4, 3, 5)

ARGS = {
    "x": x,
    "in_channel_first": True,
    "out_channel_first": True,
    "scans": 0,
}
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, 4, 15) — shape (2, 4, 4, 15) 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
densenet201 Ran
ran on a synthesized input
zs1314/microscopic-mamba/baseline_other/CNN/densenet.py
code served (permissive licence) · get_code("fe873ee58a22c0f7")
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 DenseNet. 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 = {
    'num_class': 100
}
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 DenseNet — a DenseNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DenseNet 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
drop_path Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zs1314/microscopic-mamba/grad_cam/vit_model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zhaozixiang1228/mmif-cddfuse, is pointer only (licence: NONE) · get_code("fe7d4321dbeef661")
How it ran

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

drop_path_f Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zs1314/microscopic-mamba/grad_cam/swin_model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from junkangLiu0/FedBCGD, is pointer only (licence: NONE) · get_code("2202fd90583e6341")
How it ran

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

flops_selective_scan_fn Ran
ran, honoured the contract we drafted
piskovskyi/fMRI-VisionMamba/src/models/csms6s.py
pointer only (licence: MIT); the stored copy get_code serves, from chenxi52/SfMamba, is pointer only (licence: NONE) · get_code("9a3adc8e6de35ac1")
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 chenxi52/SfMamba, 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.

flops_selective_scan_fn Ran
ran, honoured the contract we drafted
zs1314/microscopic-mamba/microscopicmamba.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from daidaijr/EAMamba, is pointer only (licence: NONE) · get_code("da1a64838a2535e5")
How it ran

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

flops_selective_scan_ref Ran
ran, honoured the contract we drafted
piskovskyi/fMRI-VisionMamba/src/models/csms6s.py
pointer only (licence: MIT); the stored copy get_code serves, from chenxi52/SfMamba, is pointer only (licence: NONE) · get_code("4b9af31cf72b3d4a")
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 chenxi52/SfMamba, 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.

flops_selective_scan_ref Ran
ran, honoured the contract we drafted
zs1314/microscopic-mamba/baseline_other/mamba/VsionMamba.py
code served (permissive licence) · get_code("0b84e99fd1e93dd6")
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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# ARGS dict for flops_selective_scan_ref
ARGS = {
    'B': 2,
    'L': 256,
    'D': 768,
    'N': 16,
    'with_D': True,
    'with_Z': False,
    'with_Group': True,
    'with_complex': False,
}
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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
flops_selective_scan_ref Ran
ran, honoured the contract we drafted
zs1314/microscopic-mamba/baseline_other/mamba/medmamba.py
code served (permissive licence) · get_code("c00dcf8428ee981b")
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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    "B": 2,
    "L": 256,
    "D": 768,
    "N": 16,
    "with_D": True,
    "with_Z": False,
    "with_Group": True,
    "with_complex": False,
}
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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_logger Ran
ran; our contract draft was wrong, not the code
zs1314/skinmamba/utils.py
code served (permissive licence) · get_code("23a1f34627822bb3")
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 Logger. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile
import logging.handlers

# Create a temporary directory for logs
temp_log_dir = tempfile.mkdtemp()

ARGS = {
    'name': 'test_logger',
    'log_dir': temp_log_dir
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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_optimizer Ran
ran; our contract draft was wrong, not the code
zs1314/skinmamba/utils.py
code served (permissive licence) · get_code("ae1a2dd9d62e7fad")
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. 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 model with parameters
class TinyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

model = TinyModel()

# Create a config class with all required attributes
class Config:
    def __init__(self, opt='Adam'):
        self.opt = opt
        self.lr = 0.001
        self.rho = 0.9
        self.eps = 1e-8
        self.weight_decay = 0.0
        self.lr_decay = 0.0
        self.betas = (0.9, 0.999)
        self.amsgrad = False
        self.lambd = 0.0001
        self.alpha = 0.75
        self.t0 = 1e6
        self.momentum = 0.9
        self.alpha_rmsprop = 0.99
        self.centered = False
        self.etas = (0.5, 1.2)
        self.step_sizes = (1e-6, 50)
        self.dampening = 0.0
        self.nesterov = False

config = Config(opt='Adam')

ARGS = {
    'config': config,
    'model': model,
}
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 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
get_scheduler Ran
ran; our contract draft was wrong, not the code
zs1314/skinmamba/utils.py
code served (permissive licence) · get_code("dea42821258184c2")
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 CosineAnnealingLR. 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 math

torch.manual_seed(0)

# Create a simple model and optimizer
model = torch.nn.Linear(4, 2)
optimizer = torch.optim.SGD(model.parameters(), lr=0.1)

# Create config class with all necessary attributes
class Config:
    def __init__(self, sch_type):
        self.sch = sch_type
        self.step_size = 10
        self.gamma = 0.1
        self.last_epoch = -1
        self.milestones = [30, 60, 90]
        self.T_max = 100
        self.eta_min = 0.0
        self.mode = 'min'
        self.factor = 0.1
        self.patience = 10
        self.threshold = 1e-4
        self.threshold_mode = 'rel'
        self.cooldown = 0
        self.min_lr = 0.0
        self.eps = 1e-8
        self.T_0 = 10
        self.T_mult = 2
        self.warm_up_epochs = 5
        self.epochs = 100

# Test with one scheduler type
config = Config('CosineAnnealingLR')

ARGS = {
    'config': config,
    'optimizer': optimizer
}
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 CosineAnnealingLR — a CosineAnnealingLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a CosineAnnealingLR 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
random_rot_flip Ran
ran, violated the contract we drafted
zs1314/skinmamba/mydatasets/dataset.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from jefferyjiang-yf/m4oe, is pointer only (licence: NONE) · get_code("960b785e65a00358")
How it ran

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

random_rotate Ran
ran, violated the contract we drafted
zs1314/skinmamba/mydatasets/dataset.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from jefferyjiang-yf/m4oe, is pointer only (licence: NONE) · get_code("43fa66325ce3cafd")
How it ran

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

resnet18 Ran
ran; our contract draft was wrong, not the code
zs1314/microscopic-mamba/baseline_other/CNN/resnet.py
code served (permissive licence) · get_code("a039eb8f1d0b3354")
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 ResNet. 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 = {
    "num_classes": 10
}
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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
resnet34 Ran
ran on a synthesized input
zs1314/microscopic-mamba/baseline_other/CNN/resnet.py
code served (permissive licence) · get_code("4022952e5d693153")
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 ResNet. 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 = {
    "num_classes": 100,
}
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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
resnet50 Ran
ran on a synthesized input
zs1314/microscopic-mamba/baseline_other/CNN/resnet.py
code served (permissive licence) · get_code("f9779263c018667b")
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 ResNet. 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 = {
    "num_classes": 10
}
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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
selective_scan_flop_jit Ran
ran on a synthesized input
zs1314/microscopic-mamba/microscopicmamba.py
code served (permissive licence) · get_code("1ddca20292522088")
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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

class MockDebugName:
    def __init__(self, name):
        self.name = name
    
    def startswith(self, prefix):
        return self.name.startswith(prefix)

class MockType:
    def __init__(self, sizes):
        self._sizes = sizes
    
    def sizes(self):
        return self._sizes

class MockInput:
    def __init__(self, name, sizes):
        self._debug_name = MockDebugName(name)
        self._type = MockType(sizes)
    
    def debugName(self):
        return self._debug_name
    
    def type(self):
        return self._type

# Create mock inputs for selective_scan_flop_jit
# Function signature expects: inputs (list of mock tensor objects), outputs
# Looking at the function body, it accesses:
# - inputs[0].debugName().startswith('u') and inputs[0].type().sizes() -> (B, D, L)
# - inputs[2].debugName().startswith('A') and inputs[2].type().sizes() -> (D, N)
# - inputs[3].debugName().startswith('B') and inputs[3].type().sizes() -> (B, N, L) or (B, D, N, L)
# - inputs[5].debugName().startswith('D') or 'z'
# - inputs[6].debugName().startswith('delta') (conditionally)

B, D, L, N = 2, 4, 8, 3

inputs = [
    MockInput('u', (B, D, L)),           # inputs[0]
    MockInput('delta', (B, D, L)),       # inputs[1]
    MockInput('A', (D, N)),              # inputs[2]
    MockInput('B', (B, N, L)),           # inputs[3] - with_Group=True case
    MockInput('C', (B, N, L)),           # inputs[4]
    MockInput('D', (D,)),                # inputs[5] - with_D=True
    MockInput('delta_bias', (D,)),       # inputs[6]
]

outputs = None

ARGS = {
    'inputs': inputs,
    'outputs': outputs,
}
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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
train_one_epoch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zs1314/skinmamba/engine.py
code served (permissive licence) · get_code("4709d469c5e0a024")
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. 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, 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
from torch.optim import SGD
from torch.optim.lr_scheduler import StepLR
import numpy as np

torch.manual_seed(0)

# Define a simple model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.fc = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.fc(x)

# Define a simple logger
class SimpleLogger:
    def info(self, msg):
        pass

# Define a simple writer
class SimpleWriter:
    def add_scalar(self, name, value, global_step):
        pass

# Define a simple config
class SimpleConfig:
    def __init__(self):
        self.print_interval = 1

# Create model
model = SimpleModel()

# Create criterion
criterion = nn.MSELoss()

# Create optimizer
optimizer = SGD(model.parameters(), lr=0.01)

# Create scheduler
scheduler = StepLR(optimizer, step_size=1, gamma=0.1)

# Create a simple train loader with 2 batches
# Each batch contains (images, targets)
train_loader = [
    (torch.randn(2, 4), torch.randn(2, 3)),
    (torch.randn(2, 4), torch.randn(2, 3))
]

# Create logger
logger = SimpleLogger()

# Create config
config = SimpleConfig()

# Create writer
writer = SimpleWriter()

# Other parameters
epoch = 0
step = 0

ARGS = {
    'train_loader': train_loader,
    'model': model,
    'criterion': criterion,
    'optimizer': optimizer,
    'scheduler': scheduler,
    'epoch': epoch,
    'step': step,
    'logger': logger,
    'config': config,
    'writer': writer
}
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 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
val_one_epoch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zs1314/skinmamba/engine.py
code served (permissive licence) · get_code("15d76d94bb1b8c16")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import numpy as np
from unittest.mock import Mock
import logging

torch.manual_seed(0)

# Define a minimal model that satisfies the function's usage
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv = nn.Conv2d(3, 1, kernel_size=1)
    
    def forward(self, x):
        return self.conv(x)

# Create test loader with tiny batches
test_loader = [
    (torch.randn(2, 3, 4, 4), torch.randn(2, 1, 4, 4)),
    (torch.randn(2, 3, 4, 4), torch.randn(2, 1, 4, 4)),
]

# Create model
model = MinimalModel()

# Create criterion
criterion = nn.BCEWithLogitsLoss()

# Create config with required attributes
class Config:
    def __init__(self):
        self.val_interval = 1
        self.threshold = 0.5

config = Config()

# Create logger
logger = logging.getLogger('test_logger')
logger.setLevel(logging.INFO)
handler = logging.StreamHandler()
logger.addHandler(handler)

# Define ARGS
ARGS = {
    'test_loader': test_loader,
    'model': model,
    'criterion': criterion,
    'epoch': 1,
    'logger': logger,
    'config': config,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zs1314/microscopic-mamba/grad_cam/swin_model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from junkangLiu0/FedBCGD, is pointer only (licence: NONE) · get_code("1244e2f07fb63623")
How it ran

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

window_reverse Ran
ran; our contract draft was wrong, not the code
zs1314/microscopic-mamba/grad_cam/swin_model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from junkangLiu0/FedBCGD, is pointer only (licence: NONE) · get_code("d14e0252b43325ae")
How it ran

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

VSSBlock Not yet run
unverified (harvested, no recorded run)
zs1314/octamamba/modelszoo/VM_UNet.py
code served (permissive licence) · get_code("b1a133903e053491")
How it ran

no invocation recorded.

VSSLayer Not yet run
unverified (harvested, no recorded run)
zs1314/octamamba/modelszoo/VM_UNet.py
code served (permissive licence) · get_code("f20d039b90ff3c82")
How it ran

no invocation recorded.

VSSLayer_up Not yet run
unverified (harvested, no recorded run)
zs1314/octamamba/modelszoo/VM_UNet.py
code served (permissive licence) · get_code("c452cd03dafb5b1d")
How it ran

no invocation recorded.

calculate_mean_std Not yet run
unverified (harvested, no recorded run)
zs1314/microscopic-mamba/get_means.py
code served (permissive licence) · get_code("7ac1da235babac9c")
How it ran

no invocation recorded.

create_lr_scheduler Not yet run
unverified (harvested, no recorded run)
zs1314/microscopic-mamba/utils.py
code served (permissive licence) · get_code("41d69c5cdeec70e0")
How it ran

no invocation recorded.

cross_selective_scan Not yet run
unverified (harvested, no recorded run)
zs1314/microscopic-mamba/baseline_other/mamba/VsionMamba.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from terrypei/efficientvmamba, is pointer only (licence: NONE) · get_code("893b6b88ba8dc50f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from terrypei/efficientvmamba, 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. No invocation recorded.

densenet121 Not yet run
unverified (harvested, no recorded run)
zs1314/microscopic-mamba/baseline_other/CNN/densenet.py
code served (permissive licence) · get_code("28a7176a9777c76c")
How it ran

no invocation recorded.

densenet169 Not yet run
unverified (harvested, no recorded run)
zs1314/microscopic-mamba/baseline_other/CNN/densenet.py
code served (permissive licence) · get_code("146200bf92a1418d")
How it ran

no invocation recorded.

flops_selective_scan_fn Not yet run
unverified (harvested, no recorded run)
zs1314/microscopic-mamba/baseline_other/mamba/VsionMamba.py
code served (permissive licence) · get_code("1366379c7d284cc9")
How it ran

no invocation recorded.

get_config Not yet run
unverified (harvested, no recorded run)
piskovskyi/fMRI-VisionMamba/src/config.py
code served (permissive licence) · get_code("73f7d4e07e583da3")
How it ran

no invocation recorded.

selective_scan_flop_jit Not yet run
unverified (harvested, no recorded run)
piskovskyi/fMRI-VisionMamba/src/models/csms6s.py
pointer only (licence: MIT); the stored copy get_code serves, from yyh-rain-song/ReMamber, is pointer only (licence: NONE) · get_code("eda8d821a5689bf0")
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 yyh-rain-song/ReMamber, 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. No invocation recorded.

update_config Not yet run
unverified (harvested, no recorded run)
piskovskyi/fMRI-VisionMamba/src/config.py
code served (permissive licence) · get_code("e54f237243820492")
How it ran

no invocation recorded.

vit_base_patch16_224 Not yet run
unverified (harvested, no recorded run)
zs1314/microscopic-mamba/grad_cam/vit_model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from 1kk077/idkl, is pointer only (licence: NONE) · get_code("3dbfd852a172ee6a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from 1kk077/idkl, 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. No invocation recorded.

vit_base_patch16_224_in21k Not yet run
unverified (harvested, no recorded run)
zs1314/microscopic-mamba/grad_cam/vit_model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from 1kk077/idkl, is pointer only (licence: NONE) · get_code("ab4cbc78e4e78e94")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from 1kk077/idkl, 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. 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 44 distinct functions with an identity, 31 are also present in other papers whose code we hold (15 with at least one paper dated earlier, 1 the same month, 30 later) and 13 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
drop_path 224 other papers
146 dated earlier, 70 later, 7 same year, order not determinable, 1 undated · 38 only as an assembly brick
2003.12039 (2020-03)
RAFT: Recurrent All-Pairs Field Transforms for Optical Flow
2007.09384 (2020-07)
Multi-Scale Positive Sample Refinement for Few-Shot Object Detection
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
and 221 more not named here
count_parameters 180 other papers
114 dated earlier, 60 later, 6 same year, order not determinable · 8 only as an assembly brick
1705.08415 (2017-05)
Supervised Community Detection with Line Graph Neural Networks
1707.01926 (2017-07)
Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting
1808.09367 (2018-08)
Deriving Machine Attention from Human Rationales
and 177 more not named here
get_config 51 other papers
25 dated earlier, 1 the same month, 21 later, 4 same year, order not determinable
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 48 more not named here
window_partition 31 other papers
17 dated earlier, 10 later, 4 same year, order not determinable
2111.11418 (2021-11)
MetaFormer Is Actually What You Need for Vision
2203.12119 (2022-03)
Visual Prompt Tuning
2204.03645 (2022-04)
DaViT: Dual Attention Vision Transformers
and 28 more not named here
window_reverse 14 other papers
7 dated earlier, 6 later, 1 same year, order not determinable
1706.03762 (2017-06)
Attention Is All You Need
2204.03645 (2022-04)
DaViT: Dual Attention Vision Transformers
2210.04135 (2022-10)
VoLTA: Vision-Language Transformer with Weakly-Supervised Local-Feature Alignment
and 11 more not named here
flops_selective_scan_fn 12 other papers
12 later
2402.15648 (2024-02)
MambaIR: A Simple Baseline for Image Restoration with State-Space Model
2403.17839 (2024-03)
ReMamber: Referring Image Segmentation with Mamba Twister
2404.02668 (2024-04)
RS-Mamba for Large Remote Sensing Image Dense Prediction
and 9 more not named here
random_rotate 10 other papers
4 dated earlier, 6 later
2111.04734 (2021-11)
Mixed Transformer U-Net For Medical Image Segmentation
2304.13785 (2023-04)
Customized Segment Anything Model for Medical Image Segmentation
2306.12737 (2023-06)
Ladder Fine-tuning approach for SAM integrating complementary network
and 7 more not named here
flops_selective_scan_ref 9 other papers
9 later
2402.15648 (2024-02)
MambaIR: A Simple Baseline for Image Restoration with State-Space Model
2403.09977 (2024-03)
EfficientVMamba: Atrous Selective Scan for Light Weight Visual Mamba
2403.17839 (2024-03)
ReMamber: Referring Image Segmentation with Mamba Twister
and 6 more not named here
random_rot_flip 9 other papers
4 dated earlier, 5 later
2111.04734 (2021-11)
Mixed Transformer U-Net For Medical Image Segmentation
2304.13785 (2023-04)
Customized Segment Anything Model for Medical Image Segmentation
2306.12737 (2023-06)
Ladder Fine-tuning approach for SAM integrating complementary network
and 6 more not named here
flops_selective_scan_ref 7 other papers
7 later
2402.02491 (2024-02)
VM-UNet: Vision Mamba UNet for Medical Image Segmentation
2402.15761 (2024-02)
Res-VMamba: Fine-Grained Food Category Visual Classification Using Selective State Space Models with Deep Residual Learning
2403.03849 (2024-03)
MedMamba: Vision Mamba for Medical Image Classification
and 4 more not named here
get_logger 6 other papers
1 dated earlier, 5 later
2307.08473 (2023-07)
EGE-UNet: an Efficient Group Enhanced UNet for skin lesion segmentation
2402.02491 (2024-02)
VM-UNet: Vision Mamba UNet for Medical Image Segmentation
2403.13642 (2024-03)
H-vmunet: High-order Vision Mamba UNet for Medical Image Segmentation
and 3 more not named here
get_optimizer 6 other papers
1 dated earlier, 5 later
2307.08473 (2023-07)
EGE-UNet: an Efficient Group Enhanced UNet for skin lesion segmentation
2402.02491 (2024-02)
VM-UNet: Vision Mamba UNet for Medical Image Segmentation
2403.13642 (2024-03)
H-vmunet: High-order Vision Mamba UNet for Medical Image Segmentation
and 3 more not named here
get_scheduler 6 other papers
1 dated earlier, 5 later
2307.08473 (2023-07)
EGE-UNet: an Efficient Group Enhanced UNet for skin lesion segmentation
2402.02491 (2024-02)
VM-UNet: Vision Mamba UNet for Medical Image Segmentation
2403.13642 (2024-03)
H-vmunet: High-order Vision Mamba UNet for Medical Image Segmentation
and 3 more not named here
flops_selective_scan_fn 4 other papers
4 later
2402.15761 (2024-02)
Res-VMamba: Fine-Grained Food Category Visual Classification Using Selective State Space Models with Deep Residual Learning
2403.09338 (2024-03)
LocalMamba: Visual State Space Model with Windowed Selective Scan
2403.09977 (2024-03)
EfficientVMamba: Atrous Selective Scan for Light Weight Visual Mamba
and 1 more not named here
vit_base_patch16_224 4 other papers
1 dated earlier, 3 later
Zhang_TokenHPE_Learning_Orientation_Tokens_for_Efficient_Head_Pose_Estimation_via_CVPR_2023_paper (2023 (year only))
TokenHPE: Learning Orientation Tokens for Efficient Head Pose Estimation via Transformers
2403.11708 (2024-03)
Implicit Discriminative Knowledge Learning for Visible-Infrared Person Re-Identification
Li_FPEM_Face_Prior_Enhanced_Facial_Attractiveness_Prediction_for_Live_Videos_ICCV_2025_paper (2025 (year only))
FPEM: Face Prior Enhanced Facial Attractiveness Prediction for Live Videos with Face Retouching
and 1 more not named here
drop_path_f 3 other papers
1 dated earlier, 2 later
1706.03762 (2017-06)
Attention Is All You Need
2403.11708 (2024-03)
Implicit Discriminative Knowledge Learning for Visible-Infrared Person Re-Identification
2603.05116 (2026-03)
FedBCGD: Communication-Efficient Accelerated Block Coordinate Gradient Descent for Federated Learning
val_one_epoch 3 other papers
3 later
2402.02491 (2024-02)
VM-UNet: Vision Mamba UNet for Medical Image Segmentation
2403.13642 (2024-03)
H-vmunet: High-order Vision Mamba UNet for Medical Image Segmentation
2403.20035 (2024-03)
UltraLight VM-UNet: Parallel Vision Mamba Significantly Reduces Parameters for Skin Lesion Segmentation
cross_selective_scan 2 other papers
1 dated earlier, 1 later
2312.00752 (2023-12)
Mamba: Linear-Time Sequence Modeling with Selective State Spaces
2403.09977 (2024-03)
EfficientVMamba: Atrous Selective Scan for Light Weight Visual Mamba
vit_base_patch16_224_in21k 2 other papers
1 dated earlier, 1 later
Zhang_TokenHPE_Learning_Orientation_Tokens_for_Efficient_Head_Pose_Estimation_via_CVPR_2023_paper (2023 (year only))
TokenHPE: Learning Orientation Tokens for Efficient Head Pose Estimation via Transformers
2403.11708 (2024-03)
Implicit Discriminative Knowledge Learning for Visible-Infrared Person Re-Identification
Final_PatchExpand2D
brick of this paper's assembly: model
1 other paper
1 later · 1 only as an assembly brick
2601.16073 (2026-01)
DSFedMed: Dual-Scale Federated Medical Image Segmentation via Mutual Distillation Between Foundation and Lightweight Models

Shown: the 20 functions present in the most other papers. 11 more shared functions are not listed here.

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

Repositories linked to this paper

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

Abstract

Designing computationally efficient network architectures remains an ongoing necessity in computer vision. In this paper, we adapt Mamba, a state-space language model, into VMamba, a vision backbone with linear time complexity. At the core of VMamba is a stack of Visual State-Space (VSS) blocks with the 2D Selective Scan (SS2D) module. By traversing along four scanning routes, SS2D bridges the gap between the ordered nature of 1D selective scan and the non-sequential structure of 2D vision data, which facilitates the collection of contextual information from various sources and perspectives. Based on the VSS blocks, we develop a family of VMamba architectures and accelerate them through a succession of architectural and implementation enhancements. Extensive experiments demonstrate VMamba's promising performance across diverse visual perception tasks, highlighting its superior input scaling efficiency compared to existing benchmark models. Source code is available at https://github.com/MzeroMiko/VMamba

For agents

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

get_harvested_code_for_paper("2401.10166")
get_code_for_paper("2401.10166")
have("2401.10166")

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

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

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

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

Connect an agent — have() is free.