Vesuvius 814 / 841 / 9B — Studio thin15-w96 (15% thinner labels, 96 px window), epoch 5
Recommended inference: 96×96 model windows, central 64×64 output, Hann blending at stride 32 (the default of the
included inference.py).
Private research model, trained from random initialization on 2026-10-11 with the Studio recipe and three changes aimed at thinner, better separated strokes:
| Studio (2026-09-26) | thin15-w96 (this model) | |
|---|---|---|
| Training labels | Donor Studio sparse ink / background labels | the same labels with ink strokes 15% thinner (local stroke width; removed edges become background) |
| Model input window | 128 × 128 px | 96 × 96 px |
| Loss region | central 96 px | central 64 px |
| Length | 9 of 10 planned epochs (74,250 updates) | 5 of 5 epochs (41,250 updates; learning-rate schedule spans the 5 epochs) |
Everything else is the Studio recipe: the unchanged 223,355,921-parameter DeepResidualUNet(deeper=False), the same
424,425 training entries from PHerc0814, PHerc0841 and PHerc0009B, holdout and exclusions, sampler and seeds,
augmentation, effective batch 64, BF16 + torch.compile, fused AdamW at peak learning rate 2e-4 with cosine decay,
and the masked 0.5 BCE + 0.5 Dice loss (unknown pixels excluded). No PHerc0211, Scroll 1 or pretrained data is used.
Trained on one NVIDIA H100 PCIe in 11.6 h.
Checkpoint and validation
model.safetensors is the final (epoch-5) model, every tensor checked for exact equality with the training
checkpoint (training/weights.json). model-config.json holds the configuration, per-epoch
validation and checksums; training-result.json the run summary.
| Epoch | Holdout AP | Holdout ROC-AUC | Holdout loss | AP on thinned holdout labels |
|---|---|---|---|---|
| 1 | 0.704 | 0.827 | 0.567 | 0.635 |
| 2 | 0.731 | 0.815 | 0.720 | 0.678 |
| 3 | 0.732 | 0.820 | 0.548 | 0.676 |
| 4 | 0.757 | 0.823 | 0.630 | 0.708 |
| 5 | 0.768 | 0.833 | 0.649 | 0.718 |
The fixed 841-expanded-layer-03-approved-r000001 holdout (1,334 windows; AP / ROC-AUC on the central 32 px, 15,791 ink
and 29,558 background pixels — the same pixels as the Studio model's metrics, which were AP 0.766 / ROC-AUC 0.830 at its
epoch 9). Holdout loss is on the central 64 px and is not comparable with Studio's 96 px loss. Training uses the
thinned labels; the holdout is scored on its original labels and, in the last column, on its thinned labels.
Scored over the whole holdout region with Hann-blended tiling (holdout-epoch-5.png): AP 0.775 (Studio epoch 9:
0.794); mean probability on background 0.140 (0.137) and on the thinned-away stroke edges 0.414 (0.444).
These sparse metrics cover one held-out region; they do not establish generalization to other scrolls or calibrated
probabilities.


Full training stack (private)
- Code — label thinning, training, inference, verification; the parent Studio data preparation and CT rendering:
GitHub
priyankaranke/vesuvius-814-841-9b-studio-thin15-w96-training - Data — per-dataset plans, original and thinned labels, native CT training tiles (8,340 tiles), run records, the
resumable end-of-run checkpoint (
resume.pt: model, optimizer, RNG states), per-epoch weights, CT re-render inputs: HF datasetparanke/vesuvius-814-841-9b-studio-thin15-w96-training-data
Download and inference
Authenticate with a Hugging Face account that has access to this private repository. Install a suitable PyTorch build, then:
hf auth login
hf download paranke/vesuvius-814-841-9b-resunet-studio-thin15-w96-20261011 --local-dir studio-thin15-w96
cd studio-thin15-w96
python -m pip install -r requirements.txt
python inference.py --input surface_16planes_uint8.npy --output ink_probability.npy --checkpoint model.safetensors --device cuda
Supply a .npy array of shape [16,H,W], dtype uint8, with consecutive surface-normal CT planes in the
verified model depth order (the Studio contract: approximately 9 µm pitch, physical mapping, normal sign and depth
order as recorded in the training data). Input preprocessing is clip(raw,0,200)/255. The helper runs 96×96
windows, keeps the central 64×64 px of each and blends overlapping windows with a 2D Hann weight at stride 32, so every
pixel comes from 2×2 windows; --stride 64 --blend none gives plain non-overlapping tiling (4× fewer windows; shows
per-window seams). Output is float32 [H,W] sigmoid ink probability. Use --amp fp32 where BF16 is unsupported. For
direct integration, instantiate model.DeepResidualUNet(deeper=False), load the safetensors state dict with
strict=True, and pass preprocessed [N,1,16,96,96] tensors. Pipelines built for the Studio model's 128 px windows must
change their window size: this model was trained on 96 px windows only.
Training files
training/ holds the run's train.py, sparse_data.py, thin_labels.py, config.json, thin15-labels.json
(per-dataset thinning statistics and SHA-256 of every thinned label file) and weights.json; the complete,
runnable stack is in the GitHub repository above.