Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "chakra"
requires-python = ">=3.7"
requires-python = ">=3.10"
version = "1.0.0"
readme = "README.md"
license = {file = "LICENSE.md"}
Expand Down Expand Up @@ -49,7 +49,7 @@ chakra_trace_link = "chakra.src.trace_link.trace_link:main"
chakra_visualizer = "chakra.src.visualizer.visualizer:main"

[tool.ruff]
target-version = "py39"
target-version = "py310"
line-length = 120
exclude = [
"src/converter/text_converter.py",
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from setuptools import setup
from setuptools.command.build import build


class build_grpc(build):
"""
Custom build class to include gRPC build commands.
Expand Down
10 changes: 8 additions & 2 deletions src/converter/pytorch_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ class PyTorchNode:
pg_name (str): Process Group name for the inter-GPU communication.
"""

SUPPORTED_VERSIONS = ["1.0.2-chakra.0.0.4", "1.0.3-chakra.0.0.4", "1.1.0-chakra.0.0.4", "1.1.1-chakra.0.0.4", "1.1.1-chakra.1.0.0"]
SUPPORTED_VERSIONS = [
"1.0.2-chakra.0.0.4",
"1.0.3-chakra.0.0.4",
"1.1.0-chakra.0.0.4",
"1.1.1-chakra.0.0.4",
"1.1.1-chakra.1.0.0"
]

def __init__(self, schema: str, node_data: Dict[str, Any]) -> None:
"""
Expand Down Expand Up @@ -218,7 +224,7 @@ def comm_size(self) -> int:
int: The calculated communication size.
"""
comm_size = 0
for input_value, input_type in zip(self.inputs["values"], self.inputs["types"]):
for input_value, input_type in zip(self.inputs["values"], self.inputs["types"], strict=False):
if "Tensor" in input_type:
if input_type.startswith("GenericList[Tensor"):
for inner_value in input_value:
Expand Down