Re:Show HN: FemtoGPT – Pure Rust implementation of a GPT lan...
by quickthrower2 on Monday June 05, 2023 @07:00PM
(#36205449)
Well done! I would be crazy if I dived into this having never studied Rust! But it looks very interesting so I might do that! I have almost finished AK’s lecture. Have you made the matmul faster yet? That would seem a priority?
Re:Show HN: FemtoGPT – Pure Rust implementation of a GPT lan...
by keyvank on Monday June 05, 2023 @07:04PM
(#36205495)
Hey! Yes please dive in :) It can be a starting point for learning Rust ;)
MatMul is fine, the bottleneck is LayerNorm + Softmax gradients right now. Haven't been able to optimize them well yet.
i7-13700H, 2400 Mhz, 14 Core(s), 20 Logical Processor(s). It is using 12 CPUs which is good. And 160Mb memory.