Skip to content

Commit

Permalink
Enable streaming for websrc card loader in configuration
Browse files Browse the repository at this point in the history
Signed-off-by: elronbandel <[email protected]>
  • Loading branch information
elronbandel committed Jan 30, 2025
1 parent a0e7d0d commit a6fd3dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prepare/cards/websrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
)

card = TaskCard(
loader=LoadHF(path="rootsautomation/websrc"),
loader=LoadHF(path="rootsautomation/websrc", streaming=True),
preprocess_steps=[
RenameSplits(mapper={"train": "train", "dev": "test"}),
"splitters.small_no_dev",
Expand Down
3 changes: 2 additions & 1 deletion src/unitxt/catalog/cards/websrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"__type__": "task_card",
"loader": {
"__type__": "load_hf",
"path": "rootsautomation/websrc"
"path": "rootsautomation/websrc",
"streaming": true
},
"preprocess_steps": [
{
Expand Down

0 comments on commit a6fd3dd

Please sign in to comment.