Loading...
CONCEPT

Tensors

Learn what a tensor is, how its numbers are laid out, and how a safetensors file stores them.

avatar
yeswanth
Concept Author
3 min reading time

A tensor is a list of numbers with a shape. The shape says how to read the list as rows and columns.

A model like GPT-2 is a file of tensors, 160 of them. In this concept, you'll learn how a tensor's numbers are laid out, and how a safetensors file stores them.