CivArchive
    ← All articles
    Published May 5, 2025

    Tool Guide: Hugging Face Backup Desktop Tool

    92 views2 reactions0 comments on CivitAI0 collected
    uploadtool guidearchivebackuptools

    Introducing the Hugging Face Backup Tool:

    Your Desktop Companion for Model Management!

    Here is the github repository: https://github.com/Ktiseos-Nyx/Huggingface-Desktop

    Attached is the project files, that are from github, but please note there will be NO more updates added in terms of files to this article. Only the current working alpha build is attached.

    Overview

    This tool provides a graphical user interface (GUI) to simplify backing up your local machine's files to the Hugging Face Hub. It's designed to be a more intuitive alternative to using the command-line interface (CLI).

    *Upload Files and Folders:** Easily back up your local models, datasets, and spaces to the Hugging Face Hub.

    *Manage Repositories:** Organize your backups into different repositories.

    *Configure Settings:** Configure your API token, proxy settings, and rate limit delay, all within the application.

    Why use this tool instead of the command line?

    > The Hugging Face Hub CLI is powerful, but it can be intimidating for users unfamiliar with the command line. This tool offers a more visual and intuitive approach to managing your Hugging Face backups, making it more accessible.

    Features

    Here's a quick overview of what you can do with the Hugging Face Backup Tool:

    *Hugging Face Uploader:** Upload files and entire folders to the Hugging Face Hub.

    *Zip Folder:** Create ZIP archives of your local folders for backup.

    *Download:** Download files from the Hugging Face Hub.

    *Material Themes:** Customize the application's appearance with a variety of beautiful Qt Material themes.

    Installation

    This section guides you through installing and setting up the tool. It requires Python 3.10 or higher.

    System Requirements

    The Hugging Face Backup Tool is built using PyQt6, and Pyside6 a cross-platform GUI framework. This means it should be compatible with the following operating systems:

    *Windows:** Windows 10 or later (64-bit)

    *macOS:** macOS 10.14 (Mojave) or later

    *Linux:** Most modern Linux distributions (e.g., Ubuntu, Fedora, Debian)

    Important Note:

    While the tool should work on these operating systems, it has only been tested on [MacOS Ventura 13.5.1]. Your experience may vary. Please report any compatibility issues you encounter!

    Installation Steps

    Here are the general steps for installing the tool.

    Steps:

    1. Install Python: Make sure you have Python 3.10 or higher installed. You can download it from the official Python website ([https://www.python.org/downloads/](https://www.python.org/downloads/)) or your operating system's package manager.

    *Windows:** During installation, make sure to check the box "Add Python to PATH".

    *Linux:** Use your distribution's package manager (e.g., sudo apt install python3 on Debian/Ubuntu, sudo dnf install python3 on Fedora/CentOS/RHEL).

    *macOS:** You may install with Homebrew (`brew install [email protected]`) but you may also install from the website.

    2. Clone the Repository: Open a terminal or command prompt and clone the repository:

    ```bash

    git clone [YOUR_REPOSITORY_URL]

    cd [YOUR_REPOSITORY_DIRECTORY]

    ```

    > Replace [YOUR_REPOSITORY_URL] with the URL of your GitHub repository and [YOUR_REPOSITORY_DIRECTORY] with the desired directory name.

    3. Create a Virtual Environment (Recommended): It's best practice to use a virtual environment. This isolates the project's dependencies.

    ```bash

    python -m venv .venv

    ```

    4. Activate the Virtual Environment:

    *Windows:**

    ```cmd

    .venv\Scripts\activate

    ```

    *Linux/macOS (Bash/Zsh):**

    ```bash

    source .venv/bin/activate

    ```

    *FISH:**

    ```fish

    source .venv/bin/activate.fish

    ```

    5. Install Dependencies: Install the required Python packages using pip:

    ```bash

    pip install -r requirements.txt

    ```

    > If you don't have a requirements.txt file, install the packages individually:

    ```bash

    pip install PyQt6 qt_material huggingface_hub requests

    pip install Pyside6

    ```

    6. Run the Application:

    ```bash

    python hf_backup_tool/main.py

    ```

    Configuration

    Before using the tool, you need to configure it with your Hugging Face API token.

    Steps:

    1. Get an API Token: If you don't have one, create a Hugging Face API token with "write" access. You can do this in your Hugging Face account settings: ([https://huggingface.co/settings/tokens](https://huggingface.co/settings/tokens)).

    2. Open the Configuration Dialog: Click the "Edit Config (API Token)" button within the application.

    3. Enter Your Token: Paste your API token into the "Hugging Face API Token" field.

    4. Save the Configuration: Click the "Save" button.

    ## 5. Issues & Known Limitations

    > This section lists some of the known limitations and areas for improvement.

    *Single File Upload (Currently):** The tool currently only supports uploading one file at a time.

    *Output Logging:** Output and progress updates may currently be visible only in the terminal logs.

    *Repository Creation (Potential Issues):** Creating a new repository might still have issues. It's generally recommended to pre-create your repositories on the Hugging Face Hub.

    *Spacing and UI Glitches:** There might still be some spacing or UI layout issues.

    *Multiple File Upload:** The GUI doesn't support multiple file uploads yet.

    *macOS Development Challenges:** Developing on macOS can be tricky (as you noted!).

    Usage

    Here's how to use the Hugging Face Backup Tool:

    Steps:

    1. Select a Directory: Click the "Select Directory" button, and choose the directory containing the files you want to back up.

    2. Choose a File Type: Use the "File Type" dropdown to select the type of files you want to upload (e.g., SafeTensors, PyTorch Models).

    3. Select Files: The file list will populate. Select the files to upload.

    4. Enter Repository Information: Fill in the "Owner" (your organization or username) and "Repository" name.

    5. Click "Upload": Start the upload process.

    6. Check Output: Check the output window in the GUI for progress updates.

    ## 7. Contributing

    Contributions are very welcome! If you'd like to contribute, please:

    * Submit pull requests with your improvements or bug fixes.

    * Open issues to report bugs, request features, or suggest improvements.

    License

    This project is licensed under the GNU General Public License v3.0. See the [LICENSE](https://github.com/Ktiseos-Nyx/Huggingface-Desktop#GPL-3.0-1-ov-file) file for details.

    > GNU General Public License v3.0: ([https://www.gnu.org/licenses/gpl-3.0.en.html](https://www.gnu.org/licenses/gpl-3.0.en.html)).

    Currently this is NOW updated, and i will change the details on this to match, but won't upload the new code - i'll fix the text in here tomorrow. Alpha 0.2 is available via github here: https://github.com/Ktiseos-Nyx/Huggingface-Desktop/

    Attachments

    Archived from CivitAI · Updated October 29, 2026View source