Skip to content

feat: UI to reset HF token #7988

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 4 commits into from
May 5, 2025
Merged

Conversation

psychedelicious
Copy link
Collaborator

Summary

Sometimes the user has a valid HF token saved but needs to reset. For example, they set a token w/ incorrect permissions.

This PR adds a UI to reset the token. Here are the possible states & UX for the HF tab in MM:

Screen.Recording.2025-05-05.at.3.12.51.pm.mov

Related Issues / Discussions

For whatever reason, this has popped up a lot recently in discord.

QA Instructions

If you already have a valid HF token saved, you should see the new UI where the token is displayed in a disabled input field (it's not your actual token, it's 37 letter a, same length as a real token).

Try resetting, setting an invalid token and setting a valid token.

🚨 The Reset button uses the HF Hub to reset the token. This permanently deletes the token from the HF hub cache. You'll need to go back to HF to retrieve it or make a new one if you don't have it saved somewhere else. 🚨

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions bot added api python PRs that change python files frontend PRs that change frontend files labels May 5, 2025
@psychedelicious psychedelicious merged commit 104505e into main May 5, 2025
12 checks passed
@psychedelicious psychedelicious deleted the psyche/feat/reset-hf-tkoen branch May 5, 2025 13:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
api frontend PRs that change frontend files python PRs that change python files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: unclear how to change out a bad huggingface token
2 participants