-
Notifications
You must be signed in to change notification settings - Fork 489
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update hivemind to 1.1.8, enable efficient bfloat16 encoding (#311)
This PR: 1. Updates hivemind to 1.1.8 (includes learning-at-home/hivemind#565) 2. Enables efficient bfloat16 serialization by default (`USE_LEGACY_BFLOAT16 = False`) 3. Removes logging code that was included to hivemind in learning-at-home/hivemind#542
- Loading branch information
Showing
3 changed files
with
12 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
import os | ||
|
||
import hivemind | ||
|
||
from petals.client import * | ||
from petals.utils.logging import initialize_logs as _initialize_logs | ||
|
||
__version__ = "1.1.4" | ||
|
||
|
||
def _override_bfloat16_mode_default(): | ||
if os.getenv("USE_LEGACY_BFLOAT16") is None: | ||
hivemind.compression.base.USE_LEGACY_BFLOAT16 = False | ||
|
||
|
||
_initialize_logs() | ||
_override_bfloat16_mode_default() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters