System requirements
Before you begin, ensure your system meets these requirements:- Python: 3.8 or higher (3.10+ recommended)
- Operating system: Linux, macOS, or Windows with Python support
- RAM: 4GB minimum (8GB+ recommended for larger experiments)
- CPU: Any modern x86_64 or ARM processor (CPU-focused, no GPU required)
This framework is designed for CPU execution and reproducible research. It does not require specialized hardware like GPUs or TPUs.
Installation
Create a virtual environment (recommended)
Isolate your dependencies using a virtual environment:You should see
(venv) in your terminal prompt after activation.Install required dependencies
Install the core packages from This installs:
requirements.txt:- numpy (1.26.4): Core array operations and tensor math
- pandas (2.2.2): Dataset loading and CSV handling
- matplotlib (3.8.4): Visualization for training curves and benchmarks
- psutil (5.9.8): Memory profiling and system resource monitoring
- requests (2.32.3): Dataset download utilities
- tqdm (4.66.4): Progress bars for training and data loading
Install optional dependencies (optional)
For framework comparison and ONNX export, install the optional packages:The framework works fully without these packages—they’re guarded by runtime checks.
Verify your installation
After installing dependencies, verify your environment is configured correctly.Run the verification script
Execute the environment verification script:Expected output
You should see output similar to this:Interpreting the output
- Required packages: All must show
OKwith version numbers - Optional packages: Can show
MISSINGif you didn’t install them - Dataset status: Shows
Falseuntil you download Fashion-MNIST (see below)
Understanding the verification script
The verification script checks your environment systematically:scripts/verify_environment.py
- Python version and platform information
- All required packages are importable with correct versions
- Optional packages (if installed)
- Dataset files (if downloaded)
Dataset preparation
The framework supports two data modes:Synthetic mode (default)
No setup required. The framework generates random data for fast iteration:Real data mode (Fashion-MNIST)
For production-like experiments, download the Fashion-MNIST dataset:Download Fashion-MNIST
Run the download script:This downloads two CSV files:
fashion-mnist_train.csv(~120MB): 60,000 training samplesfashion-mnist_test.csv(~20MB): 10,000 test samples
The download script validates file integrity using SHA256 checksums and includes retry logic for network failures.
Dependency versions and reproducibility
The framework uses pinned dependency versions for reproducible experiments:requirements.txt
Why pinned versions matter
For reproducible research:- Numerical stability: NumPy versions can differ in floating-point precision
- API compatibility: Avoid breaking changes in dependencies
- Deterministic results: Same code + same versions + same seed = same output
- Experiment comparison: Compare results across time and machines reliably
requirements.txt and re-run all baseline experiments to establish new reference results.
Project structure after installation
After installation, your directory structure looks like this:Troubleshooting
pip install fails with version conflicts
pip install fails with version conflicts
Upgrade pip and try again:If conflicts persist, create a fresh virtual environment.
NumPy import fails on macOS ARM (M1/M2)
NumPy import fails on macOS ARM (M1/M2)
Ensure you’re using an ARM-native Python installation:Should output
arm64. If it shows x86_64, reinstall Python for Apple Silicon.verify_environment.py shows 'MISSING' for required packages
verify_environment.py shows 'MISSING' for required packages
Check if you activated your virtual environment:If not, activate it:
Dataset download fails or times out
Dataset download fails or times out
Manually download the files from the mirrors and place them in the correct directory:Then verify the files are recognized:
Python version too old
Python version too old
You need Python 3.8 or higher. Check your version:If it’s too old, install a newer version:
- Linux: Use
pyenvor your distribution’s package manager - macOS: Use
brew install [email protected] - Windows: Download from python.org
Next steps
Now that your environment is set up:Run your first experiment
Train a model and see benchmark results in under 5 minutes
Understand the architecture
Learn how the framework is structured
Configure experiments
Customize layer sizes, precision, and constraints
Explore the API
Dive into the module-level documentation
Best practices
For the best experience:Pin dependency versions
Never use
pip install package without version pins in production experiments. Always use requirements.txt.Verify after installation
Run
scripts/verify_environment.py after any environment changes to catch issues early.