
- Monthly visits
- 3,287,861
- 2026-09
- Monthly growth -8.1%
weightlens - Inspect ML checkpoint weights one tensor at a time
weightlens is a Python package and command-line tool for analyzing machine-learning checkpoint weights. It processes tensors individually and reports inspection coverage, dead layers, extreme values, variance, and statistical anomalies. It supports PyTorch, safetensors, and DCP checkpoints, with remote S3 and GCS byte-range reads for safetensors.
- LLM Developer Tools
- LLM Evaluation
- LLM Observability
- ML checkpoint analysis
- PyTorch weight inspection
- safetensors statistics


Capabilities
Checkpoint weight analysis
Analyze machine-learning checkpoint weights and report statistics and findings. Reads PyTorch, safetensors, and DCP checkpoints, processing tensors individually; DCP support is experimental.
Weight anomaly diagnostics
Identify dead layers, NaN floods, extreme spikes, and exploding variance, with an optional experimental abnormal-norm warning. Uses configurable diagnostic cutoffs, which are starting values rather than model-health guarantees.
Remote safetensors reading
Read safetensors from S3 or GCS using byte-range requests, fetching tensor bytes without downloading the whole file. Requires the remote extra and existing AWS or GCS credentials.
Inspection coverage reporting
Report eligible tensors analyzed, skipped tensors, exclusions, and reasons for partial inspection. Global statistics cover analyzed tensors only, and empty tensors are reported as skipped.
Pricing
weightlens is available as a Python package; the supplied pages do not state a price or paid billing plan. Compare the supported checkpoint formats and installation extras for remote storage.
Use cases
Inspect a machine-learning checkpoint
When checking a model checkpoint, run the weightlens command on a supported local checkpoint to review tensor coverage, global statistics, and diagnostic findings in its report.
Analyze remote safetensors checkpoints
When a safetensors checkpoint is stored in S3 or GCS, use its URI with weightlens and existing cloud credentials to read tensor data through byte-range requests rather than downloading the full file.
Investigate incomplete checkpoint analysis
When a report marks an inspection as partial, review the named skipped tensors and reasons, then interpret global statistics as covering only analyzed tensors; intentional exclusions are listed separately.
Limitations
DCP support is experimental; tensors that cannot be inspected are reported as skipped with a reason.
Some checkpoint formats allocate a complete tensor during loading or conversion, so memory use depends on the source format and largest tensor.
Remote downloads are capped at 50 GB; PyTorch remote files download to a local cache, while safetensors use byte-range reads when the server supports Range headers.
An empty tensor is reported as skipped with a warning; if every tensor is empty, inspection stops with exit code 1.
Default diagnostic cutoffs are starting values, not calibrated model-health guarantees; the abnormal-norm warning is experimental and opt-in.
Who it is for
Machine-learning model developers inspecting checkpoint weights
ML infrastructure engineers handling large or remote model checkpoints
FAQ
Which checkpoint formats can weightlens analyze?
It analyzes PyTorch .pth and .pt files, safetensors files and shards, and DCP directories. DCP support is experimental, and tensors it cannot inspect are reported as skipped with reasons.
Can weightlens analyze checkpoints stored remotely?
Yes. Safetensors in S3 or GCS can be read using byte-range requests and existing AWS or GCS credentials. PyTorch remote files download to a local cache first; safetensors byte-range reading depends on server Range support.
What does a partial inspection mean?
PARTIAL means an eligible tensor was skipped. The report names skipped tensors and reasons, and global statistics cover only analyzed tensors; intentional exclusions are listed separately.
Do findings or no findings establish model quality?
No. Diagnostic cutoffs are starting values, not calibrated model-health guarantees, and NO FINDINGS means no active rule crossed its cutoff. A completed analysis returns exit code 0 even when findings are reported.
What Python version is required?
Python 3.11 or later is required. Install the package with pip; the remote, s3, and gcs extras provide the documented remote-storage options.
Comments