diff --git a/README.md b/README.md index c2b7f6d2..f8af2fe1 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ A fully decentralized inference engine developed by [Gradient](https://gradient. ## Installation ### Prerequisites -- Python>=3.11.0 +- Python>=3.11.0,<3.14.0 - Ubuntu-24.04 for Blackwell GPUs Below are installation methods for different operating systems. diff --git a/pyproject.toml b/pyproject.toml index a53887e3..6a99e408 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ name = "parallax" version = "0.0.1" description = "Decentralised pipeline-parallel LLM serving with Sglang + MLX-LM + Lattica" readme = "README.md" -requires-python = ">=3.11" +requires-python = ">=3.11,<3.14" packages = [ { include = "parallax", from = "src" }, { include = "scheduling", from = "src" }, diff --git a/src/parallax/cli.py b/src/parallax/cli.py index 64ce2c67..b039855a 100644 --- a/src/parallax/cli.py +++ b/src/parallax/cli.py @@ -22,9 +22,9 @@ def check_python_version(): """Check if Python version is 3.11 or higher.""" - if sys.version_info < (3, 11): + if sys.version_info < (3, 11) or sys.version_info >= (3, 14): print( - f"Error: Python 3.11 or higher is required. Current version is {sys.version_info.major}.{sys.version_info.minor}." + f"Error: Python 3.11 or higher and less than 3.14 is required. Current version is {sys.version_info.major}.{sys.version_info.minor}." ) sys.exit(1)