Welcome to Keras Sprint! ❤️ In this document you will find everything you need to successfully host your model and build demos 🤗

We want to reproduce and build demos to Keras examples and host them openly. We will run the example, train and serialize the model and build a demo. Later the demos will be in examples 👇

Untitled

(Spoiler: There’s also swag involved at the end of the sprint 😏✨ See bottom of this page.)

For each submission the participants are expected to submit model repositories and Spaces made with those models. 🌌 (If these sound alien language to you, don’t worry, just keep reading! 👽)

Visit this page for our previous work and to get a sense of what we’re trying to achieve 🤩

See this example end-to-end colab of what we do.

Getting Started 🚀

To get started with the sprint, join us in discord in #keras-working-group channel and simply leave a comment on the owner section of this spreadsheet to take ownership in example you wish to submit (we will fill the spreadsheet for you). Then you can get started with building! 🛠

Model Hosting on the Hub

Essentially all models and Spaces are hosted inside repositories on the Hub. You have to provide a token to push your code to those repositories. You can do it either by logging in or providing your token to pushing functions.

Simply install Hugging Face Hub library from main branch like below: pip install [<https://github.com/huggingface/huggingface_hub/archive/main.zip>](<https://github.com/huggingface/huggingface_hub/archive/main.zip>)

Logging In

Notebook Login

If you’re pushing a model from a notebook, you can just type

>>> from huggingface_hub import notebook_login
>>> notebook_login()

which will launch a widget from your notebook, you can enter your HF account credentials.

Hugging Face CLI

If you want to push from your CLI, you can enter huggingface-cli login and enter your access token. You can also use this in a notebook with !huggingface-cli login.

After logging in, you need to install and initialize git-lfs.