def Cfg.size

bend-ml-llama@0.2.1.0 · main.bend:193

import bend-ml-llama@0.2.1.0/main.bend as BendMlLlama
import 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)

Uses (9)

Used by (3)