-
Notifications
You must be signed in to change notification settings - Fork 15
Automatic model downloading - Part 1 #110
Automatic model downloading - Part 1 #110
Conversation
Currently done:
|
Currently done:
Left to do:
|
…es and lexical shortlists if not already loaded
…asses on a clean checkout and subsequent builds will have the bergamot-models already downloaded
c98abde
to
f106abd
Compare
…imported from elsewhere
…trol over what and when to cache downloaded model files
…e the time it takes to download model files
…r tracking of total bytes transferred
Done since last update:
Screenshot showing that gzipped model files are downloaded: Left to do:
|
…ation since it leads to a broken web worker bundle (webpack/webpack#7879)
The task EDIT: Filed as a separate issue |
…ss) + Don't attempt to persist model files if remaining quota suggest that it won't work
…the reverse direction
Done since last update:
Left to do:
I filed a separate issue for |
…yed as text in the translation infobar
Done since last update:
Download.progress.infobar.prototype.UI.mov |
Done since last update:
This PR is now ready for review. |
This PR uses a Cache API polyfill due to https://bugzilla.mozilla.org/show_bug.cgi?id=1575625. It works well enough to have it as part of this PR during review, but I have created a separate issue for eventually removing this polyfill when/if it is no longer necessary: https://github.com/mozilla-extensions/bergamot-browser-extension/issues/116. Please review the current PR as is, knowing that a follow-up PR will address the polyfill issue. |
r+ with the condition that the polyfill is removed in the short term |
Fixes #5
Changes made to bergamot-translator can be reviewed here: mozilla/bergamot-translator#45