Skip to content

Commit

Permalink
actually assert transformers version
Browse files Browse the repository at this point in the history
  • Loading branch information
dvmazur committed Feb 15, 2024
1 parent 103b437 commit 4a892e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/petals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@


if not os.getenv("PETALS_IGNORE_DEPENDENCY_VERSION"):
version.parse(transformers.__version__) == version.parse("4.37.1")
assert (
version.parse("4.37.1") <= version.parse(transformers.__version__) < version.parse("4.38.0")
), "Please install a proper transformers version: pip install transformers>=4.37.1,<4.38.0"


def _override_bfloat16_mode_default():
Expand Down

0 comments on commit 4a892e2

Please sign in to comment.