Feature request
Return file size information prior to model file download to enable better UI when downloading multiple model files.
After loading the config files, we fire a single 'session_info' (name subject to change) which contains an object like this:
{
// [file name] => [info]
encoder_model: {...},
decoder_model_merged: {...},
}
where each info element contains info like file name, file size, url, etc.
Clients can then use this to do different style of downloading UI (i.e. total percentage downloaded of all model files)
Motivation
As we look to integrate transformers.js with more UI we may want to have a more predictable experience downloading models. Right now the callbacks don't have enough information for a single progress bar downloading the model.
Your contribution
I may be able to help code this.