Releases: poets-ai/elegy
Releases · poets-ai/elegy
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
Elegy is now based on Treex 🎉
Changes
- Remove the
module,nn,metrics, andlossesfrom Elegy, instead Elegy reexports these modules from Treex. GeneralizedModuleand friends are gone, to use Flax Modules use theelegy.nn.FlaxModulewrapper.- Low level API is massively simplified:
Statesis removed, sinceModelis a pytree all parameters are tracked automatically thanks to Treex / Treeo.- All static state arguments (
training,initializing) are removed,Modules can simply useself.trainingto pick their training state andself.initializing()to check whether they are initializing. - Signature for
pred_step,test_step, andtrain_stepnow simply consists ofinputsandlabels, wherelabelsis adictthat can contain additional keys likesample_weightorclass_weightas required by the losses and metrics.
- Adds the
DistributedStrategyclass which currently has 3 instancesEager: Runs model in a single device in eager mode (nojit)JIT: Runs model in a single device withjitDataParallel: Run the model in multiple devices usingpmap.
- Adds methods to change the model's distributed strategy:
.distributed(strategy = DataParallel): changes the distributed strategy,DataParallelused by default..local(): changes the distributed strategy toJIT..eager(): changes the distributed strategy toEager.
- Removes the
.eagerfield in favor of the.eager()method.
0.7.4
0.7.2
0.7.1
0.7.0
Features
initnow only called once internally and required to be called explicitly by the user under certain circumstancessummarynow usesjax.eval_shapeunder the hood so its super fast since it doesn't allocate memory or perform any computations on the device.
Merged pull requests: