Skip to content

LMLK-seal/HuggingGGUF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hugging Face Model downloader & GGUF Converter

LLModel Chat Demo

Description

The Hugging Face Model downloader & GGUF Converter is a user-friendly GUI application that simplifies the process of downloading Hugging Face models and converting them to the GGUF (GPT-Generated Unified Format) format. This tool is particularly useful for researchers, developers, and AI enthusiasts who work with language models and need to convert them for use in different environments or applications.

Features

  • Download Hugging Face models directly from the application
  • Convert downloaded models to GGUF format
  • User-friendly PyQt5-based interface
  • Customizable quantization options
  • Integrated error handling and status updates

Installation

Prerequisites

  • Python 3.7 or higher
  • pip (Python package installer)

Dependencies

Install the required packages using pip:

pip install tkinter huggingface_hub PyQt5

You will also need to clone the llama.cpp repository and ensure that the convert_hf_to_gguf.py script is accessible.

Usage

  1. Clone this repository:

    git clone https://github.com/LMLK-seal/HuggingGGUF.git
    cd HuggingGGUF

    or

    Download the main.py code.

  2. Run the application:

    python Main.py
  3. Using the application:

    • In the "Download Hugging Face Model" section:
      • Enter the Model ID (e.g., "meta-llama/Llama-3.2-1B")
      • Choose a save directory
      • Click "Download Model"
    • In the "Convert to GGUF" section:
      • Select the convert_hf_to_gguf.py file from your llama.cpp installation
      • Choose the downloaded Hugging Face model folder
      • Select an output folder for the converted model
      • Specify the quantization model (default is "q8_0" but can work only with q8_0, f16, f32)
      • Enter the desired output file name
      • Click "Convert to GGUF"
  4. The application will display the conversion output and any error messages in the result area.

Contributing

Contributions to improve the Hugging Face Model downloader & GGUF Converter are welcome. Please feel free to submit pull requests or create issues for bugs and feature requests.

License

MIT License

Acknowledgments

  • This project uses the Hugging Face Hub for model downloading.
  • The GGUF conversion is based on the llama.cpp project.

Disclaimer

This tool is provided as-is, and users should ensure they comply with the licensing terms of the models they download and convert.

Releases

No releases published

Packages

No packages published

Languages