Deep Learning for
LowMind is a pure-NumPy deep learning framework built from scratch. Get a PyTorch-like API without the multi-GB installation — just NumPy and psutil.
pip install lowmind
What is LowMind?
A full-featured deep learning framework that runs anywhere — no GPU required, no 10GB installs. Built for the real world of embedded AI.
Ultra Low Footprint
Only numpy and psutil as dependencies. Runs on Raspberry Pi, Jetson Nano, and any Linux/macOS/Windows machine with minimal RAM.
PyTorch-Like API
Familiar Module, Sequential, autograd, and training loop patterns. Switch from PyTorch with minimal code changes.
Production Ready
88+ passing unit tests, full package structure, model save/load with gzip compression, system monitoring, and comprehensive error handling.
Full Autograd Engine
Reverse-mode automatic differentiation with full broadcasting, tuple-axis support, and gradient clipping built-in.
Complete Toolkit
Layers, activations, losses, optimizers, schedulers, metrics, data utilities, trainer, callbacks — everything in one package.
Pi-First Design
Memory manager with LRU eviction, system monitor for CPU/RAM/temperature, memory tracing, and inference optimization for constrained devices.
Framework at a Glance
Everything you need to build, train, and deploy deep learning models
Everything Included
| Category | What's Included |
|---|---|
| Autograd | Reverse-mode automatic differentiation, full broadcasting, tuple-axis support |
| Layers | Linear, Conv2d, BatchNorm1d/2d, MaxPool2d, AvgPool2d, Flatten, Dropout, Embedding, LSTM, GRU |
| Activations | ReLU, LeakyReLU, ELU, GELU, Sigmoid, Tanh, Softmax, LogSoftmax |
| Loss Functions | CrossEntropy, BCE, MSE, MAE, Huber, NLL |
| Optimizers | SGD (+ Nesterov), Adam, AdamW, RMSprop, AdaGrad — all support parameter groups |
| LR Schedulers | StepLR, MultiStepLR, ExponentialLR, CosineAnnealingLR, ReduceLROnPlateau, CyclicLR, LinearWarmup |
| Data | Dataset, TensorDataset, DataLoader, train_test_split, Data Transforms (Compose, Normalize, Flip, Crop…) |
| Metrics | accuracy, top-k accuracy, precision, recall, F1, confusion matrix, R², MSE, MAE |
| Trainer | High-level training loop with callbacks, gradient clipping, gradient accumulation, validation |
| Callbacks | EarlyStopping, ModelCheckpoint, LRSchedulerCallback, History |
| Models | MicroMLP, MicroCNN, TinyResNet |
| Weight Init | xavier_uniform/normal, kaiming_uniform/normal, orthogonal, normal, uniform, constant, zeros, ones, eye |
| Monitoring | SystemMonitor, memory_trace, health_score, ModelProfiler (FLOPs, throughput) |
| Model I/O | save/load (gzip or plain pickle), state_dict, load_state_dict, optimizer state save/restore |
Ready to Build?
Install LowMind in seconds and start building deep learning models that run on any device.