Welcome to PyLO ! ================================ .. image:: ../assets/overview.png :alt: Overview .. .. image:: https://img.shields.io/github/license/yourusername/pylo.svg .. :target: https://github.com/yourusername/pylo/blob/main/LICENSE .. :alt: License .. .. image:: https://img.shields.io/github/stars/yourusername/pylo.svg .. :target: https://github.com/yourusername/pylo/stargazers .. :alt: GitHub stars PyLo is a PyTorch-based learned optimizer library that enables researchers and practitioners to implement, experiment with, and share learned optimizers. It bridges the gap found in the research of learned optimizers and using it for actual practical scenarios. Checkout our paper here: `arXiv `_ .. note:: New to PyLo? Check out our :doc:`usage` guide. Key Features ----------- * Pre-trained learned optimizers ready for production use * Seamless integration with PyTorch optim library and training loops * Comprehensive benchmarking utilities against standard optimizers * Supports sharing model weights through Hugging Face Hub Quick Example ------------ .. code-block:: python import torch from pylo.optim import VeLO_CUDA # Initialize a model model = torch.nn.Linear(10, 2) # Create a learned optimizer instance optimizer = VeLO_CUDA(model.parameters()) # Use it like any PyTorch optimizer for epoch in range(10): optimizer.zero_grad() loss = loss_fn(model(input), target) loss.backward() optimizer.step(loss) # pass the loss Documentation ============ .. toctree:: :maxdepth: 2 :caption: Getting Started: installation .. usage .. basic_concepts .. toctree:: :maxdepth: 2 :caption: User Guide: usage .. tutorials/index .. examples/index .. benchmarks .. toctree:: :maxdepth: 2 :caption: API Reference: api/index .. toctree:: :maxdepth: 1 :caption: Development: changelog .. Benchmarks .. ========= .. PyLo has been benchmarked against standard optimizers like Adam, SGD, and RMSProp across various tasks: .. .. image:: _static/benchmark_plot.png .. :alt: Benchmark results comparing PyLo to standard optimizers .. *See the detailed :doc:`benchmarks` page for more information.* How to Cite ========== If you use PyLo in your research, please cite: .. code-block:: bibtex @article{pylo, title={PyLO: Towards Accessible Learned Optimizers in PyTorch}, author={Janson, Paul and Therien, Benjamin and Anthony, Quentin and Huang, Xiaolong and Moudgil, Abhinav and Belilovsky, Eugene}, journal={arXiv preprint arXiv:2506.10315}, year={2025} } .. Indices and tables .. ================== .. * :ref:`genindex` .. * :ref:`modindex` .. * :ref:`search`