Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefetch: disable for huggingface #747

Closed
wants to merge 1 commit into from
Closed
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
3 changes: 3 additions & 0 deletions src/datachain/lib/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@
async def _prefetch(self) -> None:
if self._caching_enabled:
client = self._catalog.get_client(self.source)
# https://github.com/iterative/datachain/issues/746
if client.protocol == "hf":
return

Check warning on line 277 in src/datachain/lib/file.py

View check run for this annotation

Codecov / codecov/patch

src/datachain/lib/file.py#L277

Added line #L277 was not covered by tests
await client._download(self, callback=self._download_cb)

def get_local_path(self) -> Optional[str]:
Expand Down
Loading