Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number formats and bugfixes #563

Merged
merged 25 commits into from
Dec 12, 2023
Merged

Conversation

maljoras
Copy link
Collaborator

Related issues

Make ready for RPU tiles with different number format (fp16 / double).

Description

The C++ code and python code is adapted to use different simulation number format. For that a new runtime.data_type field is added to the RPUConfig. Once constructed the tile can be used to run the specified input data types.

However: full FP16 support is currently experimental (turned off by default) and only available for CUDA >=12.

There is also an option to store the parameter of pulsed devices into FP16 which reduces the memory for analog training.

Additional, an C++ aihwkit extension module for additional C++ code is added (optionally). Currently, the extension module only has a fake FP32 format conversion operator (for variable mantissa / exponent with saturation and rounding).

All options are experimental and turned off by default and need to be turned off when compiling.

Additional bugfixes and changes:

  • convert to digital of an analog model added
  • bugfixes / feature additions to the specialized in-memory learning rules
  • AnalogWrapper improvements (now a direct subclass)
  • some reshuffling of the configs/ parameter files to reduce python file size
  • RNN analog linear layer more flexible
  • custom tiles improvements
  • RPUConfig base classes changes

Kaoutar El Maghraoui and others added 23 commits January 4, 2023 22:39
Copy link
Collaborator

@kaoutar55 kaoutar55 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @maljoras

@kaoutar55 kaoutar55 merged commit dcb050f into IBM:master Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants