MCPcopy Create free account
hub / github.com/AnswerDotAI/gpu.cpp / Transformer

Class Transformer

experimental/legacy/transformer/run.cpp:92–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90)";
91
92struct Transformer {
93 Tensor qkv; // modelDim * 3 * qkvDim
94 Tensor rmsNormPre; // modelDim
95 Tensor rmsNormPost; // modelDim
96 Tensor out; // 3 * qkvDim * modelDim
97 Tensor mlp1; // modelDim * (2 * hidden_width * modelDim)
98 Tensor mlp2; // modelDim * (2 * hidden_width * modelDim)
99};
100
101struct Activations {
102 Tensor qkv; // batchSize * 3 * nHeads * qkvDim

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected