mosaicml / mosaicml/streaming

Are there any supported patterns for on-the-fly caching?

Open
#981 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.6k
Forks
206
PR merge metrics
No merged PRs in 30d

Description

Hi,

Are there any supported patterns for on-the-fly caching?

Say you have an expensive object you're computing based on the data in input. Adding it to the MDS dataset is suboptimal when you're experimenting with many things at once.

Alternative is to compute if present the first time the object is requested and cache it to disk, then read from there. Are there any gotchas one would need to be aware of when doing this? Or should it just work as I expect?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file, test, or entry point. First clarify whether the expected outcome is documentation of a supported caching pattern or a library change, then inspect the dataset and caching APIs; done means the supported behavior, gotchas, and any required implementation scope are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-engineering
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.