SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.00927 · NeurIPS · 2022

DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Steps

Jun Zhu, Yuhao Zhou, Chongxuan Li, Jianfei Chen, Fan Bao, Cheng Lu

arXiv · PDF · Open in the Atlas

Code that ran

17 of 24 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 10 have no contract verdict; 4 failures of our instrument; 7 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2206.00927.json · badge: /api/ran/2206.00927.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
thu-ml/DPM-Solver-v3 canonical (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
LuChengTHU/dpm-solver canonical (classifier label)
classifier basis: classifier_2025
0 ran · 3 no recorded run
astra-vision/LiDPM community (classifier label)
classifier basis not recorded on the link
11 ran · 1 no recorded run
thomaskerdreux/pdm_sar_insar_generation community
Papers with Code archive
3 ran · 1 no recorded run
luchengthu/dpm-solver community
Papers with Code archive
1 ran · 0 no recorded run
MaximeVandegar/Papers-in-100-Lines-of-Code community
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
DPM_Solver Ran
ran on a synthesized input · constructed an object; no result was computed
luchengthu/dpm-solver/dpm_solver_pytorch.py
code served (permissive licence) · get_code("18673fd093501c14")
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, DPM_Solver: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal noise schedule class
class NoiseScheduleVP:
    def __init__(self):
        self.betas = torch.linspace(0.1, 20, 1000)
    
    def marginal_alpha(self, t):
        return torch.ones_like(t) * 0.9
    
    def marginal_std(self, t):
        return torch.ones_like(t) * 0.1

# Create a minimal model function
def model_fn(x, t):
    # x shape: (batch_size, *shape)
    # t shape: (batch_size,)
    # Return noise prediction with same shape as x
    return torch.randn_like(x)

# Create noise schedule instance
noise_schedule = NoiseScheduleVP()

# Define correcting functions
def correcting_x0_fn_custom(x0, t):
    return torch.clamp(x0, -1.0, 1.0)

def correcting_xt_fn_custom(xt, t, step):
    return xt * 0.99

ARGS = {
    'model_fn': model_fn,
    'noise_schedule': noise_schedule,
    'algorithm_type': 'dpmsolver++',
    'correcting_x0_fn': correcting_x0_fn_custom,
    'correcting_xt_fn': correcting_xt_fn_custom,
    'thresholding_max_val': 1.0,
    'dynamic_thresholding_ratio': 0.995
}
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 DPM_Solver — 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 DPM_Solver 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
DiffusionModel Ran
ran on a synthesized input · constructed an object; no result was computed
MaximeVandegar/Papers-in-100-Lines-of-Code/DPM_Solver_A_Fast_ODE_Solver_for_Diffusion_Probabilistic_Model_Sampling_in_Around_10_Steps/dpm_solver.py
code served (permissive licence) · get_code("aeb2f4987825e6b3")
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, DiffusionModel: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleUNet(nn.Module):
    """Minimal UNet-like model for diffusion."""
    def __init__(self, in_channels=1, out_channels=1):
        super().__init__()
        self.fc1 = nn.Linear(in_channels * 32 * 32 + 1, 64)
        self.fc2 = nn.Linear(64, 32)
        self.fc3 = nn.Linear(32, out_channels * 32 * 32)
        self.out_channels = out_channels
    
    def forward(self, x, t):
        # x shape: (batch, channels, 32, 32)
        # t shape: (batch,)
        batch_size = x.shape[0]
        x_flat = x.reshape(batch_size, -1)
        t_emb = t.float().unsqueeze(1)
        combined = torch.cat([x_flat, t_emb], dim=1)
        h = torch.relu(self.fc1(combined))
        h = torch.relu(self.fc2(h))
        out = self.fc3(h)
        out = out.reshape(batch_size, self.out_channels, 32, 32)
        return out

device = "cpu"
T = 1000
model = SimpleUNet(in_channels=1, out_channels=1)

ARGS = {
    "T": T,
    "model": model,
    "device": device,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DiffusionModel — 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 DiffusionModel 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
NoiseScheduleVP Ran
ran on a synthesized input
thomaskerdreux/pdm_sar_insar_generation/utils/utils_sample_DPM.py
code served (permissive licence) · get_code("c1dc4eb5c194ce8d")
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 1, 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 numpy as np

# Create a small discrete beta schedule
N_steps = 10
betas = torch.linspace(0.0001, 0.02, N_steps, dtype=torch.float32)

INIT_ARGS = {
    'schedule': 'discrete',
    'betas': betas,
    'alphas_cumprod': None,
    'dtype': torch.float32
}

# The class appears to be a noise schedule container, not a callable module
# Looking at the docstring, it provides methods like marginal_log_mean_coeff, marginal_std, marginal_lambda, inverse_lambda
# Since no specific method is shown in the truncated code, we'll assume we want to test
# one of the documented methods like marginal_lambda which takes time t as input

# For testing purposes, create time values in [0, 1] range as mentioned in docstring
t = torch.tensor([[0.1], [0.5]], dtype=torch.float32)  # Shape [N=2, C=1]

# Since the class methods are not fully shown, we define ARGS for a typical method call
# Based on the docstring, methods take t as input
ARGS = {
    't': t
}

METHOD = 'marginal_lambda'
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 1, 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)
cosine_beta_schedule Ran
ran on a synthesized input
astra-vision/LiDPM/lidpm/utils/scheduling.py
code served (permissive licence) · get_code("2844790a72cc7fd1")
How it ran

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

torch.manual_seed(0)

# The function cosine_beta_schedule takes:
# - timesteps: an integer representing the number of timesteps
# - s: a float hyperparameter (default 0.008)

# Looking at the function body:
# - timesteps is used in arithmetic operations (timesteps + 1, x / timesteps)
# - s is used in arithmetic operations (s) / (1 + s)
# - The function doesn't actually use any complex objects, just numeric values

ARGS = {
    "timesteps": 10,
    "s": 0.008
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (10,) — shape (10,) 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
expand_dims Ran
ran; our contract draft was wrong, not the code
thomaskerdreux/pdm_sar_insar_generation/utils/utils_sample_DPM.py
code served (permissive licence) · get_code("b68777351ff35e18")
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, 1, 1, 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 a small 1D tensor with shape [N]
v = torch.randn(2)

# Set dims to expand to a higher dimensional tensor
dims = 4

ARGS = {
    "v": v,
    "dims": dims,
}
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, 1, 1, 1) — shape (2, 1, 1, 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
feats_to_coord Ran
ran on a synthesized input
astra-vision/LiDPM/lidpm/utils/collations.py
code served (permissive licence) · get_code("b8a1f3b1f37f7fde")
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 (8, 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

torch.manual_seed(0)

# Construct arguments for feats_to_coord
# p_feats: tensor of shape (bs * num_points, dim) or will be reshaped to (bs, -1, dim)
# resolution: scalar value for division
# bs: batch size
# dim: number of dimensions (default 3)

bs = 2
dim = 3
num_points = 4

# Create p_feats tensor: shape (bs * num_points, dim) = (8, 3)
p_feats = torch.randn(bs * num_points, dim)

# resolution: a scalar
resolution = 0.5

ARGS = {
    "p_feats": p_feats,
    "resolution": resolution,
    "bs": bs,
    "dim": dim
}
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 (8, 3) — shape (8, 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: none by the harness; any seed is in the setup block
index_list Ran
ran, violated the contract we drafted
thu-ml/DPM-Solver-v3/codebases/score_sde/samplers/dpm_solver_v3.py
code served (permissive licence) · get_code("522ab9ee79479d93")
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 list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

def index_list(lst, index):
    new_lst = []
    for i in index:
        new_lst.append(lst[i])
    return new_lst

# Create a simple list with distinct elements
lst = [10, 20, 30, 40, 50]

# Create an index list
index = [0, 2, 4]

ARGS = {
    "lst": lst,
    "index": index
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
interpolate_fn Ran
ran; our contract draft was wrong, not the code
thomaskerdreux/pdm_sar_insar_generation/utils/utils_sample_DPM.py
code served (permissive licence) · get_code("75f87754036e8581")
How it ran

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

torch.manual_seed(0)

# x: shape [N, C] where N is batch size, C is number of channels
# For this function, we use N=2 (batch size), C=1 (channels)
x = torch.randn(2, 1)

# xp: shape [C, K] where K is number of keypoints
# C=1 (channels), K=4 (keypoints)
xp = torch.linspace(0, 1, 4).unsqueeze(0)  # shape [1, 4]

# yp: shape [C, K]
# C=1 (channels), K=4 (keypoints)
yp = torch.linspace(0, 2, 4).unsqueeze(0)  # shape [1, 4]

ARGS = {
    "x": x,
    "xp": xp,
    "yp": yp,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 1) — shape (2, 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
linear_beta_schedule Ran
ran, honoured the contract we drafted
astra-vision/LiDPM/lidpm/utils/scheduling.py
code served (permissive licence) · get_code("84a1879c66fb8e8b")
How it ran

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

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

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

import tempfile
import yaml
import os

# Create a temporary YAML file with valid configuration
temp_dir = tempfile.mkdtemp()
config_file = os.path.join(temp_dir, "config.yaml")

config_data = {
    "model": "test_model",
    "learning_rate": 0.001,
    "batch_size": 32,
    "epochs": 10,
    "layers": [64, 128, 256]
}

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

ARGS = {
    "file_path": config_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_poses Ran
ran on a synthesized input
astra-vision/LiDPM/lidpm/utils/pcd_preprocess.py
code served (permissive licence) · get_code("dd375501c42dd070")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 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 numpy as np
import os
import tempfile
from os.path import join

# Create temporary directory and files for testing
temp_dir = tempfile.mkdtemp()

# Create calibration file with Tr matrix
calib_content = "Tr: 1.0 0.0 0.0 0.1 0.0 1.0 0.0 0.2 0.0 0.0 1.0 0.3\n"
calib_file_path = join(temp_dir, "calib.txt")
with open(calib_file_path, 'w') as f:
    f.write(calib_content)

# Create poses file with transformation matrices
poses_content = """1.0 0.0 0.0 1.0 0.0 1.0 0.0 2.0 0.0 0.0 1.0 3.0
0.9 0.1 0.0 1.1 -0.1 0.9 0.0 2.1 0.0 0.0 1.0 3.1
"""
poses_file_path = join(temp_dir, "poses.txt")
with open(poses_file_path, 'w') as f:
    f.write(poses_content)

# Define arguments for load_poses function
ARGS = {
    "path": temp_dir,
    "calib_fname": "calib.txt",
    "poses_fname": "poses.txt"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 3, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_calibration Ran
ran; our contract draft was wrong, not the code
astra-vision/LiDPM/lidpm/utils/pcd_preprocess.py
code served (permissive licence) · get_code("b39e1616e4146e48")
How it ran

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

import tempfile
import os

# Create a temporary calibration file with valid content
temp_dir = tempfile.mkdtemp()
calib_filename = os.path.join(temp_dir, "calib.txt")

# Write a sample calibration file
with open(calib_filename, 'w') as f:
    f.write("P0: 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 11.0 12.0\n")
    f.write("P1: 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2\n")

ARGS = {
    "filename": calib_filename
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
quadratic_beta_schedule Ran
ran, honoured the contract we drafted
astra-vision/LiDPM/lidpm/utils/scheduling.py
code served (permissive licence) · get_code("f9097d641770f184")
How it ran

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

ARGS = {
    "timesteps": 10,
    "beta_start": 0.0001,
    "beta_end": 0.02,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (10,) — shape (10,) 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
random_flip_point_cloud Ran
ran on a synthesized input
astra-vision/LiDPM/lidpm/utils/pcd_transforms.py
code served (permissive licence) · get_code("418cad3868631abf")
How it ran

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

import numpy as np

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

# Create a small batch of point cloud data
# Shape: (B, N, C) where B=batch size, N=number of points, C=channels
B = 2  # batch size
N = 4  # number of points
C = 3  # channels (x, y, z)

batch_data = np.random.randn(B, N, C).astype(np.float32)

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

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

import numpy as np

# Create a small batch of point cloud data
# Shape: (batch_size, num_points, 3) where 3 is for x, y, z coordinates
batch_size = 2
num_points = 4
batch_data = np.random.randn(batch_size, num_points, 3).astype(np.float32)

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

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

import numpy as np

# The function expects batch_data to be a numpy array
# Looking at the function:
# - batch_data.shape[0] is the batch dimension
# - batch_data[k, ...] gets the k-th element
# - shape_pc.reshape((-1, 3)) reshapes to (N, 3) for point cloud
# - np.dot(shape_pc.reshape((-1, 3)), rotation_matrix) multiplies (N, 3) by (3, 3)
# So batch_data should be shape (batch_size, num_points, 3)

batch_size = 2
num_points = 4
point_dim = 3

batch_data = np.random.randn(batch_size, num_points, point_dim).astype(np.float32)

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

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

import yaml
import click
import tempfile
import os

# Create a temporary YAML config file
config_data = {
    'learning_rate': 0.001,
    'batch_size': 32,
    'epochs': 10,
    'model_type': 'transformer'
}

# Write to a temporary file
temp_dir = tempfile.mkdtemp()
config_file = os.path.join(temp_dir, 'test_config.yaml')
with open(config_file, 'w') as f:
    yaml.safe_dump(config_data, f)

# Create a mock Click context
class MockContext:
    def __init__(self):
        self.params = {
            'learning_rate': 0.002,
            'batch_size': None,
            'epochs': None,
            'new_param': 'added_value'
        }

mock_ctx = MockContext()

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

no invocation recorded.

convert_inf Not yet run
unverified (harvested, no recorded run)
astra-vision/LiDPM/lidpm/utils/callbacks.py
code served (permissive licence) · get_code("87d3711ace93ad00")
How it ran

no invocation recorded.

expand_dims Not yet run
unverified (harvested, no recorded run)
LuChengTHU/dpm-solver/examples/score_sde_jax/dpm_solver.py
code served (permissive licence) · get_code("5de61fe60d41eb55")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

interpolate_fn Not yet run
unverified (harvested, no recorded run)
LuChengTHU/dpm-solver/examples/score_sde_jax/dpm_solver.py
code served (permissive licence) · get_code("8f6335e1c872cedc")
How it ran

no invocation recorded.

model_wrapper Not yet run
unverified (harvested, no recorded run)
LuChengTHU/dpm-solver/examples/score_sde_jax/dpm_solver.py
code served (permissive licence) · get_code("aafc0d7013851789")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

weighted_cumsumexp_trapezoid Not yet run
unverified (harvested, no recorded run)
thu-ml/DPM-Solver-v3/codebases/score_sde/samplers/dpm_solver_v3.py
code served (permissive licence) · get_code("62681c73cc1d446e")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

weighted_cumsumexp_trapezoid_torch Not yet run
unverified (harvested, no recorded run)
thu-ml/DPM-Solver-v3/codebases/score_sde/samplers/dpm_solver_v3.py
code served (permissive licence) · get_code("510b207c6841a775")
How it ran

no invocation recorded.

Also present in other papers' code

Of 24 samples lifted from this paper's linked repositories, 24 carry a function identity and 0 do not. Of the 24 distinct functions with an identity, 11 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 11 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
expand_dims
brick of this paper's assembly: helper
39 other papers
2 dated earlier, 37 later · 4 only as an assembly brick
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2202.09778 (2022-02)
Pseudo Numerical Methods for Diffusion Models on Manifolds
2211.01095 (2022-11)
DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Models
and 36 more not named here
parse_calibration 6 other papers
2 dated earlier, 4 later
1904.01416 (2019-04)
SemanticKITTI: A Dataset for Semantic Scene Understanding of LiDAR Sequences
2204.08084 (2022-04)
Learning 3D Semantics from Pose-Noisy 2D Images with Hierarchical Full Attention Network
Nunes_Temporal_Consistent_3D_LiDAR_Representation_Learning_for_Semantic_Perception_in_CVPR_2023_paper (2023 (year only))
Temporal Consistent 3D LiDAR Representation Learning for Semantic Perception in Autonomous Driving
and 3 more not named here
interpolate_fn 2 other papers
2 later
2211.01095 (2022-11)
DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Models
2310.13268 (2023-10)
DPM-Solver-v3: Improved Diffusion ODE Solver with Empirical Model Statistics
linear_beta_schedule 2 other papers
2 later
2503.00522 (2025-03)
Periodic Materials Generation using Text-Guided Joint Diffusion Model
2512.07289 (2025-12)
Equivariant Diffusion for Crystal Structure Prediction
model_wrapper 2 other papers
2 later
2211.01095 (2022-11)
DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Models
2310.13268 (2023-10)
DPM-Solver-v3: Improved Diffusion ODE Solver with Empirical Model Statistics
quadratic_beta_schedule 2 other papers
2 later
2503.00522 (2025-03)
Periodic Materials Generation using Text-Guided Joint Diffusion Model
2512.07289 (2025-12)
Equivariant Diffusion for Crystal Structure Prediction
rotate_perturbation_point_cloud 2 other papers
1 dated earlier, 1 later
2103.01458 (2021-03)
Diffusion Probabilistic Models for 3D Point Cloud Generation
Nunes_Temporal_Consistent_3D_LiDAR_Representation_Learning_for_Semantic_Perception_in_CVPR_2023_paper (2023 (year only))
Temporal Consistent 3D LiDAR Representation Learning for Semantic Perception in Autonomous Driving
index_list 1 other paper
1 later
2310.13268 (2023-10)
DPM-Solver-v3: Improved Diffusion ODE Solver with Empirical Model Statistics
rotate_point_cloud 1 other paper
1 later
Nunes_Temporal_Consistent_3D_LiDAR_Representation_Learning_for_Semantic_Perception_in_CVPR_2023_paper (2023 (year only))
Temporal Consistent 3D LiDAR Representation Learning for Semantic Perception in Autonomous Driving
weighted_cumsumexp_trapezoid 1 other paper
1 later
2310.13268 (2023-10)
DPM-Solver-v3: Improved Diffusion ODE Solver with Empirical Model Statistics
weighted_cumsumexp_trapezoid_torch 1 other paper
1 later
2310.13268 (2023-10)
DPM-Solver-v3: Improved Diffusion ODE Solver with Empirical Model Statistics

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

Diffusion probabilistic models (DPMs) are emerging powerful generative models. Despite their high-quality generation performance, DPMs still suffer from their slow sampling as they generally need hundreds or thousands of sequential function evaluations (steps) of large neural networks to draw a sample. Sampling from DPMs can be viewed alternatively as solving the corresponding diffusion ordinary differential equations (ODEs). In this work, we propose an exact formulation of the solution of diffusion ODEs. The formulation analytically computes the linear part of the solution, rather than leaving all terms to black-box ODE solvers as adopted in previous works. By applying change-of-variable, the solution can be equivalently simplified to an exponentially weighted integral of the neural network. Based on our formulation, we propose DPM-Solver, a fast dedicated high-order solver for diffusion ODEs with the convergence order guarantee. DPM-Solver is suitable for both discrete-time and continuous-time DPMs without any further training. Experimental results show that DPM-Solver can generate high-quality samples in only 10 to 20 function evaluations on various datasets. We achieve 4.70 FID in 10 function evaluations and 2.87 FID in 20 function evaluations on the CIFAR10 dataset, and a 4 ∼ 16× speedup compared with previous state-of-the-art training-free samplers on various datasets. 2 * Corresponding Author. 2 Code is available at https://github.com/LuChengTHU/dpm-solver 36th Conference on Neural Information Processing Systems (NeurIPS 2022).

For agents

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

get_harvested_code_for_paper("2206.00927")
get_code_for_paper("2206.00927")
have("2206.00927")

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

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

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

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

Connect an agent — have() is free.