Skip to content

Commit

Permalink
[chore] 0.4.3 release (#860)
Browse files Browse the repository at this point in the history
* [chore] 0.4.3 release

* update setup.py

Co-authored-by: Min Xu <min.xu.public@gmail.com>
  • Loading branch information
min-xu-ai and flying-x committed Nov 18, 2021
1 parent 0db50ce commit 68d10f7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.3] - TBD
## [0.4.4] - TBD
### Added

### Changed

## [0.4.3] - 2021-11-18

### Added
- Sharded Grad Scaler works with cpu offload in mixed and full precision. [#831]
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ FairScale was designed with the following values in mind:

## What's New:

* November 2021 [fairscale 0.4.3 was released](https://github.com/facebookresearch/fairscale/releases/tag/v0.4.3).
* We have an experimental layer that fuses multiple layers together to support large vocab size trainings.
* November 2021 [fairscale 0.4.2 was released](https://github.com/facebookresearch/fairscale/releases/tag/v0.4.2).
* We have a new experimental API called the LayerwiseMemoryTracker to help track, visualize and suggest fixes for memory issues occurring during the forward/backward pass of your models.
* Introducing SlowMoDistributedDataParallel API, a distributed training wrapper that is useful on clusters with slow network interconnects (e.g. Ethernet).
* September 2021 [`master` branch renamed to `main`](https://github.com/github/renaming).
* September 2021 [fairscale 0.4.1 was released](https://github.com/facebookresearch/fairscale/releases/tag/v0.4.1).

## Installation

Expand Down
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
# -- Project information -----------------------------------------------------

project = "FairScale"
copyright = "2020-2021, Facebook AI Research"
author = "Facebook AI Research"
copyright = "2020-2021, Facebook/Meta AI Research"
author = "Facebook/Meta AI Research"

# The full version, including alpha/beta/rc tags
release = "0.4.2"
release = "0.4.3"


# -- General configuration ---------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion fairscale/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# LICENSE file in the root directory of this source tree.

# Please update the doc version in docs/source/conf.py as well.
__version__ = "0.4.2"
__version_tuple__ = (0, 4, 3)
__version__ = ".".join([str(x) for x in __version_tuple__])

################################################################################
# Import most common subpackages
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ def fetch_requirements():
# https://packaging.python.org/guides/single-sourcing-package-version/
def find_version(version_file_path):
with open(version_file_path) as version_file:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file.read(), re.M)
version_match = re.search(r"^__version_tuple__ = (.*)", version_file.read(), re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
ver_tup = eval(version_match.group(1))
ver_str = ".".join([str(x) for x in ver_tup])
return ver_str
raise RuntimeError("Unable to find version tuple.")


extensions = []
Expand Down

0 comments on commit 68d10f7

Please sign in to comment.