ZERO-UPLOAD SANDBOX
.safetensors QA Fixtures AI & Model Weights CC0 Public Domain · CI/CD Safe

Sample .safetensors (SafeTensors) Test Files & Edge Cases

Deterministic SafeTensors Zero-Copy Model Weights fixtures engineered for automated unit tests, parser fuzzing, and upload validation pipelines. Pull directly in GitHub Actions with immutable SHA-256 verification.

minimalexpect: valid

minimal-bf16.safetensors

Real safetensors.torch output with __metadata__ and 3 tensors across BF16, F16, and F32 dtypes.

↓ Download (432 B)
SHA-256: 0d9894b505b77ec0d719fa112eead1695c8a2be9e1820c81267dfe1a64a2214b
Exact: 432 bytes
curl -fsSL https://fileformat.co/fixtures/v1/safetensors/minimal-bf16.safetensors -o minimal-bf16.safetensors \
  && echo "0d9894b505b77ec0d719fa112eead1695c8a2be9e1820c81267dfe1a64a2214b  minimal-bf16.safetensors" | shasum -a 256 -c
realisticexpect: valid

weights-bf16.safetensors

Multi-layer transformer weight shard written by safetensors.torch with exact contiguous data_offsets.

↓ Download (3.5 KB)
SHA-256: 7594cbd039f2978e74012d1e761368a7d18f2f6efe6038e11a869f6d1c5a6b7f
Exact: 3,560 bytes
curl -fsSL https://fileformat.co/fixtures/v1/safetensors/weights-bf16.safetensors -o weights-bf16.safetensors \
  && echo "7594cbd039f2978e74012d1e761368a7d18f2f6efe6038e11a869f6d1c5a6b7f  weights-bf16.safetensors" | shasum -a 256 -c
edge-caseUnaligned + Truncated EOFexpect: parser_error

unaligned-truncated.safetensors

Negative fixture with non-zero starting data_offsets [3, 8195] and truncated 24-byte body — safetensors must raise.

↓ Download (138 B)
SHA-256: 70d504e4e3dc7cc38bf0d72fe83b78badaf96f16be32402100c1450a9bb2e004
Exact: 138 bytes
curl -fsSL https://fileformat.co/fixtures/v1/safetensors/unaligned-truncated.safetensors -o unaligned-truncated.safetensors \
  && echo "70d504e4e3dc7cc38bf0d72fe83b78badaf96f16be32402100c1450a9bb2e004  unaligned-truncated.safetensors" | shasum -a 256 -c
Safe-by-Design Client-Side Synthesizer

In-Browser Edge-Case & Malformed Fixture Mutator

Zero Upload · Generated in RAM

Need negative test fixtures for parser fuzzing or upload gateway validation? Mutate minimal-bf16.safetensors directly in your browser without hosting unsafe payloads on public URLs.

Default Fixture: minimal-bf16.safetensors

Tests graceful EOF / footer corruption handling without process panic or OOM.