Skip to content
Open
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 docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def _get_commit_sha() -> str:
'torch': ('https://pytorch.org/docs/stable/', None),
'torchmetrics': ('https://torchmetrics.readthedocs.io/en/latest/', None),
'torchvision': ('https://pytorch.org/vision/stable/', None),
'transformers': ('https://huggingface.co/docs/transformers/master/en/', None),
'transformers': ('https://huggingface.co/docs/transformers/main/en/', None),
}

nitpicky = False # warn on broken links
Expand Down Expand Up @@ -423,7 +423,7 @@ def _generate_rst_files_for_modules() -> None:
# avoid duplicate entries in docs. We add torch's _LRScheduler to
# types, so we get a ``WARNING: duplicate object description`` if we
# don't exclude it
exclude_members = [torch.optim.lr_scheduler._LRScheduler]
exclude_members = [torch.optim.lr_scheduler.LRScheduler]
if module is not streaming:
exclude_members += streaming_imported_types

Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
'numpy>=1.21.5,<2.2.0',
'paramiko>=2.11.0,<5',
'python-snappy>=0.6.1,<1',
'torch>=1.10,<3',
'torchvision>=0.10',
'torch>=2.1,<3',
'torchvision>=0.16',
'tqdm>=4.64.0,<5',
'transformers>=4.21.3,<5',
'transformers>=5.0.0,<6',
'xxhash>=3.0.0,<4',
'zstd>=1.5.2.5,<2',
'oci>=2.88,<3',
Expand Down
3 changes: 1 addition & 2 deletions streaming/base/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

from torch import Tensor
from torch.utils.data import DataLoader
from transformers.feature_extraction_utils import BatchFeature
from transformers.tokenization_utils_base import BatchEncoding
from transformers import BatchEncoding, BatchFeature

from streaming.base.dataset import StreamingDataset
from streaming.base.world import World
Expand Down
2 changes: 1 addition & 1 deletion streaming/text/c4.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from typing import Any, Optional

from transformers.models.auto.tokenization_auto import AutoTokenizer
from transformers import AutoTokenizer

from streaming.base import StreamingDataset

Expand Down
2 changes: 1 addition & 1 deletion streaming/text/pile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from typing import Any, Optional

from transformers.models.auto.tokenization_auto import AutoTokenizer
from transformers import AutoTokenizer

from streaming.base import StreamingDataset

Expand Down