Skip to content

Releases: google-deepmind/dm-haiku

Haiku 0.0.13

16 Oct 09:11
Compare
Choose a tag to compare
  • Various changes to remain compatible with latest JAX release (e.g. #779, #783, #789).
  • Add shard_map flops estimate to jaxpr_info (#791).
  • Correct an oversight in TruncatedNormal's documentation (#793).

Haiku 0.0.12

28 Feb 18:11
Compare
Choose a tag to compare
  • hk.LayerStack transparency map now supports custom pytree leaves 9be7c9a.
  • hk.LayerStack now supports layers using state 134763d.
  • Calling repr(self) in module constructors is now supported (fixing #428).

Haiku 0.0.11

10 Nov 14:04
Compare
Choose a tag to compare
  • hk.layer_stack now allows transparent application (no prefix on module names).
  • hk.MultiHeadAttention allows bias initializer to be configured or biases to be removed.
  • hk.DepthwiseConvND now supports dilation.
  • hk.dropout supports broadcast_dims.
  • hk.BatchApply avoids an unnecessary h2d copy during tracing.
  • hk.experimental.profiler_name_scopes has been removed, these are on by default.
  • Added hk.map mirroring jax.lax.map.

Haiku 0.0.10

14 Jul 15:42
Compare
Choose a tag to compare
  • Added hk.mixed_precision.push_policy.
  • Added hk.experimental.{get_params,get_initial_state,get_current_state}.
  • Added hk.experimental.{maybe_get_rng_sequence_state,maybe_replace_rng_sequence_state}.
  • hk.switch now supports multiple operands.
  • hk.get_parameter now supports init=None.
  • hk.MethodContext now includes orig_class.
  • hk.GetterContext now includes lifted_prefix_name.
  • hk.layer_stack now allows parameter reuse.
  • Haiku is now compatible with jax.enable_custom_prng.
  • TruncatedNormal now exports lower and upper bounds.
  • Haiku init/apply functions now return dict rather than Mapping.
  • hk.dropout now supports broadcast_dims.

Haiku 0.0.9

16 Nov 12:15
Compare
Choose a tag to compare

What's Changed

  • Support vmap where in_axes is a list rather than a tuple in 307cf7d
  • Pass pmap axis specs optionally to make_model_info in d0ba451
  • Remove use of jax_experimental_name_stack flag in dbc0b1f
  • Add param_axis argument to RMSNorm to allow setting scale param shape in a4998a0
  • Add documentation and error messages for w_init and w_init_scale to avoid confusion in #541
  • Fix hk.while_loop carrying state when reserving variable sizes of rng keys. by @copybara-service in #551
  • Add ensemble example to hk.lift documentation. by @copybara-service in #556

Full Changelog: v0.0.8...v0.0.9

Haiku 0.0.8

21 Sep 14:10
Compare
Choose a tag to compare
  • Added experimental.force_name.
  • Added ability to simulate a method name in experimental.name_scope.
  • Added a config option for PRNG key block size.
  • Added unroll parameter to dynamic_unroll.
  • Remove use of deprecated jax.tree_* functions.
  • Many improvements to our examples.
  • Improve error messages in vmap.
  • Support jax_experimental_name_stack in jaxpr_info.
  • transform_and_run now supports a map on PRNG keys.
  • remat now uses the new JAX remat implementation.
  • Scale parameter is now optional in RMSNorm.

Haiku 0.0.7

04 Jul 18:49
Compare
Choose a tag to compare

Haiku 0.0.6

14 Feb 13:30
Compare
Choose a tag to compare

Haiku 0.0.5

01 Nov 13:18
Compare
Choose a tag to compare
  • Added support for mixed precision training (dba1fd9) via jmp
  • Added hk.with_empty_state(..).
  • Added hk.multi_transform(..) (#137), supporting transforming multiple functions that share parameters.
  • Added hk.data_structures.is_subset(..) to test whether parameters are a subset of another.
  • Minimum Python version is now 3.7.
  • Multiple changes in preparation for a future version of Haiku changing to plain dicts.
  • hk.next_rng_keys(..) now returns a stacked array rather than a collection.
  • hk.MultiHeadAttention now supports distinct sequence lengths in query and key/value.
  • hk.LayerNorm now optionally supports faster (but less stable) variance computation.
  • hk.nets.MLP now has an output_shape property.
  • hk.nets.ResNet now supports changing strides.
  • UnexpectedTracerError inside a Haiku transform now has a more useful error message.
  • hk.{lift,custom_creator,custom_getter} are no longer experimental.
  • Haiku now supports JAX's pluggable RNGs.
  • We have made multiple improvements to our docs an error messages.

Any many other small fixes and improvements.

Haiku 0.0.4

12 Apr 13:12
Compare
Choose a tag to compare

Changelog:

  • (Important Fix) Fixed strides in basic block (300e6a4).
  • Added map, partition_n and traverse to data_structures.
  • Added "build your own Haiku" to the docs.
  • Added summarise utility to Haiku.
  • Added visualisation section to docs.
  • Added precision arg to Linear, Conv and ConvTranspose.
  • Added RMSNorm.
  • Added module_name and name to GetterContext.
  • Added hk.eval_shape.
  • Improved performance of non cross-replica BN variance.
  • Haiku branch functions are only traced once (mirroring JAX).
  • Attention logits are rescaled before the softmax now.
  • ModuleMetaclass now inherits from Protocol.
  • Removed "dot access" to FlatMapping.
  • Removed query_size from MultiHeadAttention constructor.

Any many other small fixes and improvements.