Safetensors Viewer

Open a .safetensors model file to inspect tensor names, shapes, data types and metadata. Only the file header is read in your browser.

Drop a .safetensors file here
Inspect the file header without loading the model weights.

Your file stays in your browser.

Inspect a Safetensors model file

Open or drop a local .safetensors file to see which tensors it contains. You can inspect a checkpoint, a LoRA adapter, or one shard of a split model. Use the sample file to try the viewer first. Your browser reads the length prefix and JSON header, so it can inspect a multi-gigabyte file without loading or uploading the model weights.

Find tensor names, shapes, and data types

Search for a layer or parameter name, such as encoder or weight. Each row shows the declared shape, data type, and number of bytes occupied by that tensor. For example, [768, 768] describes a matrix, F16 means 16-bit floating point, and BF16 means bfloat16. Use these fields to compare layers or check whether a checkpoint has the tensor names and dimensions you expected.

Read metadata from checkpoints and LoRA adapters

Safetensors can store custom string fields in the file header. Depending on the exporter, these fields may record the training settings, the library that wrote the file, or the format of the weights. Copy the metadata as JSON to save it alongside your notes. Open each shard separately to see its own tensors and fields.

Show more related tools