Feature Request: on transformerJS model download, check if previous download is up-to-date, and allow offline use.
Opened this issue · 0 comments
Feature request
I request a simple javascript page to show that using transformerJS on a web page for model download, the page checks if a previous download is up-to-date, and allows offline use.
Motivation
Many students have intermittent internet. For Transformer.js to allow offline use is really helpful, but also for online use to only download the model once unless it needs to be updated is also relay useful.
Presently every time I refresh an example static webpage it re-downloads the model. With large models that could be excessive data fees.
Your contribution
I will try to do my own version using local storage to keep the version information, but most of this probably needs @xenova help.
If this has already been done, please provide a link to a simple example.