3 ms·
Check out this port of microgpt to C, posted 5 months ago. It got a 2500x speedup over the python version. https://github.com/moebiusV/cugpt https://github.co
by MycroftJones 2mo ago
Check out this port of microgpt to C, posted 5 months ago. It got a 2500x speedup over the python version. https://github.com/moebiusV/cugpt https://github.com/moebiusV/cugpt
- pjmlp 2mo agoOf course, an interpreted language implementation, versus a compiled language designed to port UNIX. Even if counting that it is basically calling into C or C++ libraries, there is lots of boilerplate that the CPU has to consume, that just won't happen on the pure C implementation.
- fulafel 2mo agoIn the README, the C version gets "452× faster than Python", the 2500x one is using OpenBLAS which uses lower level things than what's in C[1]. [1] see eg https://github.com/OpenMathLib/OpenBLAS/tree/develop/kernel/x86_64 https://github.com/OpenMathLib/OpenBLAS/tree/develop/kernel/...