Installation from GitHub
The easiest way to install Samay is directly from GitHub using pip:Install via pip
Run the following command to install Samay and all its dependencies:This will install the latest version from the main branch.
Development Installation
If you want to contribute to Samay or customize it for your needs, follow these steps for a development installation:Install uv (recommended)
Samay uses
uv for fast dependency management:uv is a fast Python package installer and resolver. It’s optional but highly recommended for development.System Requirements
Python Version
Python Version
Samay is tested and supported on:
- Python 3.11
- Python 3.12
- Python 3.13
Operating Systems
Operating Systems
Currently supported:
- Linux (CPU + GPU)
- MacOS (CPU only)
- Windows
- Apple Silicon GPU
Hardware Requirements
Hardware Requirements
- CPU: Any modern multi-core processor
- RAM: Minimum 8GB (16GB+ recommended for larger models)
- GPU: NVIDIA GPUs with CUDA support (optional but recommended)
- Storage: At least 5GB for models and datasets
Dependencies
Dependencies
Key dependencies installed automatically:
- PyTorch >= 2.5.1
- transformers >= 4.47.0
- gluonts >= 0.16.0
- pandas >= 2.2.3
- numpy >= 2.1.3
- scikit-learn >= 1.5.2
- chronos-forecasting >= 1.4.1
- lightning >= 2.5.1
pyproject.toml for the complete list.GPU Support
To use Samay with GPU acceleration:- Ensure you have NVIDIA drivers installed
- Install CUDA toolkit (version compatible with PyTorch)
- Samay will automatically detect and use available GPUs
Troubleshooting
Import errors
Import errors
If you encounter import errors, ensure you’re using a supported Python version:Try reinstalling with:
CUDA/GPU issues
CUDA/GPU issues
If GPU is not detected:
- Verify NVIDIA drivers are installed:
nvidia-smi - Check PyTorch CUDA compatibility
- Reinstall PyTorch with CUDA support from pytorch.org
Memory errors
Memory errors
For large models:
- Use smaller batch sizes
- Enable gradient checkpointing
- Use CPU if GPU memory is insufficient
- Consider using smaller model variants
Next Steps
Quick Start Guide
Learn the basics with a simple forecasting example
Example Notebooks
Explore complete examples for all models