ScalarFlow is a pedagogical deep learning library with scalar primitives, inspired by micrograd and PyTorch.
ScalarFlow uses uv for dependency management. Install the library and its dependencies with:
make install
ScalarFlow requires Graphviz for visualisation functionality. Install Graphviz separately using your system package manager:
# macOS
brew install graphviz
# Arch Linux
pacman -Syu graphviz
# Debian/Ubuntu
apt install graphviz
Format with Ruff, lint with Ruff and basedpyright, and test with pytest using:
make all
Run make help
to see a list of all available commands.