def Cfg.size
import bend-ml-llama@0.2.1.0/main.bend as BendMlLlamaimport Base
193# the numbers of the model, from the shapes of Model<c>: the embedding (vocab × dim), the layers, the final norm
194def Cfg.size(+c: Cfg) -> U32:
195 (n32(Cfg.vocab(c)) * n32(Cfg.dim(c)) + n32(Cfg.layers(c)) * Cfg.layer_size(c) + n32(Cfg.dim(c)) : U32)