ML::GGUF::MetalBackend
Inherits ML::GGUF::ComputeBackend / Reference / Object
Constants
MM_BATCH_THRESHOLD = 8
MM_NR0 = 64
MM_NR1 = 32
MM_SHMEM = 16384
SIMD_N_ROWS = 2
SIMD_NR0 = 2
Constructors
new
SourceInstance methods
Dot product for attention scores
init_workspace(max_seq : Int32, dim : Int32, ffn_dim : Int32, n_heads : Int32, head_dim : Int32, n_experts_used : Int32, rope_cos : Array(Float32), rope_sin : Array(Float32))
Sourcelayer_norm!(x : Array(Float32), n_pos : Int32, dim : Int32, w : Array(Float32), b : Array(Float32)) : Nil
In-place layer norm
ComputeBackend interface fallbacks
In-place softmax over a row