1
0
Fork 0
mirror of https://github.com/p-e-w/heretic.git synced 2026-12-03 18:42:57 +07:00

[GH-ISSUE #149] Unable to load datasets saved with save_to_disk #89

Closed
opened 2026-11-01 04:17:24 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @nishtahir on GitHub (Feb 13, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/149

Datasets saved with save_to_disk appear to be saved as DatasetDicts by default. From what I can tell the dict is what holds the splits. However, github.com/p-e-w/heretic@6017bcd347/src/heretic/utils.py (L175) seems to require that we pass in the inner split directly but the following read instruction requires the split to be set. Unless i'm missing something this prevents loading saved datasets all together.

Originally created by @nishtahir on GitHub (Feb 13, 2026). Original GitHub issue: https://github.com/p-e-w/heretic/issues/149 Datasets saved with `save_to_disk` appear to be saved as `DatasetDict`s by default. From what I can tell the dict is what holds the splits. However, https://github.com/p-e-w/heretic/blob/6017bcd347af01937656b3c43715de3a4c81bd4d/src/heretic/utils.py#L175 seems to require that we pass in the inner split directly but the following read instruction requires the split to be set. Unless i'm missing something this prevents loading saved datasets all together.
Author
Owner

@nishtahir commented on GitHub (Feb 14, 2026):

Found a workaround which I believe may have been the intended behavior.

  1. Use save_to_disk to save the dataset with your train, test splits.
  2. Pass the inner split folder to dataset in your config dataset=<path>/train
  3. Pass None as the split in the config split=None[:<your count>]
<!-- gh-comment-id:3900339903 --> @nishtahir commented on GitHub (Feb 14, 2026): Found a workaround which I believe may have been the intended behavior. 1. Use `save_to_disk` to save the dataset with your `train`, `test` splits. 2. Pass the inner split folder to `dataset` in your config `dataset=<path>/train` 3. Pass `None` as the `split` in the config `split=None[:<your count>]`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
p-e-w/heretic#89
No description provided.