How to push a ML model to the HF Hub from your browser

Here is a sample ML model. We pick the TensorFlow.js version of Mobilenet as an example, but any model would work similarly:

model.json group1-shard1of2 group1-shard2of2

BTW, the TFJS demo of this model is here.

Now that we have the model files, we need to get a HF user's access token. You can create a token at hf.co/settings/tokens (needs write access).

Finally, pick a repo name for your model:

Press Upload to create a repo, and upload your files. It will also upload a model card for your model (you can then update it on your model page):

Output logs

Output will be here