Skip to content

Skip downloading litert models if they already exist.#72

Merged
brendandahl merged 1 commit into
GoogleChrome:mainfrom
brendandahl:cache-litert-models
Jan 27, 2026
Merged

Skip downloading litert models if they already exist.#72
brendandahl merged 1 commit into
GoogleChrome:mainfrom
brendandahl:cache-litert-models

Conversation

@brendandahl

Copy link
Copy Markdown
Collaborator

Implement a caching mechanism using a JSON file to track the state of downloaded models. This avoids redundant downloads during prebuild if the model configuration has not changed.

A --force flag is also added to allow users to manually bypass the cache and re-download all models when necessary.

Fixes a bug in the download cache where the filename wasn't defined when using --force.

Implement a caching mechanism using a JSON file to track the state of
downloaded models. This avoids redundant downloads during prebuild if the
model configuration has not changed.

A --force flag is also added to allow users to manually bypass the cache
and re-download all models when necessary.
@brendandahl brendandahl requested a review from rmahdav January 27, 2026 21:43

@rmahdav rmahdav left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@brendandahl brendandahl merged commit 39b6c19 into GoogleChrome:main Jan 27, 2026
2 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