SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.20762 · CVPR · 2025

Towards Practical Real-Time Neural Video Compression

Houqiang Li, Bin Li, Jiahao Li, Yan Lu, Zhaoyang Jia, Wenxuan Xie, Linfeng Qi

arXiv · PDF · Open in the Atlas

Code that ran

23 of 34 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 12 have no contract verdict; 9 failures of our instrument; 11 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/2502.20762.json · badge: /api/ran/2502.20762.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
microsoft/DCVC community
Papers with Code archive
23 ran · 11 no recorded run
FunctionStatusWhere it lives
BitEstimator Ran
ran on a synthesized input
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("6632b3d06d6dc73d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import numpy as np

INIT_ARGS = {
    'qp_num': 2,
    'channel': 4,
}

ARGS = {
    'x': torch.randn(2, 4, 3, 3),
    'index': torch.tensor([0, 1], dtype=torch.long),
}

if __name__ == '__main__':
    import torch.nn.functional as F
    
    class AEHelper:
        def __init__(self):
            super().__init__()
            self.entropy_coder = None
            self.cdf_group_index = None
            self._offset = None
            self._quantized_cdf = None
            self._cdf_length = None

        def set_cdf_info(self, quantized_cdf, cdf_length, offset):
            self._quantized_cdf = quantized_cdf.cpu().numpy()
            self._cdf_length = cdf_length.reshape(-1).int().cpu().numpy()
            self._offset = offset.reshape(-1).int().cpu().numpy()

        def get_cdf_info(self):
            return (self._quantized_cdf, self._cdf_length, self._offset)

    class Bitparm(nn.Module):
        def __init__(self, qp_num, channel, final=False):
            super().__init__()
            self.final = final
            self.h = nn.Parameter(torch.nn.init.normal_(torch.empty([qp_num, channel, 1, 1]), 0, 0.01))
            self.b = nn.Parameter(torch.nn.init.normal_(torch.empty([qp_num, channel, 1, 1]), 0, 0.01))
            if not final:
                self.a = nn.Parameter(torch.nn.init.normal_(torch.empty([qp_num, channel, 1, 1]), 0, 0.01))
            else:
                self.a = None

        def forward(self, x, index):
            h = torch.index_select(self.h, 0, index)
            b = torch.index_select(self.b, 0, index)
            x = x * F.softplus(h) + b
            if self.final:
                return x
            a = torch.index_select(self.a, 0, index)
            return x + torch.tanh(x) * torch.tanh(a)

    class BitEstimator(AEHelper, nn.Module):
        def __init__(self, qp_num, channel):
            super().__init__()
            self.f1 = Bitparm(qp_num, channel)
            self.f2 = Bitparm(qp_num, channel)
            self.f3 = Bitparm(qp_num, channel)
            self.f4 = Bitparm(qp_num, channel, True)
            self.qp_num = qp_num
            self.channel = channel

        def forward(self, x, index):
            return self.get_cdf(x, index)

        def get_logits_cdf(self, x, index):
            x = self.f1(x, index)
            x = self.f2(x, index)
            x = self.f3(x, index)
            x = self.f4(x, index)
            return x

        def get_cdf(self, x, index):
            return torch.sigmoid(self.get_logits_cdf(x, index))

    model = BitEstimator(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output dtype: {output.dtype}")
    print(f"Output range: [{output.min():.4f}, {output.max():.4f}]")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
MLCodec_extensions_cpp, 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 4, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Bitparm Ran
ran on a synthesized input
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("10192b8edda5270f")
How it ran

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

import torch
import torch.nn.functional as F
from torch import nn

class Bitparm(nn.Module):

    def __init__(self, qp_num, channel, final=False):
        super().__init__()
        self.final = final
        self.h = nn.Parameter(torch.nn.init.normal_(torch.empty([qp_num, channel, 1, 1]), 0, 0.01))
        self.b = nn.Parameter(torch.nn.init.normal_(torch.empty([qp_num, channel, 1, 1]), 0, 0.01))
        if not final:
            self.a = nn.Parameter(torch.nn.init.normal_(torch.empty([qp_num, channel, 1, 1]), 0, 0.01))
        else:
            self.a = None

    def forward(self, x, index):
        h = torch.index_select(self.h, 0, index)
        b = torch.index_select(self.b, 0, index)
        x = x * F.softplus(h) + b
        if self.final:
            return x
        a = torch.index_select(self.a, 0, index)
        return x + torch.tanh(x) * torch.tanh(a)


INIT_ARGS = {
    'qp_num': 3,
    'channel': 4,
    'final': False
}

ARGS = {
    'x': torch.randn(2, 4, 3, 3),
    'index': torch.tensor([0, 2], dtype=torch.long)
}

if __name__ == '__main__':
    model = Bitparm(**INIT_ARGS)
    output = model(**ARGS)
    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 4, dtype family float, shape (2, 4, 3, 3) — shape (2, 4, 3, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Decoder Ran
ran on a synthesized input
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("b3341ca1d0efc886")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import torch.nn.functional as F

# Define the custom modules needed
class WSiLU(nn.Module):
    def __init__(self):
        super().__init__()

    def forward(self, x):
        return torch.sigmoid(4.0 * x) * x

class WSiLUChunkAdd(nn.Module):
    def __init__(self):
        super().__init__()
        self.silu = WSiLU()

    def forward(self, x):
        x1, x2 = self.silu(x).chunk(2, 1)
        return x1 + x2

class DepthConvBlock(nn.Module):
    def __init__(self, in_ch, out_ch, shortcut=False, force_adaptor=False):
        super().__init__()
        self.adaptor = None
        if in_ch != out_ch or force_adaptor:
            self.adaptor = nn.Conv2d(in_ch, out_ch, 1)
        self.shortcut = shortcut
        self.dc = nn.Sequential(
            nn.Conv2d(out_ch, out_ch, 1),
            WSiLU(),
            nn.Conv2d(out_ch, out_ch, 3, padding=1, groups=out_ch),
            nn.Conv2d(out_ch, out_ch, 1)
        )
        self.ffn = nn.Sequential(
            nn.Conv2d(out_ch, out_ch * 4, 1),
            WSiLUChunkAdd(),
            nn.Conv2d(out_ch * 2, out_ch, 1)
        )

    def forward(self, x, quant_step=None, to_cat=None, cat_at_front=True):
        if self.adaptor is not None:
            x = self.adaptor(x)
        out = self.dc(x) + x
        out = self.ffn(out) + out
        if self.shortcut:
            out = out + x
        if quant_step is not None:
            out = out * quant_step
        if to_cat is not None:
            if cat_at_front:
                out = torch.cat((to_cat, out), dim=1)
            else:
                out = torch.cat((out, to_cat), dim=1)
        return out

class SubpelConv2x(nn.Module):
    def __init__(self, in_ch, out_ch, kernel_size, padding=0):
        super().__init__()
        self.conv = nn.Sequential(
            nn.Conv2d(in_ch, out_ch * 4, kernel_size=kernel_size, padding=padding),
            nn.PixelShuffle(2)
        )

    def forward(self, x, to_cat=None, cat_at_front=True):
        out = self.conv(x)
        if to_cat is None:
            return out
        if cat_at_front:
            return torch.cat((to_cat, out), dim=1)
        return torch.cat((out, to_cat), dim=1)

class Decoder(nn.Module):
    def __init__(self):
        super().__init__()
        g_ch_d = 256
        g_ch_y = 128
        self.up = SubpelConv2x(g_ch_y, g_ch_d, 3, padding=1)
        self.conv1 = nn.Sequential(
            DepthConvBlock(g_ch_d * 2, g_ch_d),
            DepthConvBlock(g_ch_d, g_ch_d),
            DepthConvBlock(g_ch_d, g_ch_d)
        )
        self.conv2 = nn.Conv2d(g_ch_d, g_ch_d, 1)

    def forward(self, x, ctx, quant_step):
        feature = self.up(x)
        feature = self.conv1(torch.cat((feature, ctx), dim=1))
        feature = self.conv2(feature)
        return feature

INIT_ARGS = {}

ARGS = {
    'x': torch.randn(2, 128, 4, 3),
    'ctx': torch.randn(2, 256, 8, 6),
    'quant_step': 0.5
}

if __name__ == '__main__':
    decoder = Decoder()
    output = decoder(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output dtype: {output.dtype}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
DepthConvBlock Ran
ran on a synthesized input
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("d2630b2bf52e05d7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import nn

# INIT_ARGS for DepthConvBlock
INIT_ARGS = {
    'in_ch': 4,
    'out_ch': 4,
    'shortcut': True,
    'force_adaptor': False
}

# ARGS for forward method
batch_size = 2
height = 3
width = 3
input_tensor = torch.randn(batch_size, INIT_ARGS['in_ch'], height, width)
quant_step = torch.tensor(0.5)
to_cat = torch.randn(batch_size, 2, height, width)  # Different channel dim to distinguish
cat_at_front = True

ARGS = {
    'x': input_tensor,
    'quant_step': quant_step,
    'to_cat': to_cat,
    'cat_at_front': cat_at_front
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
FeatureExtractor Ran
ran on a synthesized input
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("8d71934d46c53dd9")
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 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
from torch import nn

INIT_ARGS = {}

ARGS = {
    'x': torch.randn(2, 256, 4, 3),
    'quant': torch.randn(1)
}
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 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
HyperEncoder Ran
ran on a synthesized input
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("4d40a1c48bbcac69")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import nn

CUSTOMIZED_CUDA_INFERENCE = False

class DepthConvBlock(nn.Module):

    def __init__(self, in_ch, out_ch, shortcut=False, force_adaptor=False):
        super().__init__()
        self.adaptor = None
        if in_ch != out_ch or force_adaptor:
            self.adaptor = nn.Conv2d(in_ch, out_ch, 1)
        self.shortcut = shortcut
        self.dc = nn.Sequential(nn.Conv2d(out_ch, out_ch, 1), WSiLU(), nn.Conv2d(out_ch, out_ch, 3, padding=1, groups=out_ch), nn.Conv2d(out_ch, out_ch, 1))
        self.ffn = nn.Sequential(nn.Conv2d(out_ch, out_ch * 4, 1), WSiLUChunkAdd(), nn.Conv2d(out_ch * 2, out_ch, 1))
        self.proxy = None

    def forward(self, x, quant_step=None, to_cat=None, cat_at_front=True):
        if not CUSTOMIZED_CUDA_INFERENCE or not x.is_cuda:
            return self.forward_torch(x, quant_step, to_cat, cat_at_front)
        return self.forward_cuda(x, quant_step, to_cat, cat_at_front)

    def forward_torch(self, x, quant_step=None, to_cat=None, cat_at_front=True):
        if self.adaptor is not None:
            x = self.adaptor(x)
        out = self.dc(x) + x
        out = self.ffn(out) + out
        if self.shortcut:
            out = out + x
        if quant_step is not None:
            out = out * quant_step
        if to_cat is not None:
            if cat_at_front:
                out = torch.cat((to_cat, out), dim=1)
            else:
                out = torch.cat((out, to_cat), dim=1)
        return out

    def forward_cuda(self, x, quant_step=None, to_cat=None, cat_at_front=True):
        if self.proxy is None:
            self.proxy = DepthConvProxy()
            if self.adaptor is not None:
                self.proxy.set_param_with_adaptor(self.dc[0].weight, self.dc[0].bias, self.dc[2].weight, self.dc[2].bias, self.dc[3].weight, self.dc[3].bias, self.ffn[0].weight, self.ffn[0].bias, self.ffn[2].weight, self.ffn[2].bias, self.adaptor.weight, self.adaptor.bias, self.shortcut)
            else:
                self.proxy.set_param(self.dc[0].weight, self.dc[0].bias, self.dc[2].weight, self.dc[2].bias, self.dc[3].weight, self.dc[3].bias, self.ffn[0].weight, self.ffn[0].bias, self.ffn[2].weight, self.ffn[2].bias, self.shortcut)
        if quant_step is not None:
            return self.proxy.forward_with_quant_step(x, quant_step)
        if to_cat is not None:
            return self.proxy.forward_with_cat(x, to_cat, cat_at_front)
        return self.proxy.forward(x)

class ResidualBlockWithStride2(nn.Module):

    def __init__(self, in_ch, out_ch):
        super().__init__()
        self.down = nn.Conv2d(in_ch, out_ch, 2, stride=2)
        self.conv = DepthConvBlock(out_ch, out_ch, shortcut=True)

    def forward(self, x):
        x = self.down(x)
        out = self.conv(x)
        return out

class WSiLU(nn.Module):

    def __init__(self):
        super().__init__()

    def forward(self, x):
        return torch.sigmoid(4.0 * x) * x

class WSiLUChunkAdd(nn.Module):

    def __init__(self):
        super().__init__()
        self.silu = WSiLU()

    def forward(self, x):
        x1, x2 = self.silu(x).chunk(2, 1)
        return x1 + x2

g_ch_y = 128

g_ch_z = 128

class HyperEncoder(nn.Module):

    def __init__(self):
        super().__init__()
        self.conv = nn.Sequential(DepthConvBlock(g_ch_y, g_ch_z), ResidualBlockWithStride2(g_ch_z, g_ch_z), ResidualBlockWithStride2(g_ch_z, g_ch_z))

    def forward(self, x):
        return self.conv(x)


INIT_ARGS = {}

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

if __name__ == '__main__':
    model = HyperEncoder(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
PriorFusion Ran
ran on a synthesized input
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("b035ef7ee62dfab7")
How it ran

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

# Mock DepthConvProxy since it's not provided
class DepthConvProxy:
    def set_param(self, *args):
        pass
    def set_param_with_adaptor(self, *args):
        pass
    def forward(self, x):
        return x
    def forward_with_quant_step(self, x, quant_step):
        return x * quant_step
    def forward_with_cat(self, x, to_cat, cat_at_front):
        if cat_at_front:
            return torch.cat((to_cat, x), dim=1)
        return torch.cat((x, to_cat), dim=1)

# Define INIT_ARGS for PriorFusion
INIT_ARGS = {}

# Define ARGS for PriorFusion.forward
# Input shape: (batch=2, channels=g_ch_y*3=384, height=4, width=3)
ARGS = {
    'x': torch.randn(2, 128 * 3, 4, 3)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 4, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ReconGeneration Ran
ran on a synthesized input
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("31e2dd2ac8c92243")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import torch.nn.functional as F

# Minimal implementations of custom modules
class WSiLU(nn.Module):
    def __init__(self):
        super().__init__()

    def forward(self, x):
        return torch.sigmoid(4.0 * x) * x

class WSiLUChunkAdd(nn.Module):
    def __init__(self):
        super().__init__()
        self.silu = WSiLU()

    def forward(self, x):
        x1, x2 = self.silu(x).chunk(2, 1)
        return x1 + x2

class DepthConvBlock(nn.Module):
    def __init__(self, in_ch, out_ch, shortcut=False, force_adaptor=False):
        super().__init__()
        self.adaptor = None
        if in_ch != out_ch or force_adaptor:
            self.adaptor = nn.Conv2d(in_ch, out_ch, 1)
        self.shortcut = shortcut
        self.dc = nn.Sequential(
            nn.Conv2d(out_ch, out_ch, 1),
            WSiLU(),
            nn.Conv2d(out_ch, out_ch, 3, padding=1, groups=out_ch),
            nn.Conv2d(out_ch, out_ch, 1)
        )
        self.ffn = nn.Sequential(
            nn.Conv2d(out_ch, out_ch * 4, 1),
            WSiLUChunkAdd(),
            nn.Conv2d(out_ch * 2, out_ch, 1)
        )
        self.proxy = None

    def forward(self, x, quant_step=None, to_cat=None, cat_at_front=True):
        if self.adaptor is not None:
            x = self.adaptor(x)
        out = self.dc(x) + x
        out = self.ffn(out) + out
        if self.shortcut:
            out = out + x
        if quant_step is not None:
            out = out * quant_step
        if to_cat is not None:
            if cat_at_front:
                out = torch.cat((to_cat, out), dim=1)
            else:
                out = torch.cat((out, to_cat), dim=1)
        return out

g_ch_d = 256
g_ch_recon = 320
g_ch_src_d = 3 * 8 * 8

class ReconGeneration(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv = nn.Sequential(
            DepthConvBlock(g_ch_d, g_ch_recon),
            DepthConvBlock(g_ch_recon, g_ch_recon),
            DepthConvBlock(g_ch_recon, g_ch_recon),
            DepthConvBlock(g_ch_recon, g_ch_recon)
        )
        self.head = nn.Conv2d(g_ch_recon, g_ch_src_d, 1)

    def forward(self, x, quant_step):
        out = self.conv(x)
        out = out * quant_step
        out = self.head(out)
        out = F.pixel_shuffle(out, 8)
        out = torch.clamp(out, 0.0, 1.0)
        return out

INIT_ARGS = {}

ARGS = {
    'x': torch.randn(1, g_ch_d, 4, 3),
    'quant_step': torch.tensor(0.5)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ResidualBlockWithStride2 Ran
ran on a synthesized input
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("c4f96036562670f5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import nn

CUSTOMIZED_CUDA_INFERENCE = False

class WSiLU(nn.Module):

    def __init__(self):
        super().__init__()

    def forward(self, x):
        return torch.sigmoid(4.0 * x) * x

class WSiLUChunkAdd(nn.Module):

    def __init__(self):
        super().__init__()
        self.silu = WSiLU()

    def forward(self, x):
        x1, x2 = self.silu(x).chunk(2, 1)
        return x1 + x2

class DepthConvBlock(nn.Module):

    def __init__(self, in_ch, out_ch, shortcut=False, force_adaptor=False):
        super().__init__()
        self.adaptor = None
        if in_ch != out_ch or force_adaptor:
            self.adaptor = nn.Conv2d(in_ch, out_ch, 1)
        self.shortcut = shortcut
        self.dc = nn.Sequential(nn.Conv2d(out_ch, out_ch, 1), WSiLU(), nn.Conv2d(out_ch, out_ch, 3, padding=1, groups=out_ch), nn.Conv2d(out_ch, out_ch, 1))
        self.ffn = nn.Sequential(nn.Conv2d(out_ch, out_ch * 4, 1), WSiLUChunkAdd(), nn.Conv2d(out_ch * 2, out_ch, 1))
        self.proxy = None

    def forward(self, x, quant_step=None, to_cat=None, cat_at_front=True):
        if not CUSTOMIZED_CUDA_INFERENCE or not x.is_cuda:
            return self.forward_torch(x, quant_step, to_cat, cat_at_front)
        return self.forward_cuda(x, quant_step, to_cat, cat_at_front)

    def forward_torch(self, x, quant_step=None, to_cat=None, cat_at_front=True):
        if self.adaptor is not None:
            x = self.adaptor(x)
        out = self.dc(x) + x
        out = self.ffn(out) + out
        if self.shortcut:
            out = out + x
        if quant_step is not None:
            out = out * quant_step
        if to_cat is not None:
            if cat_at_front:
                out = torch.cat((to_cat, out), dim=1)
            else:
                out = torch.cat((out, to_cat), dim=1)
        return out

    def forward_cuda(self, x, quant_step=None, to_cat=None, cat_at_front=True):
        if self.proxy is None:
            self.proxy = DepthConvProxy()
            if self.adaptor is not None:
                self.proxy.set_param_with_adaptor(self.dc[0].weight, self.dc[0].bias, self.dc[2].weight, self.dc[2].bias, self.dc[3].weight, self.dc[3].bias, self.ffn[0].weight, self.ffn[0].bias, self.ffn[2].weight, self.ffn[2].bias, self.adaptor.weight, self.adaptor.bias, self.shortcut)
            else:
                self.proxy.set_param(self.dc[0].weight, self.dc[0].bias, self.dc[2].weight, self.dc[2].bias, self.dc[3].weight, self.dc[3].bias, self.ffn[0].weight, self.ffn[0].bias, self.ffn[2].weight, self.ffn[2].bias, self.shortcut)
        if quant_step is not None:
            return self.proxy.forward_with_quant_step(x, quant_step)
        if to_cat is not None:
            return self.proxy.forward_with_cat(x, to_cat, cat_at_front)
        return self.proxy.forward(x)

class ResidualBlockWithStride2(nn.Module):

    def __init__(self, in_ch, out_ch):
        super().__init__()
        self.down = nn.Conv2d(in_ch, out_ch, 2, stride=2)
        self.conv = DepthConvBlock(out_ch, out_ch, shortcut=True)

    def forward(self, x):
        x = self.down(x)
        out = self.conv(x)
        return out

INIT_ARGS = {
    'in_ch': 3,
    'out_ch': 4,
}

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

if __name__ == '__main__':
    model = ResidualBlockWithStride2(**INIT_ARGS)
    output = model(**ARGS)
    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 4, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
SubpelConv2x Ran
ran on a synthesized input
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("58d7f8bf0a025b7f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

INIT_ARGS = {
    'in_ch': 3,
    'out_ch': 8,
    'kernel_size': 3,
    'padding': 1
}

ARGS = {
    'x': torch.randn(2, 3, 16, 16),
    'to_cat': None,
    'cat_at_front': True
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
WSiLU Ran
ran on a synthesized input
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("2587865886a4218e")
How it ran

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

class WSiLU(nn.Module):

    def __init__(self):
        super().__init__()

    def forward(self, x):
        return torch.sigmoid(4.0 * x) * x


INIT_ARGS = {}

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

if __name__ == '__main__':
    model = WSiLU(**INIT_ARGS)
    output = model(**ARGS)
    print(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 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
WSiLUChunkAdd Ran
ran on a synthesized input
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("9b36262e9f957f07")
How it ran

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

import torch
from torch import nn

class WSiLU(nn.Module):

    def __init__(self):
        super().__init__()

    def forward(self, x):
        return torch.sigmoid(4.0 * x) * x

class WSiLUChunkAdd(nn.Module):

    def __init__(self):
        super().__init__()
        self.silu = WSiLU()

    def forward(self, x):
        x1, x2 = self.silu(x).chunk(2, 1)
        return x1 + x2


INIT_ARGS = {}

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

if __name__ == '__main__':
    model = WSiLUChunkAdd(**INIT_ARGS)
    output = model(**ARGS)
    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 2, dtype family float, shape (2, 2) — shape (2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
add_and_multiply Ran
ran, honoured the contract we drafted
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("1a041ac6f57a560a")
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 torch.nn as nn

torch.manual_seed(0)

# Create small tensors for the function parameters
# y_hat_0 and y_hat_1 are tensors that get added together
y_hat_0 = torch.randn(2, 4)
y_hat_1 = torch.randn(2, 4)

# q_dec is a scalar that multiplies the result
q_dec = 0.5

ARGS = {
    "y_hat_0": y_hat_0,
    "y_hat_1": y_hat_1,
    "q_dec": q_dec,
}
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
bias_quant Ran
ran, violated the contract we drafted
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("3827431831b55e09")
How it ran

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

# Construct tiny tensors with distinct dimensions
# x: (batch=2, channels=4, height=3, width=5) - 4D tensor as used in the function
x = torch.randn(2, 4, 3, 5)

# bias: (channels=4,) - 1D tensor, will be expanded to [None, :, None, None] in the function
bias = torch.randn(4)

# quant_step: scalar float for quantization
quant_step = 0.1

ARGS = {
    'x': x,
    'bias': bias,
    'quant_step': quant_step
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, 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
build_index_dec Ran
ran; our contract draft was wrong, not the code
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("67fb651ec943a810")
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 2, 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 = {
    "scales": torch.tensor([1.0, 2.0, 0.5, 1.5], dtype=torch.float32),
    "scale_min": 0.1,
    "scale_max": 10.0,
    "log_scale_min": -2.3,
    "log_step_recip": 0.5,
    "skip_thres": 1.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, ndim 2, 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
build_index_enc Ran
ran; our contract draft was wrong, not the code
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("acf48a659d8b34ad")
How it ran

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

import torch

torch.manual_seed(0)

# Create small tensors for the function
symbols = torch.tensor([10, 20], dtype=torch.int16)
scales = torch.tensor([1.5, 2.5], dtype=torch.float32)
scale_min = 1.0
scale_max = 10.0
log_scale_min = 0.0
log_step_recip = 1.0
skip_thres = 2.0

ARGS = {
    "symbols": symbols,
    "scales": scales,
    "scale_min": scale_min,
    "scale_max": scale_max,
    "log_scale_min": log_scale_min,
    "log_step_recip": log_step_recip,
    "skip_thres": skip_thres,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family int, shape (1,) — shape (1,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
clamp_reciprocal_with_quant Ran
ran; our contract draft was wrong, not the code
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("fd74a46db0b38360")
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 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct arguments for clamp_reciprocal_with_quant
q_dec = torch.tensor([[1.5, 2.0, 0.5, 3.0], [0.8, 1.2, 2.5, 0.3]], dtype=torch.float32)
y = torch.tensor([[0.1, 0.2, 0.3, 0.4], [0.5, 0.6, 0.7, 0.8]], dtype=torch.float32)
min_val = 0.1

ARGS = {
    "q_dec": q_dec,
    "y": y,
    "min_val": min_val
}
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 3, 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
combine_for_reading_2x Ran
ran; our contract draft was wrong, not the code
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("d1a13206c36a5b35")
How it ran

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

torch.manual_seed(0)

# Create small tensors for testing
# x: shape (B, C, H, W) where C must be even for chunk(2, 1) to work
B, C, H, W = 2, 4, 3, 5
x = torch.randn(B, C, H, W)

# mask: must be broadcastable with x for element-wise multiplication
mask = torch.ones(B, C, H, W)

# inplace: boolean flag
inplace = False

ARGS = {
    "x": x,
    "mask": mask,
    "inplace": inplace
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 2, 3, 5) — shape (2, 2, 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
process_with_mask Ran
ran; our contract draft was wrong, not the code
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("0688c213d8914d99")
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 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct small tensors with distinct dimensions
y = torch.randn(2, 4)  # batch=2, dim=4
scales = torch.randn(2, 4)
means = torch.randn(2, 4)
mask = torch.randint(0, 2, (2, 4), dtype=torch.float32)
force_zero_thres = 0.5

ARGS = {
    'y': y,
    'scales': scales,
    'means': means,
    'mask': mask,
    'force_zero_thres': force_zero_thres
}
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 3, 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
replicate_pad Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("6f0a1e70b507bf99")
How it ran

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

torch.manual_seed(0)

# Create a small test tensor
# Shape: (batch=2, channels=3, height=4, width=5)
x = torch.randn(2, 3, 4, 5)

# Padding values
pad_b = 2  # bottom padding
pad_r = 3  # right padding

ARGS = {
    "x": x,
    "pad_b": pad_b,
    "pad_r": pad_r,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 6, 8) — shape (2, 3, 6, 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: none by the harness; any seed is in the setup block
restore_y_2x Ran
ran; our contract draft was wrong, not the code
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("badd304bd52c1e78")
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, 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

torch.manual_seed(0)

# Construct tensors for the function
# y: will be concatenated with itself along dim=1, so shape (batch, dim)
y = torch.randn(2, 4)

# means: should have shape (batch, 2*dim) to match the concatenated result
means = torch.randn(2, 8)

# mask: should have shape (batch, 2*dim) to be broadcastable with the addition result
mask = torch.ones(2, 8)

ARGS = {
    "y": y,
    "means": means,
    "mask": mask,
}
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, 8) — shape (2, 8) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
restore_y_4x Ran
ran; our contract draft was wrong, not the code
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("04830909a5b42ed4")
How it ran

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

# Construct tensors for the function
# y: shape (batch=2, channels=1, height=4, width=4) - will be concatenated 4 times
y = torch.randn(2, 1, 4, 4)

# means: same shape as the output after concatenation
# After torch.cat((y, y, y, y), dim=1), the result will have shape (2, 4, 4, 4)
means = torch.randn(2, 4, 4, 4)

# mask: same shape as means for element-wise multiplication
mask = torch.ones(2, 4, 4, 4)

ARGS = {
    "y": y,
    "means": means,
    "mask": mask,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 4, 4, 4) — shape (2, 4, 4, 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
round_and_to_int8 Ran
ran; our contract draft was wrong, not the code
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("a05c9e97653d2a48")
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 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor with values that will be clamped to int8 range
z = torch.randn(2, 4) * 100  # Scale up to get values outside int8 range

ARGS = {
    "z": z
}
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 tuple, ndim 3, 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
CompressionModel Not yet run
unverified (harvested, no recorded run)
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("8ab5a894dae3d87a")
How it ran

no invocation recorded.

DMC Not yet run
unverified (harvested, no recorded run)
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("d403d2e9510c5557")
How it ran

no invocation recorded.

Encoder Not yet run
unverified (harvested, no recorded run)
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("6a89e2188117f78d")
How it ran

no invocation recorded.

EntropyCoder Not yet run
unverified (harvested, no recorded run)
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("16d83cb522ff6878")
How it ran

no invocation recorded.

GaussianEncoder Not yet run
unverified (harvested, no recorded run)
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("af985b6d3be368d9")
How it ran

no invocation recorded.

HyperDecoder Not yet run
unverified (harvested, no recorded run)
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("49f35ea395c21d4e")
How it ran

no invocation recorded.

RefFrame Not yet run
unverified (harvested, no recorded run)
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("c4c8570c58f5e745")
How it ran

no invocation recorded.

ResidualBlockUpsample Not yet run
unverified (harvested, no recorded run)
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("8b42cfe104e1ebce")
How it ran

no invocation recorded.

SpatialPrior Not yet run
unverified (harvested, no recorded run)
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("06f77d72d6ef2bf1")
How it ran

no invocation recorded.

bias_pixel_shuffle_8 Not yet run
unverified (harvested, no recorded run)
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("6762b17743bfdfa2")
How it ran

no invocation recorded.

restore_y_2x_with_cat_after Not yet run
unverified (harvested, no recorded run)
microsoft/DCVC/DCVC-family/DCVC-RT/src/models/video_model.py
code served (permissive licence) · get_code("03ac53f5f2eabc07")
How it ran

no invocation recorded.

Also present in other papers' code

Of 34 samples lifted from this paper's linked repositories, 34 carry a function identity and 0 do not. Of the 34 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 33 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
Bitparm
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2402.17414 (2024-02)
Neural Video Compression with Feature Modulation

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

Repositories linked to this paper

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

Abstract

We introduce a practical real-time neural video codec (NVC) designed to deliver high compression ratio, low latency and broad versatility. In practice, the coding speed of NVCs depends on 1) computational costs, and 2) noncomputational operational costs, such as memory I/O and the number of function calls. While most efficient NVCs prioritize reducing computational cost, we identify operational cost as the primary bottleneck to achieving higher coding speed. Leveraging this insight, we introduce a set of efficiency-driven design improvements focused on minimizing operational costs. Specifically, we employ implicit temporal modeling to eliminate complex explicit motion modules, and use single low-resolution latent representations rather than progressive downsampling. These innovations significantly accelerate NVC without sacrificing compression quality. Additionally, we implement model integerization for consistent cross-device coding and a module-bank-based rate control scheme to improve practical adaptability. Experiments show our proposed DCVC-RT achieves an impressive average encoding/decoding speed at 125.2/112.8 fps (frames per second) for 1080p video, while saving an average of 21% in bitrate compared to H.266/VTM. The code is available at https://github.com/microsoft/DCVC. * This work was done when Zhaoyang Jia and Linfeng Qi were full-time interns at Microsoft Research Asia. † This paper is the outcome of an open-source project started from Dec. 2023.

For agents

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

get_harvested_code_for_paper("2502.20762")
get_code_for_paper("2502.20762")
have("2502.20762")

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

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

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

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

Connect an agent — have() is free.