Giter Club home page Giter Club logo

gguf-n-go's Introduction

GGUF'n'GO

Welcome to GGUF'n'Go, your go-to tool for easily creating quantized versions of Hugging Face models in the GGUF format. Whether you're a machine learning enthusiast or a professional looking to optimize your models, GGUF'n'Go simplifies the process of converting models into various quantized formats for efficient deployment.

Why GGUF'n'Go?

Quantization is a key technique in reducing the size of large language models (LLMs) without significantly compromising their performance. By converting models to lower precision formats, you can save on storage, reduce latency, and enable deployment on resource-constrained environments. GGUF'n'Go supports a wide range of quantization types via Llama.cpp, ensuring flexibility and efficiency for your specific needs.

How to Use

Prerequisites

Ensure that you have curl and unzip installed on your system. These tools are essential for downloading and extracting the necessary files.

Setup

Follow these steps to set up the project:

  1. Clone the repository:

    git clone [email protected]:thesven/GGUF-n-Go.git
    cd GGUF-n-Go
  2. Make the setup script executable and run it. This will download and compile llama.cpp, as well as download the wiki.train.raw dataset.

    chmod +x setup.sh
    ./setup.sh

Configuration

  1. Copy the example configuration file and customize it with the Hugging Face model you wish to convert to the GGUF format:

    cp gguf.example.toml gguf.toml
  2. Edit gguf.toml to specify your model details.

Running the Conversion

Execute the conversion process with the following command:

python ./gguf_n_go.py --config ./gguf.toml

This will generate the quantized model in the specified formats.

Supported Quantization Types

GGUF'n'Go supports a comprehensive range of quantization types, each offering different trade-offs between model size, performance, and quality. Please see the list of quantization types in the gguf.example.toml file. If you notice any missing, please feel free to add them.

Contributing

Feel free to fork this repository and submit pull requests to contribute to the project. All ideas and suggestions are welcome!

Happy quantizing!

gguf-n-go's People

Contributors

thesven avatar

Stargazers

Mario Garcia avatar Tommy Falkowski avatar Matthew MacLeod  avatar Tristan Druyen avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.