Open
Description
The Inference API use Blob or ArrayBuffer as argument for the request who result in loading huge file into RAM before sending them to the API.
We should rather use the new FileBlob or LazyBlob as for the commit
method of the Hub API.
I already started to externalize the first version of the FileBlob and I could publish the WebBlob as well as the createBlob
utility method
I would also understand if you want to:
- keep the package in the
huggingface
namespace - create a shared package between
hub
andinference
package in this monorepo.