Skip to content
Merged
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion src/together/utils/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from traceback import format_exc
from typing import Any, Dict, List

from pyarrow import ArrowInvalid, parquet

from together.constants import (
MAX_FILE_SIZE_GB,
Expand Down Expand Up @@ -372,6 +371,8 @@ def _check_jsonl(file: Path) -> Dict[str, Any]:


def _check_parquet(file: Path) -> Dict[str, Any]:
# in method import - this allows client to exclude the pyarrow dep if they don't need it. Saved ~80MB and more compatible with older systems.
from pyarrow import ArrowInvalid, parquet
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you wrap this in a try/except with details on how to install this with the dependency group? something like pip install together[parquet]

report_dict: Dict[str, Any] = {}

try:
Expand Down