Skip to main content

Easily snowboard down gnarly loss gradients

Project description

gradboard

snowboarder

Easily snowboard down gnarly loss gradients

Getting started

You can install gradboard with

pip install gradboard

PyTorch is a peer dependency of gradboard, which means

  • You will need to make sure you have PyTorch installed in order to use gradboard
  • PyTorch will not be installed automatically when you install gradboard

We take this approach because PyTorch versioning is environment-specific and we don't know where you will want to use gradboard. If we automatically install PyTorch for you, there's a good chance we would get it wrong!

Therefore, please also make sure you install PyTorch.

Usage examples

Decent model training outcomes without tuning hyperparameters

gradboard includes

  • An implementation of AdamS as proposed in Xie et al. (2023) "On the Overlooked Pitfalls of Weight Decay and How to Mitigate Them: A Gradient-Norm Perspective" (https://openreview.net/pdf?id=vnGcubtzR1), which in practice makes model training more robust to the weight decay setting.
  • Utilities for implementing popular learning rate schedules
  • An implementation of an automatic max/min learning rate finder based on Smith (2017) "Cyclical Learning Rates for Training Neural Networks" (https://arxiv.org/abs/1506.01186)
  • Sensible defaults

In practice this means that you can train a neural network and get decent performance right out of the box, just by using the PASS (point-and-shoot scheduler), even for unfamiliar architectures or problem domains.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gradboard-5.1.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gradboard-5.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file gradboard-5.1.0.tar.gz.

File metadata

  • Download URL: gradboard-5.1.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.9.5 Darwin/24.6.0

File hashes

Hashes for gradboard-5.1.0.tar.gz
Algorithm Hash digest
SHA256 f90e84e494e399c1753095a482898c846963ebac85d2e281788a06fcdc36a4e1
MD5 a213ef71639196af4f91e52c3c99b08d
BLAKE2b-256 245dbe24c1260c3f9f802798b3e6cd92e5f99cc00a97f8ba86cfec5980dea139

See more details on using hashes here.

File details

Details for the file gradboard-5.1.0-py3-none-any.whl.

File metadata

  • Download URL: gradboard-5.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.9.5 Darwin/24.6.0

File hashes

Hashes for gradboard-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 361cf1c73230d73a68c7245859f6ac84415dcd997e2fdd4e96e682033e215435
MD5 95dfb63a77499c410772e46120ad9658
BLAKE2b-256 4c891f3935e9d7ddd48e3c4ce8c82c33a3e82eebd228a3705e689744e7321341

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page