Viewing profile — nirw4nna
nirw4nna
HN member- Joined
- Wed, Jun 18, 2025, 1:47 PM UTC
- HN karma
- 56
- Public activity
- 13 items
- HN profile
- View on Hacker News ↗
About nirw4nna
Recent public activity
-
comment
Comment #45566296
I'm currently chipping away at DSC, a tensor library I wrote from scratch to play with large language models. Last week I re-wrote flash attention from scratch in CUDA and was able…
- story
-
comment
Comment #44704901
I'm currently working on DSC, a tensor library I wrote from scratch in C++ with a PyTorch-like API. Right now it works on both CPU and GPU (both AMD and NVIDIA) and is capable of r…
-
comment
Comment #44315993
Because I happen to know C++ and I just wanted to build something rather than learn a new language. Zig looks very interesting though, there are already other projects in this spac…
-
comment
Comment #44315937
You just need a foundation of C/C++. If you already have that then just start programming, it's way better than reading books/guides/blogs (at least until you're stuck!). Also, you…
-
comment
Comment #44315905
Yes! This was actually one of my initial goals! I actually like to work in a C-style-C++ let's say where I turn off C++ features I don't need and just use the one I actually need l…
-
comment
Comment #44315873
Thanks for pointing this out! I'll definitely have to investigate other approaches. nanobind looks interesting but I don't need to expose complex C++ objects, I just need the 'fast…
-
comment
Comment #44313774
I developed this on an HP Omen 15 with an i7-8750H, a GTX 1050TI and 32GB or RAM with Linux Mint as my OS.
-
comment
Comment #44313757
Right now I can load tensors directly from a safetensors file or from a NumPy array so I don't really have in mind to add my own custom format but I do plan to support GGUF files.
-
comment
Comment #44313724
You are absolutely correct! I started working on a sort of compiler a while back but decided to get the basics down first. The templates and switch(s) are not really the issue but …
-
comment
Comment #44313673
Thanks! To be honest, it started purely as a learning project. I was really inspired when llama.cpp first came out and tried to build something similar in pure C++ ( https://github…
-
comment
Comment #44313545
Yes, when I designed the API I wanted to keep a clear distinction between Python and C. At some point I had two APIs: 1 in Python and the other in high-level C++ and they both shar…
-
story
Show HN: I built a tensor library from scratch in C++/CUDA
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, …