Skip to content

Huggingface Login

Actions
Login to Huggingface using token
v0.0.2
Latest
By osbm
Star (14)

A composite GitHub Action to login to the HuggingFace Hub

You can add this action to your workflow to easily login to the huggingface hub

  • To hide your token from the logs and commit history, you can use the secrets feature of GitHub Actions.

Example workflow:

on: [push]

jobs:
  example-job:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Login to HuggingFace Hub
        uses: osbm/huggingface_login@v0.1
        with:
          username: ${{ secrets.HF_USERNAME }}
          password: ${{ secrets.HF_PASSWORD }}
          add_to_git_credentials: true

      - name: Check if logged in
        run: |
          huggingface-cli whoami

Huggingface Login is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Login to Huggingface using token
v0.0.2
Latest
By osbm

Huggingface Login is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.