Glossary
Neural network
A model built from layers of simple connected units; the strength of each connection, its weight, is learned from data. A model file is mostly those weights.
Some model file formats can carry code as well as weights: a pickle file runs code when it is loaded, which is why safetensors is the safer format to accept.