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

[PR #33] [MERGED] Improve support for loading local datasets #247

Closed
opened 2026-11-01 04:19:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/p-e-w/heretic/pull/33
Author: @spikymoth
Created: 11/21/2025
Status: ✅ Merged
Merged: 11/23/2025
Merged by: @p-e-w

Base: master ← Head: no-dataset-checks


📝 Commits (2)

  • 5664ee4 Handle loading local datasets
  • 21bd91c Reorder branches to avoid chain of negatives

📊 Changes

1 file changed (+36 additions, -2 deletions)

View changed files

📝 src/heretic/utils.py (+36 -2)

📄 Description

When passing a local dataset, having to keep the numbers in README.md up-to-date as you edit it can get pretty annoying. The split verification performed by VerificationMode.BASIC_CHECKS also isn't that useful. as it'll happily use a cached version as long as the number of examples hasn't changed (so if you fix typos, for example, it won't pick up on that).

This change adds option no_dataset_checks to turn off those checks, but also bypass the cache to avoid using an outdated version. It makes the prompt loading a bit more verbose, but lets you tinker with the dataset without having to regenerate the metadata or manually adjust the numbers.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/p-e-w/heretic/pull/33 **Author:** [@spikymoth](https://github.com/spikymoth) **Created:** 11/21/2025 **Status:** ✅ Merged **Merged:** 11/23/2025 **Merged by:** [@p-e-w](https://github.com/p-e-w) **Base:** `master` ← **Head:** `no-dataset-checks` --- ### 📝 Commits (2) - [`5664ee4`](https://github.com/p-e-w/heretic/commit/5664ee4038bba87cd6e4e6b7066d7d19af0fdf87) Handle loading local datasets - [`21bd91c`](https://github.com/p-e-w/heretic/commit/21bd91c52f870bb13d5c3d2ce1324d22a5888db2) Reorder branches to avoid chain of negatives ### 📊 Changes **1 file changed** (+36 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/heretic/utils.py` (+36 -2) </details> ### 📄 Description When passing a local dataset, having to keep the numbers in `README.md` up-to-date as you edit it can get pretty annoying. The split verification performed by `VerificationMode.BASIC_CHECKS` also isn't that useful. as it'll happily use a cached version as long as the number of examples hasn't changed (so if you fix typos, for example, it won't pick up on that). This change adds option `no_dataset_checks` to turn off those checks, but also bypass the cache to avoid using an outdated version. It makes the prompt loading a bit more verbose, but lets you tinker with the dataset without having to regenerate the metadata or manually adjust the numbers. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-01 04:19:12 +07:00
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#247
No description provided.