Skip to content

Commit 0bf7818

Browse files
committed
docs: upstream building slowtorch doc to remote
Signed-off-by: Akshay Mestry <[email protected]>
1 parent c201d14 commit 0bf7818

File tree

2 files changed

+74
-10
lines changed

2 files changed

+74
-10
lines changed

docs/source/index.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. Author: Akshay Mestry <[email protected]>
22
.. Created on: Saturday, February 22, 2025
3-
.. Last updated on: Friday, April 18 2025
3+
.. Last updated on: Sunday, April 20 2025
44
55
:orphan:
66
:og:title: Studying, Mentorship, And Resourceful Teaching
@@ -26,16 +26,16 @@ My Studying, Mentorship, And Resourceful Teaching Journey
2626
.. rst-class:: lead
2727

2828
Harnessing Studying, Mentorship, And Resourceful Teaching to drive
29-
innovation |dash| now that's SMART!
29+
innovation. Okay... now that's SMART!
3030

3131
Hello hello!
3232

33-
I'm **Akshay** (/uh-k-ʃ-æ/), an AI Engineer, student researcher, and an
34-
educator dedicated to the intersection of technology and learning. This corner
35-
of the internet serves both as a digital portfolio, showcasing my work, and a
36-
space where I share my learning and teaching experiences in the fields of
37-
Artificial Intelligence, Software Development, Scientific Computing, and Open
38-
Science.
33+
I'm **Akshay** (/uh-k-ʃ-æ/), an Adjunct Professor at National Louis University,
34+
AI Engineer, and open-source contributor dedicated to the intersection of
35+
technology and learning. This corner of the internet serves both as a digital
36+
portfolio, showcasing my work, and a space where I share my learning and
37+
teaching experiences in the fields of Artificial Intelligence, Software
38+
Development, Scientific Computing, and Open Science.
3939

4040
Whilst most of my work revolves around building tools that push the boundaries
4141
of technology while keeping accessibility in mind, I've a special interest in
@@ -44,7 +44,7 @@ which I've explored through my personal projects. I'm also committed to
4444
contributing to the `NASA Open Science`_ mission, promoting transparent,
4545
reproducible, and inclusive research.
4646

47-
With Open science, I often do Open Source |dash| which to me, is more than a
47+
With Open science, I often do Open Source. For me, it is more than a
4848
philosophy. It's my personal reminder to make my learnings, experiences, and
4949
knowledge free and accessible, breaking down the cultural and digital barriers
5050
and inviting collaboration across disciplines and borders.
@@ -65,7 +65,8 @@ education. Some key highlights of my projects include:
6565
researchers alike. These were created as educational tools for scientific
6666
computing.
6767

68-
Read more about my journey of :doc:`building xsNumPy <projects/xsnumpy>`.
68+
Read more about my journey of :doc:`building xsNumPy <projects/xsnumpy>` and
69+
:doc:`SlowTorch <projects/slowtorch>` |chvrn|
6970

7071
- **Reinforcement Learning.** An AI-driven Snake game including the environment
7172
built in `Pygame`_, featuring a modular agent and optimised reinforcement
@@ -146,6 +147,7 @@ sharing ideas, and helping others grow alongside me.
146147
:hidden:
147148

148149
projects/xsnumpy
150+
projects/slowtorch
149151

150152
.. toctree::
151153
:caption: Teaching

docs/source/projects/slowtorch.rst

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
.. Author: Akshay Mestry <[email protected]>
2+
.. Created on: Friday, April 18 2025
3+
.. Last updated on: Saturday, April 19 2025
4+
5+
:og:title: Slow Burning Torch
6+
:og:description: PyTorch taught me how to build while SlowTorch taught me how
7+
it's built.
8+
:og:type: article
9+
10+
.. _project-slow-burning-torch:
11+
12+
===============================================================================
13+
Slow Burning Torch
14+
===============================================================================
15+
16+
.. author::
17+
:name: Akshay Mestry
18+
19+
:about: National Louis University
20+
:avatar: https://avatars.githubusercontent.com/u/90549089?v=4
21+
:github: https://github.com/xames3
22+
:linkedin: https://linkedin.com/in/xames3
23+
:timestamp: Apr 18, 2025
24+
25+
.. rst-class:: lead
26+
27+
Speed is for production, serving machines while slowness is for humans,
28+
for understanding
29+
30+
So, it all started on a quiet afternoon in early January of 2025, just after I
31+
wrapped up :doc:`xsNumPy <./xsnumpy>`. I was still basking in the glow of
32+
having finally built `NumPy`_ (at least a fraction of it) from scratch to
33+
demystify how array operations worked. It was a project born out of curiosity.
34+
I didn't want performance, nor did I care. I just wanted to understand. And as
35+
I was pushing the final commit to the repository, I felt two things very
36+
clearly:
37+
38+
- Relief, because rewriting |xp.ndarray|_ and debugging the broadcasting logic
39+
from first principles is as mentally taxing as it is rewarding
40+
- Restlessness, because once you've peeled back the curtain on one big library,
41+
you start seeing others in a whole new light
42+
43+
Rewriting NumPy had shown me the power of writing slow code to understand fast
44+
abstractions. Now, I wanted to take that same approach to something I'd been
45+
using for over half a decade, `PyTorch`_.
46+
47+
.. _rewriting-pytorch-badly-on-purpose:
48+
49+
-------------------------------------------------------------------------------
50+
Rewriting PyTorch Badly, On Purpose
51+
-------------------------------------------------------------------------------
52+
53+
Now, I've been working with PyTorch since 2018, back when
54+
:py:class:`torch.nn.Sequential` felt like magic and
55+
:py:meth:`torch.Tensor.backward` method seemed to compute gradients by
56+
sorcery.
57+
58+
.. _NumPy: https://numpy.org/
59+
.. |xp.ndarray| replace:: ``xsnumpy.ndarray``
60+
.. _xp.ndarray: https://github.com/xames3/xsnumpy/blob/
61+
69c302ccdd594f1d8f0c51dbe16346232c39047f/xsnumpy/_core.py#L183
62+
.. _PyTorch: https://pytorch.org/

0 commit comments

Comments
 (0)