Skip to content

Glossary: Transformers Basics

weights_only

Also written: weights_only=True

A `torch.load` option that accepts only tensors and plain Python values, so loading a checkpoint can't run malicious code.

Where the book teaches it

Related terms

Checkpoint