TRiP: an engine for transformer inference and training in plain C (15k lines, few files). Gemma1(.1), Llama2, PaliGemma1, GPT2
This story is from 2026-08-23. It is preserved in the archive; the latest stories are on the live feed.
I made it in 18 months of lunch breaks and evenings. It's not fast, llama.cpp is just wow and does that job. I wrote this one because I wanted to read the whole forward/backward pass in an afternoon and be able to stop anywhere and print a tensor and dig the thing. Most from-scratch projects stop a…
Read the full story at r/huggingface ↗
Timeline · 1 report
- 2026-08-23 15:29 · r/huggingface
TRiP: an engine for transformer inference and training in plain C (15k lines, few files). Gemma1(.1), Llama2, PaliGemma1, GPT2