Sample .pt (PyTorch PT) Test Files & Edge Cases
Deterministic PyTorch Model & Tensor Checkpoint fixtures engineered for automated unit tests, parser fuzzing, and upload validation pipelines. Pull directly in GitHub Actions with immutable SHA-256 verification.
minimal-checkpoint.pt
Real torch.save state dict (2 tensors) — loads cleanly via torch.load(weights_only=True).
curl -fsSL https://fileformat.co/fixtures/v1/pt/minimal-checkpoint.pt -o minimal-checkpoint.pt \
&& echo "64f990b860de211afe49a1c8c9627cf4da92d75f69a29a2cb85c06927c62720c minimal-checkpoint.pt" | shasum -a 256 -ctransformer-state-dict.pt
Real torch.save transformer weight dict with q_proj/v_proj/down_proj tensors.
curl -fsSL https://fileformat.co/fixtures/v1/pt/transformer-state-dict.pt -o transformer-state-dict.pt \
&& echo "b927171a147cb843af3458e867b7972bca05a77969fd0d47f01f62fd32ef3c27 transformer-state-dict.pt" | shasum -a 256 -cbenign-pickle-canary.pt
Real torch.save archive containing an inert FILEFORMAT_CO_BENIGN_TEST_MARKER string — still loads with weights_only=True.
curl -fsSL https://fileformat.co/fixtures/v1/pt/benign-pickle-canary.pt -o benign-pickle-canary.pt \
&& echo "06de6e85a3acdeaf03bfb30aac49b6d7e697bf8d63d6c6f7882228a5bde0dff7 benign-pickle-canary.pt" | shasum -a 256 -cIn-Browser Edge-Case & Malformed Fixture Mutator
Need negative test fixtures for parser fuzzing or upload gateway validation? Mutate minimal-checkpoint.pt directly in your browser without hosting unsafe payloads on public URLs.
Tests graceful EOF / footer corruption handling without process panic or OOM.