Skip to content

Releases: poets-ai/elegy

0.8.6

23 Mar 21:47
Compare
Choose a tag to compare

🚀 Features

  • Weights and Biases Callback for Elegy

🐛 Fixes

  • Docs typos
  • Donate model's memory buffer to jit/pmap functions.
  • Lazy load wandb

0.8.5

23 Feb 01:48
Compare
Choose a tag to compare

🚀 Features

  • Handle distributed metrics with psum
  • Improve CI

0.8.4

14 Dec 13:57
Compare
Choose a tag to compare

Changes

0.8.3

13 Dec 19:42
227f0af
Compare
Choose a tag to compare

Changes

0.8.2

13 Dec 17:00
Compare
Choose a tag to compare

Changes

0.8.1

08 Nov 21:17
Compare
Choose a tag to compare

Elegy is now based on Treex 🎉

Changes

  • Remove the module, nn, metrics, and losses from Elegy, instead Elegy reexports these modules from Treex.
  • GeneralizedModule and friends are gone, to use Flax Modules use the elegy.nn.FlaxModule wrapper.
  • Low level API is massively simplified:
    • States is removed, since Model is a pytree all parameters are tracked automatically thanks to Treex / Treeo.
    • All static state arguments (training, initializing) are removed, Modules can simply use self.training to pick their training state and self.initializing() to check whether they are initializing.
    • Signature for pred_step, test_step, and train_step now simply consists of inputs and labels, where labels is a dict that can contain additional keys like sample_weight or class_weight as required by the losses and metrics.
  • Adds the DistributedStrategy class which currently has 3 instances
    • Eager: Runs model in a single device in eager mode (no jit)
    • JIT: Runs model in a single device with jit
    • DataParallel: Run the model in multiple devices using pmap.
  • Adds methods to change the model's distributed strategy:
    • .distributed(strategy = DataParallel): changes the distributed strategy, DataParallel used by default.
    • .local(): changes the distributed strategy to JIT.
    • .eager(): changes the distributed strategy to Eager.
  • Removes the .eager field in favor of the .eager() method.

0.7.4

01 Jun 15:54
Compare
Choose a tag to compare

Changes

Note

Due to a mistake version 0.7.3 was skipped.

0.7.2

10 Mar 18:59
5b1fea4
Compare
Choose a tag to compare

Merged pull requests:

  • DataLoader Timeout #172 (alexander-g)
  • Saved Model support: implements Model.saved_model that enables the user to serialize pred_step as a SavedModel #171 (cgarciae)

0.7.1

01 Mar 22:50
Compare
Choose a tag to compare

Merged pull requests:

  • Make Transformers official #170 (cgarciae)
  • More Docs: Expand documentation for the low-level API guides. #168 (cgarciae)
  • Rich Summary: uses rich to style the summary console output #167 (cgarciae)

0.7.0

22 Feb 20:03
Compare
Choose a tag to compare

Features

  • init now only called once internally and required to be called explicitly by the user under certain circumstances
  • summary now uses jax.eval_shape under the hood so its super fast since it doesn't allocate memory or perform any computations on the device.

Merged pull requests:

  • Fix notebook #166 (cgarciae)
  • Single Initialization: Removes the current progressive initialization in favor of a single underlying call to init_step. #165 (cgarciae)