Skip to content

docs(to_dataloader): document buffered modes and narrow mode type#213

Merged
d-laub merged 1 commit into
mainfrom
docs/to-dataloader-buffered-modes
Jun 8, 2026
Merged

docs(to_dataloader): document buffered modes and narrow mode type#213
d-laub merged 1 commit into
mainfrom
docs/to-dataloader-buffered-modes

Conversation

@d-laub

@d-laub d-laub commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Document the mode, buffer_bytes, copy, and heartbeat_seconds parameters on Dataset.to_dataloader (previously undocumented).
  • Narrow mode from str | None to Literal["buffered", "double_buffered"] | None on both Dataset.to_dataloader and the backing get_dataloader.

Notes

  • RefDataset.to_dataloader (_reference.py) was intentionally left untouched — it does not expose buffered modes (no _output_bytes_per_instance), so there is nothing buffered-mode to document there.

Testing

  • pixi run -e dev typecheck → 0 errors

🤖 Generated with Claude Code

Document the mode/buffer_bytes/copy/heartbeat_seconds params on
Dataset.to_dataloader, and narrow `mode` from `str | None` to
`Literal["buffered", "double_buffered"] | None` on both to_dataloader
and the backing get_dataloader.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@d-laub d-laub merged commit 9718508 into main Jun 8, 2026
7 checks passed
@d-laub d-laub deleted the docs/to-dataloader-buffered-modes branch June 8, 2026 15:36
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.

1 participant