WeightCode / weights /instances /i26d23d3e /model_spec.json
Boom5426's picture
WeightCode records and weights (redacted 2026-11-10, see REDACTIONS.json)
4c27541
Raw History Blame Contribute Delete
21.4 kB
{ "schema": "wrsi.model_spec.resnet18_up.v1", "model_id": "m9c252a44", "arch": "resnet18_up", "input": { "kind": "images", "shape": [ 3, 32, 32 ], "dtype": "uint8", "layout": "NCHW" }, "input_shape": [ 3, 32, 32 ], "preprocessing": { "mean": [ 0.485, 0.456, 0.406 ], "std": [ 0.229, 0.224, 0.225 ], "resize": [ 128, 128 ], "computes": "x / 255, then per channel (x - mean[c]) / std[c], then bilinear upsampling to 128 x 128 (the upsample layer)" }, "classes": [ "airplane", "automobile", "bird", "cat", "deer", "dog", "frog", "horse", "ship", "truck" ], "n_classes": 10, "parameter_layout": "PyTorch: conv weight [out, in, kh, kw]; BatchNorm weight, bias, running_mean, running_var [channels]; head weight [n_classes, 512] and bias [n_classes]; all float32", "n_parameters": 11191242, "tensors": { "conv1.weight": [ 64, 3, 7, 7 ], "bn1.weight": [ 64 ], "bn1.bias": [ 64 ], "bn1.running_mean": [ 64 ], "bn1.running_var": [ 64 ], "layer1.0.conv1.weight": [ 64, 64, 3, 3 ], "layer1.0.bn1.weight": [ 64 ], "layer1.0.bn1.bias": [ 64 ], "layer1.0.bn1.running_mean": [ 64 ], "layer1.0.bn1.running_var": [ 64 ], "layer1.0.conv2.weight": [ 64, 64, 3, 3 ], "layer1.0.bn2.weight": [ 64 ], "layer1.0.bn2.bias": [ 64 ], "layer1.0.bn2.running_mean": [ 64 ], "layer1.0.bn2.running_var": [ 64 ], "layer1.1.conv1.weight": [ 64, 64, 3, 3 ], "layer1.1.bn1.weight": [ 64 ], "layer1.1.bn1.bias": [ 64 ], "layer1.1.bn1.running_mean": [ 64 ], "layer1.1.bn1.running_var": [ 64 ], "layer1.1.conv2.weight": [ 64, 64, 3, 3 ], "layer1.1.bn2.weight": [ 64 ], "layer1.1.bn2.bias": [ 64 ], "layer1.1.bn2.running_mean": [ 64 ], "layer1.1.bn2.running_var": [ 64 ], "layer2.0.conv1.weight": [ 128, 64, 3, 3 ], "layer2.0.bn1.weight": [ 128 ], "layer2.0.bn1.bias": [ 128 ], "layer2.0.bn1.running_mean": [ 128 ], "layer2.0.bn1.running_var": [ 128 ], "layer2.0.conv2.weight": [ 128, 128, 3, 3 ], "layer2.0.bn2.weight": [ 128 ], "layer2.0.bn2.bias": [ 128 ], "layer2.0.bn2.running_mean": [ 128 ], "layer2.0.bn2.running_var": [ 128 ], "layer2.0.downsample.0.weight": [ 128, 64, 1, 1 ], "layer2.0.downsample.1.weight": [ 128 ], "layer2.0.downsample.1.bias": [ 128 ], "layer2.0.downsample.1.running_mean": [ 128 ], "layer2.0.downsample.1.running_var": [ 128 ], "layer2.1.conv1.weight": [ 128, 128, 3, 3 ], "layer2.1.bn1.weight": [ 128 ], "layer2.1.bn1.bias": [ 128 ], "layer2.1.bn1.running_mean": [ 128 ], "layer2.1.bn1.running_var": [ 128 ], "layer2.1.conv2.weight": [ 128, 128, 3, 3 ], "layer2.1.bn2.weight": [ 128 ], "layer2.1.bn2.bias": [ 128 ], "layer2.1.bn2.running_mean": [ 128 ], "layer2.1.bn2.running_var": [ 128 ], "layer3.0.conv1.weight": [ 256, 128, 3, 3 ], "layer3.0.bn1.weight": [ 256 ], "layer3.0.bn1.bias": [ 256 ], "layer3.0.bn1.running_mean": [ 256 ], "layer3.0.bn1.running_var": [ 256 ], "layer3.0.conv2.weight": [ 256, 256, 3, 3 ], "layer3.0.bn2.weight": [ 256 ], "layer3.0.bn2.bias": [ 256 ], "layer3.0.bn2.running_mean": [ 256 ], "layer3.0.bn2.running_var": [ 256 ], "layer3.0.downsample.0.weight": [ 256, 128, 1, 1 ], "layer3.0.downsample.1.weight": [ 256 ], "layer3.0.downsample.1.bias": [ 256 ], "layer3.0.downsample.1.running_mean": [ 256 ], "layer3.0.downsample.1.running_var": [ 256 ], "layer3.1.conv1.weight": [ 256, 256, 3, 3 ], "layer3.1.bn1.weight": [ 256 ], "layer3.1.bn1.bias": [ 256 ], "layer3.1.bn1.running_mean": [ 256 ], "layer3.1.bn1.running_var": [ 256 ], "layer3.1.conv2.weight": [ 256, 256, 3, 3 ], "layer3.1.bn2.weight": [ 256 ], "layer3.1.bn2.bias": [ 256 ], "layer3.1.bn2.running_mean": [ 256 ], "layer3.1.bn2.running_var": [ 256 ], "layer4.0.conv1.weight": [ 512, 256, 3, 3 ], "layer4.0.bn1.weight": [ 512 ], "layer4.0.bn1.bias": [ 512 ], "layer4.0.bn1.running_mean": [ 512 ], "layer4.0.bn1.running_var": [ 512 ], "layer4.0.conv2.weight": [ 512, 512, 3, 3 ], "layer4.0.bn2.weight": [ 512 ], "layer4.0.bn2.bias": [ 512 ], "layer4.0.bn2.running_mean": [ 512 ], "layer4.0.bn2.running_var": [ 512 ], "layer4.0.downsample.0.weight": [ 512, 256, 1, 1 ], "layer4.0.downsample.1.weight": [ 512 ], "layer4.0.downsample.1.bias": [ 512 ], "layer4.0.downsample.1.running_mean": [ 512 ], "layer4.0.downsample.1.running_var": [ 512 ], "layer4.1.conv1.weight": [ 512, 512, 3, 3 ], "layer4.1.bn1.weight": [ 512 ], "layer4.1.bn1.bias": [ 512 ], "layer4.1.bn1.running_mean": [ 512 ], "layer4.1.bn1.running_var": [ 512 ], "layer4.1.conv2.weight": [ 512, 512, 3, 3 ], "layer4.1.bn2.weight": [ 512 ], "layer4.1.bn2.bias": [ 512 ], "layer4.1.bn2.running_mean": [ 512 ], "layer4.1.bn2.running_var": [ 512 ], "fc.weight": [ 10, 512 ], "fc.bias": [ 10 ] }, "layers": [ { "name": "upsample", "op": "resize_bilinear", "size": [ 128, 128 ], "computes": "bilinear interpolation as torch.nn.functional.interpolate(mode='bilinear', align_corners=False, antialias=False): along each axis, output position i reads the input at s = (i + 0.5) * 32 / R - 0.5, clamped below at 0, from rows floor(s) and min(floor(s) + 1, 31) with weights 1 - (s - floor(s)) and s - floor(s)", "parameters": null }, { "name": "conv1", "op": "conv2d", "weight": "conv1.weight", "shape": [ 64, 3, 7, 7 ], "stride": 2, "padding": 3, "bias": null, "computes": "2-D cross-correlation as torch.nn.functional.conv2d with the given stride and zero padding, no bias" }, { "name": "bn1", "op": "batchnorm_eval", "tensors": { "weight": "bn1.weight", "bias": "bn1.bias", "running_mean": "bn1.running_mean", "running_var": "bn1.running_var" }, "shape": [ 64 ], "eps": 1e-05, "computes": "h = (h - running_mean) / sqrt(running_var + eps) * weight + bias, per channel" }, { "name": "relu", "op": "relu" }, { "name": "maxpool", "op": "maxpool2d", "kernel": 3, "stride": 2, "padding": 1, "computes": "max over 3x3 windows with stride 2; padded positions never win (padding with -inf)" }, { "name": "layer1.0", "op": "basic_block", "in_channels": 64, "out_channels": 64, "stride": 1, "conv1": { "weight": "layer1.0.conv1.weight", "shape": [ 64, 64, 3, 3 ], "stride": 1, "padding": 1, "bias": null }, "bn1": { "tensors": { "weight": "layer1.0.bn1.weight", "bias": "layer1.0.bn1.bias", "running_mean": "layer1.0.bn1.running_mean", "running_var": "layer1.0.bn1.running_var" }, "shape": [ 64 ], "eps": 1e-05 }, "conv2": { "weight": "layer1.0.conv2.weight", "shape": [ 64, 64, 3, 3 ], "stride": 1, "padding": 1, "bias": null }, "bn2": { "tensors": { "weight": "layer1.0.bn2.weight", "bias": "layer1.0.bn2.bias", "running_mean": "layer1.0.bn2.running_mean", "running_var": "layer1.0.bn2.running_var" }, "shape": [ 64 ], "eps": 1e-05 }, "shortcut": null, "computes": "out = relu(bn2(conv2(relu(bn1(conv1(x))))) + s), s = the shortcut of x, or s = x when the shortcut is null" }, { "name": "layer1.1", "op": "basic_block", "in_channels": 64, "out_channels": 64, "stride": 1, "conv1": { "weight": "layer1.1.conv1.weight", "shape": [ 64, 64, 3, 3 ], "stride": 1, "padding": 1, "bias": null }, "bn1": { "tensors": { "weight": "layer1.1.bn1.weight", "bias": "layer1.1.bn1.bias", "running_mean": "layer1.1.bn1.running_mean", "running_var": "layer1.1.bn1.running_var" }, "shape": [ 64 ], "eps": 1e-05 }, "conv2": { "weight": "layer1.1.conv2.weight", "shape": [ 64, 64, 3, 3 ], "stride": 1, "padding": 1, "bias": null }, "bn2": { "tensors": { "weight": "layer1.1.bn2.weight", "bias": "layer1.1.bn2.bias", "running_mean": "layer1.1.bn2.running_mean", "running_var": "layer1.1.bn2.running_var" }, "shape": [ 64 ], "eps": 1e-05 }, "shortcut": null, "computes": "out = relu(bn2(conv2(relu(bn1(conv1(x))))) + s), s = the shortcut of x, or s = x when the shortcut is null" }, { "name": "layer2.0", "op": "basic_block", "in_channels": 64, "out_channels": 128, "stride": 2, "conv1": { "weight": "layer2.0.conv1.weight", "shape": [ 128, 64, 3, 3 ], "stride": 2, "padding": 1, "bias": null }, "bn1": { "tensors": { "weight": "layer2.0.bn1.weight", "bias": "layer2.0.bn1.bias", "running_mean": "layer2.0.bn1.running_mean", "running_var": "layer2.0.bn1.running_var" }, "shape": [ 128 ], "eps": 1e-05 }, "conv2": { "weight": "layer2.0.conv2.weight", "shape": [ 128, 128, 3, 3 ], "stride": 1, "padding": 1, "bias": null }, "bn2": { "tensors": { "weight": "layer2.0.bn2.weight", "bias": "layer2.0.bn2.bias", "running_mean": "layer2.0.bn2.running_mean", "running_var": "layer2.0.bn2.running_var" }, "shape": [ 128 ], "eps": 1e-05 }, "shortcut": { "conv": { "weight": "layer2.0.downsample.0.weight", "shape": [ 128, 64, 1, 1 ], "stride": 2, "padding": 0, "bias": null }, "bn": { "tensors": { "weight": "layer2.0.downsample.1.weight", "bias": "layer2.0.downsample.1.bias", "running_mean": "layer2.0.downsample.1.running_mean", "running_var": "layer2.0.downsample.1.running_var" }, "shape": [ 128 ], "eps": 1e-05 }, "computes": "s = bn(conv1x1(x)) with the block's stride" }, "computes": "out = relu(bn2(conv2(relu(bn1(conv1(x))))) + s), s = the shortcut of x, or s = x when the shortcut is null" }, { "name": "layer2.1", "op": "basic_block", "in_channels": 128, "out_channels": 128, "stride": 1, "conv1": { "weight": "layer2.1.conv1.weight", "shape": [ 128, 128, 3, 3 ], "stride": 1, "padding": 1, "bias": null }, "bn1": { "tensors": { "weight": "layer2.1.bn1.weight", "bias": "layer2.1.bn1.bias", "running_mean": "layer2.1.bn1.running_mean", "running_var": "layer2.1.bn1.running_var" }, "shape": [ 128 ], "eps": 1e-05 }, "conv2": { "weight": "layer2.1.conv2.weight", "shape": [ 128, 128, 3, 3 ], "stride": 1, "padding": 1, "bias": null }, "bn2": { "tensors": { "weight": "layer2.1.bn2.weight", "bias": "layer2.1.bn2.bias", "running_mean": "layer2.1.bn2.running_mean", "running_var": "layer2.1.bn2.running_var" }, "shape": [ 128 ], "eps": 1e-05 }, "shortcut": null, "computes": "out = relu(bn2(conv2(relu(bn1(conv1(x))))) + s), s = the shortcut of x, or s = x when the shortcut is null" }, { "name": "layer3.0", "op": "basic_block", "in_channels": 128, "out_channels": 256, "stride": 2, "conv1": { "weight": "layer3.0.conv1.weight", "shape": [ 256, 128, 3, 3 ], "stride": 2, "padding": 1, "bias": null }, "bn1": { "tensors": { "weight": "layer3.0.bn1.weight", "bias": "layer3.0.bn1.bias", "running_mean": "layer3.0.bn1.running_mean", "running_var": "layer3.0.bn1.running_var" }, "shape": [ 256 ], "eps": 1e-05 }, "conv2": { "weight": "layer3.0.conv2.weight", "shape": [ 256, 256, 3, 3 ], "stride": 1, "padding": 1, "bias": null }, "bn2": { "tensors": { "weight": "layer3.0.bn2.weight", "bias": "layer3.0.bn2.bias", "running_mean": "layer3.0.bn2.running_mean", "running_var": "layer3.0.bn2.running_var" }, "shape": [ 256 ], "eps": 1e-05 }, "shortcut": { "conv": { "weight": "layer3.0.downsample.0.weight", "shape": [ 256, 128, 1, 1 ], "stride": 2, "padding": 0, "bias": null }, "bn": { "tensors": { "weight": "layer3.0.downsample.1.weight", "bias": "layer3.0.downsample.1.bias", "running_mean": "layer3.0.downsample.1.running_mean", "running_var": "layer3.0.downsample.1.running_var" }, "shape": [ 256 ], "eps": 1e-05 }, "computes": "s = bn(conv1x1(x)) with the block's stride" }, "computes": "out = relu(bn2(conv2(relu(bn1(conv1(x))))) + s), s = the shortcut of x, or s = x when the shortcut is null" }, { "name": "layer3.1", "op": "basic_block", "in_channels": 256, "out_channels": 256, "stride": 1, "conv1": { "weight": "layer3.1.conv1.weight", "shape": [ 256, 256, 3, 3 ], "stride": 1, "padding": 1, "bias": null }, "bn1": { "tensors": { "weight": "layer3.1.bn1.weight", "bias": "layer3.1.bn1.bias", "running_mean": "layer3.1.bn1.running_mean", "running_var": "layer3.1.bn1.running_var" }, "shape": [ 256 ], "eps": 1e-05 }, "conv2": { "weight": "layer3.1.conv2.weight", "shape": [ 256, 256, 3, 3 ], "stride": 1, "padding": 1, "bias": null }, "bn2": { "tensors": { "weight": "layer3.1.bn2.weight", "bias": "layer3.1.bn2.bias", "running_mean": "layer3.1.bn2.running_mean", "running_var": "layer3.1.bn2.running_var" }, "shape": [ 256 ], "eps": 1e-05 }, "shortcut": null, "computes": "out = relu(bn2(conv2(relu(bn1(conv1(x))))) + s), s = the shortcut of x, or s = x when the shortcut is null" }, { "name": "layer4.0", "op": "basic_block", "in_channels": 256, "out_channels": 512, "stride": 2, "conv1": { "weight": "layer4.0.conv1.weight", "shape": [ 512, 256, 3, 3 ], "stride": 2, "padding": 1, "bias": null }, "bn1": { "tensors": { "weight": "layer4.0.bn1.weight", "bias": "layer4.0.bn1.bias", "running_mean": "layer4.0.bn1.running_mean", "running_var": "layer4.0.bn1.running_var" }, "shape": [ 512 ], "eps": 1e-05 }, "conv2": { "weight": "layer4.0.conv2.weight", "shape": [ 512, 512, 3, 3 ], "stride": 1, "padding": 1, "bias": null }, "bn2": { "tensors": { "weight": "layer4.0.bn2.weight", "bias": "layer4.0.bn2.bias", "running_mean": "layer4.0.bn2.running_mean", "running_var": "layer4.0.bn2.running_var" }, "shape": [ 512 ], "eps": 1e-05 }, "shortcut": { "conv": { "weight": "layer4.0.downsample.0.weight", "shape": [ 512, 256, 1, 1 ], "stride": 2, "padding": 0, "bias": null }, "bn": { "tensors": { "weight": "layer4.0.downsample.1.weight", "bias": "layer4.0.downsample.1.bias", "running_mean": "layer4.0.downsample.1.running_mean", "running_var": "layer4.0.downsample.1.running_var" }, "shape": [ 512 ], "eps": 1e-05 }, "computes": "s = bn(conv1x1(x)) with the block's stride" }, "computes": "out = relu(bn2(conv2(relu(bn1(conv1(x))))) + s), s = the shortcut of x, or s = x when the shortcut is null" }, { "name": "layer4.1", "op": "basic_block", "in_channels": 512, "out_channels": 512, "stride": 1, "conv1": { "weight": "layer4.1.conv1.weight", "shape": [ 512, 512, 3, 3 ], "stride": 1, "padding": 1, "bias": null }, "bn1": { "tensors": { "weight": "layer4.1.bn1.weight", "bias": "layer4.1.bn1.bias", "running_mean": "layer4.1.bn1.running_mean", "running_var": "layer4.1.bn1.running_var" }, "shape": [ 512 ], "eps": 1e-05 }, "conv2": { "weight": "layer4.1.conv2.weight", "shape": [ 512, 512, 3, 3 ], "stride": 1, "padding": 1, "bias": null }, "bn2": { "tensors": { "weight": "layer4.1.bn2.weight", "bias": "layer4.1.bn2.bias", "running_mean": "layer4.1.bn2.running_mean", "running_var": "layer4.1.bn2.running_var" }, "shape": [ 512 ], "eps": 1e-05 }, "shortcut": null, "computes": "out = relu(bn2(conv2(relu(bn1(conv1(x))))) + s), s = the shortcut of x, or s = x when the shortcut is null" }, { "name": "pool", "op": "global_avg_pool", "computes": "features = mean of h over H and W, [N, 512]" }, { "name": "fc", "op": "linear", "weight": "fc.weight", "bias": "fc.bias", "shape": [ 10, 512 ], "computes": "logits = f @ weight.T + bias" } ], "output": "logits [N, n_classes]; the prediction is the argmax", "reference_forward": "forward.py: forward(params, x_uint8 [N, 3, 32, 32]) -> float32 logits [N, n_classes]" }
{
"schema": "wrsi.model_spec.resnet18_up.v1",
"model_id": "m9c252a44",
"arch": "resnet18_up",
"input": {
"kind": "images",
"shape": [
3,
32,
32
],
"dtype": "uint8",
"layout": "NCHW"
},
"input_shape": [
3,
32,
32
],
"preprocessing": {
"mean": [
0.485,
0.456,
0.406
],
"std": [
0.229,
0.224,
0.225
],
"resize": [
128,
128
],
"computes": "x / 255, then per channel (x - mean[c]) / std[c], then bilinear upsampling to 128 x 128 (the upsample layer)"
},
"classes": [
"airplane",
"automobile",
"bird",
"cat",
"deer",
"dog",
"frog",
"horse",
"ship",
"truck"
],
"n_classes": 10,
"parameter_layout": "PyTorch: conv weight [out, in, kh, kw]; BatchNorm weight, bias, running_mean, running_var [channels]; head weight [n_classes, 512] and bias [n_classes]; all float32",
"n_parameters": 11191242,
"tensors": {
"conv1.weight": [
64,
3,
7,
7
],
"bn1.weight": [
64
],
"bn1.bias": [
64
],
"bn1.running_mean": [
64
],
"bn1.running_var": [
64
],
"layer1.0.conv1.weight": [
64,
64,
3,
3
],
"layer1.0.bn1.weight": [
64
],
"layer1.0.bn1.bias": [
64
],
"layer1.0.bn1.running_mean": [
64
],
"layer1.0.bn1.running_var": [
64
],
"layer1.0.conv2.weight": [
64,
64,
3,
3
],
"layer1.0.bn2.weight": [
64
],
"layer1.0.bn2.bias": [
64
],