Skip to content

Commit 8029210

Browse files
committed
downgrade datasets and revert torchcodec changes
1 parent 2ddb4c4 commit 8029210

File tree

3 files changed

+22
-46
lines changed

3 files changed

+22
-46
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ classifiers = [
2828
keywords = ["llm", "fine-tuning", "data generation", "synthetic data", "nlp", "sft", "dpo", "data quality", "metadata tagging", "graph",]
2929
dependencies = [
3030
"aiohttp>=3.12,<4.0",
31-
"datasets>=4.0,<5.0",
31+
"datasets<=4.0.0",
3232
"httpx>=0.28,<0.29",
3333
"httpx-sse>=0.4,<0.5",
3434
"huggingface-hub>=0.34,<1.0",
@@ -51,7 +51,7 @@ dependencies = [
5151
"langchain-openai>=0.3,<1.0",
5252
"ollama>=0.5,<1.0",
5353
"torch>=2.8,<3.0",
54-
"torchcodec>=0.8,<1.0",
54+
# "torchcodec<0.7",
5555
"mlxtend>=0.23,<1.0",
5656
"pandarallel>=1.6,<2.0",
5757
"sentence-transformers>=5.1,<6.0",

sygra/utils/audio_utils.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import numpy as np
99
import requests # type: ignore[import-untyped]
10-
from torchcodec.decoders import AudioDecoder # type: ignore[import-untyped]
1110

1211
try:
1312
import soundfile as sf # type: ignore[import-untyped]
@@ -54,8 +53,6 @@ def is_hf_audio_dict(val: Any) -> bool:
5453
return True
5554
elif isinstance(val, dict) and "bytes" in val and isinstance(val.get("path"), str):
5655
return True
57-
elif isinstance(val, AudioDecoder):
58-
return True
5956
else:
6057
return False
6158

uv.lock

Lines changed: 20 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)