Breaking changes:
fit!
returnsnothing
instead of aFitState
object. TheFitState
object can be accessed viatrainer.fit_state
.on_before_pullback
has been removed. Useon_train_batch_start
instead.on_*_batch_start
now receives the batch on device.- Some of the hooks now take more inputs.
Highlights:
-
Now Tsunami uses
MLDataDevices.DeviceIterator
to wrap dataloaders for more efficient device memory management. -
training_step
,validation_step
, andtest_step
can now return a named tuple for flebility. One of the fields of the named tuple should beloss
which is used to compute the loss value.
Breaking changes:
- Devices indexing now starts from 1, as in
MLDataDevices.gpu_device
.
Highlights:
- Updated to Flux v0.16.
- Models (i.e. subtypes of
FluxModule
) are now not required to be mutable. Tsunami.fit
is deprecated in favor ofTsunami.fit!
.- Added Trainer option to use
Enzyme
for automatic differentiation. - Improved test infrastructure.
- Improved documentation.