Skip to content

Ruler lc clean - #293

Merged
jopetty merged 6 commits into
allenai:jacksonp/ladderfrom
jopetty:ruler-lc-clean
Aug 15, 2026
Merged

jopetty merged 6 commits into
allenai:jacksonp/ladderfrom
jopetty:ruler-lc-clean

Conversation

@jopetty

@jopetty jopetty commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Merge in I/O improvements

jopetty and others added 6 commits August 10, 2026 14:23
Adds ruler_lc_* tasks and suites mirroring the existing RULER family
(same scorers, prompting behavior, and task types) but reading
pre-generated data from a local Weka path (jopetty/RULER) instead of
the allenai/ruler_data HF release, extending context sizes up to
2097152 tokens (vs. the original 131072 cap).

RulerTask is refactored to be extensible via _tasks_registry,
_name_prefix, and _get_data_root() so RulerLcTask can reuse it without
duplicating loading/registration logic. Existing ruler_* tasks are
unaffected.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…ition

Renames the ruler-lc task/suite family to ruler-plus, switches data
loading from a local Weka path to the allenai/ruler-plus HuggingFace
dataset repo (downloaded via snapshot_download), and increases the
per-condition sample limit from 100 to 512.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Addresses review feedback on PR allenai#276: snapshot_download() was pulling
the entire ~109 GB allenai/ruler-plus repo per task even though each
task only needs one shard, and the loader read a shard's full contents
into memory before applying the sample limit.

Switches to hf_hub_download() for the single requested shard, and
reservoir-samples (Algorithm R) while streaming the JSONL instead of
materializing the whole file, so peak memory is proportional to the
sample limit rather than shard size.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
PR allenai#282 was squash-merged into jacksonp/ladder, so the ruler-plus files
re-conflicted as add/add against this branch's history. The ladder copies
are identical to this branch at 9e5a5b0, so all four ruler files are
resolved to this branch's versions, keeping the shard-download and
reservoir-sampling I/O improvements from 6aad682.

Co-Authored-By: Claude Opus 5 <[email protected]>
@jopetty
jopetty merged commit 23df08f into allenai:jacksonp/ladder Aug 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants