Skip to content

Releases: Yura52/delu

v0.0.7

31 Oct 23:39
Compare
Choose a tag to compare

This release includes several nice updates to the website:

  • added the "copy button" to code blocks
  • highlight Python signatures
  • make section link buttons visible and usable

v0.0.6

13 Oct 18:14
Compare
Choose a tag to compare

New features

  • random.preserve_state: decorator and a context manager for preserving global random state
  • Stream.epochs: when used in JupyterLab (Jupyter Notebook) and ipywidgets is installed, a pretty progress bar widget is used instead of the text-based one.
  • evaluation: for torch>=1.9.0, uses torch.inference_mode instead of torch.no_grad

API changes

  • evaluation: cannot decorate generators anymore

Behavior

  • evaluation: for torch>=1.9.0, uses torch.inference_mode instead of torch.no_grad

Dependencies:

  • torch >= 1.7
  • pynvml >= 11.0

Project

  • added spell checking for the documentation

v0.0.5

03 Jul 13:46
Compare
Choose a tag to compare

New features

  • added zero.nn.Lambda

API Changes

  • zero.Stream: the argument progress_bar_options was renamed to progress_bar_config

v0.0.4

09 Jun 21:55
Compare
Choose a tag to compare

This is a minor release mostly targeted at improving the documentation and the website.

New features

  • zero.improve_reproducibility is recommended to be called at the beginning of your programs: the function sets random seeds and sets some options in torch.backends.cudnn to values that facilitate reproducibility
  • zero.random.seed for setting random seeds in all relevant libraries (random, numpy, torch)
  • many improvements in documentation
  • website: new SVG logo, the navigation icon is added, the favicon is added
  • contributing instructions are updated

API Changes

  • zero.random.init is removed

v0.0.3

08 May 22:31
Compare
Choose a tag to compare

Zero is alive! The first experience with the library was positive and now it is the time to use this experience to improve the library. This release brings nice additions (new functions, classes and structure to the library), improves things that proved to be useful and removes unnecessary modules and tools.

New features

  • zero.Stream
    • method epochs for ergonomic train loops with a progress bar
    • methods state_dict and load_state_dict for saving and loading stream's state (epoch, iteration, etc.)
  • time.Timer
    • can be used as a context-manager to measure some code block execution time
    • can be pickled
    • pretty formatting when used inside print or f-strings
    • method format for advanced formatting
  • random
    • functions get_state and set_state for better reproducibility when resuming training
  • zero.data.FnDataset for fast datasets creation without the need to inherit from torch.utils.data.Dataset
  • website (documentation)
    • improve design, structure and layout
    • now it is possible to select the version

API Changes

  • new modules structure, see the website
  • zero.Stream.increment_epoch: does not accept arguments anymore
  • zero.ProgressTracker: support patience=None for only tracking the best score
  • zero.Timer.run: does not return self anymore
  • zero.random.set_randomness
    • renamed to zero.random.init
    • the argument callback was removed
    • the generated (or passed) seed is returned
  • The following modules were removed:
    • all
    • io
    • types
    • module
    • time
    • training
  • The following functions and classes were removed:
    • hardware.to_device
    • stream.ManualStream
    • module.(call, ecall)
    • time.format_seconds
    • training.learn

Dependencies

  • python >= 3.7
  • torch >= 1.6

The first public release

25 Jul 10:53
Compare
Choose a tag to compare