Skip to content

Commit

Permalink
prefetch: disable for huggingface
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Dec 25, 2024
1 parent 60256d6 commit 6fe8095
Showing 1 changed file with 3 additions and 0 deletions.
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 @@ def ensure_cached(self) -> None:
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

0 comments on commit 6fe8095

Please sign in to comment.