How rakeshvarma007/wowml works
WowML is a work-in-progress Python ML library backed by a custom C tensor kernel. Its intended workflow is to create and operate on tensors, build neural-network computations, differentiate them, and update parameters with an optimizer; data loading and linear algebra are additional capabilities. The Python tensor and autograd engine are explicitly incomplete, and the bindings are only a loader, so several workflow links are documented or tentative rather than verified calls.
Main entry points: tensor.py Python Tensor · memory.c C memory allocator · nn Layers and losses · tensor.c C tensor lifecycle
Components 20
Tensor kernel
- C tensor lifecycle
csrc/src/tensor.c - C memory allocator
csrc/src/memory.c - Dtype definitions
csrc/src/dtype.c - Tensor operations
csrc/src/ops.c - Matrix multiplication
csrc/src/matmul.c - C linear algebra
csrc/src/linalg.c
Python core
- Python Tensor
wowml/tensor.py - C bindings loader
wowml/_C/_bindings.py - Autograd functions
wowml/autograd/function.py - Gradient engine
wowml/autograd/engine.py - Serialization
wowml/utils/serialization.py
ML workflow
- Module framework
wowml/nn/module.py - Layers and losses
wowml/nn - Trainable parameters
wowml/nn/parameter.py - Optimizer base
wowml/optim/optimizer.py - SGD and Adam
wowml/optim
Data and linear algebra
- Dataset abstraction
wowml/data/dataset.py - DataLoader
wowml/data/dataloader.py - Linear algebra API
wowml/linalg
Other components
- Library user
Connections 23
- Library user → DataLoader: iterates
README.md - DataLoader → Dataset abstraction: fetches samples
wowml/data/dataloader.py - Library user → Python Tensor: creates tensors
README.md - Python Tensor → C bindings loader: uses kernel
wowml/tensor.py - C bindings loader → C tensor lifecycle: loads library
README.md - C tensor lifecycle → C memory allocator: allocates storage
csrc/src/tensor.c - Tensor operations → C memory allocator: allocates storage
csrc/src/ops.c - Matrix multiplication → C memory allocator: allocates storage
csrc/src/matmul.c - C linear algebra → C memory allocator: allocates storage
csrc/src/linalg.c - C tensor lifecycle → Dtype definitions: sizes elements
csrc/src/tensor.c - Library user → Module framework: builds model
README.md - Module framework → Trainable parameters: registers parameters
wowml/nn/module.py - Layers and losses → Module framework: extends modules
wowml/nn/linear.py - Layers and losses → Trainable parameters: uses parameters
wowml/nn/linear.py - Layers and losses → Python Tensor: computes with
wowml/nn/linear.py - Library user → Gradient engine: requests gradients
README.md - Gradient engine → Autograd functions: runs backward
wowml/autograd/engine.py - Python Tensor → Gradient engine: delegates backward
wowml/tensor.py - Library user → SGD and Adam: updates model
README.md - SGD and Adam → Optimizer base: extends base
wowml/optim/sgd.py - Optimizer base → Trainable parameters: zeros gradients
wowml/optim/optimizer.py - Library user → Linear algebra API: uses solvers
README.md - Library user → Serialization: saves objects
wowml/utils/serialization.py