nirw4nna
Right now it works on both CPU and GPU (both AMD and NVIDIA) and is capable of running LLMs like Qwen, I'm currently implementing a native profiler to trace CPU and GPU kernels and then I'll work on speed. Goal is to be competitive with PyTorch eager by the end of the year.
Source code: https://github.com/nirw4nna/dsc
My original HN post: https://news.ycombinator.com/item?id=44310678
Show HN: I built a tensor library from scratch in C++/CUDA
https://github.com/nirw4nna/dsc
Hi HN,Over the past few months, I've been building `dsc`, a tensor library from scratch in C++/CUDA. My main focus has been on getting the basics right, prioritizing a clean API, simplicity, and clear observability for running small LLMs locally.The key features are: - C++ core with CUDA support written from scratch. - A familiar, PyTorch-like Python API. - Runs real models: it's complete...