mirror of https://github.com/leafspark/AutoGGUF
138 lines
5.1 KiB
Markdown
138 lines
5.1 KiB
Markdown

|
|
|
|
# AutoGGUF - automated GGUF model quantizer
|
|
|
|
<!-- Project Status -->
|
|
[](https://github.com/leafspark/AutoGGUF/releases)
|
|
[](https://github.com/leafspark/AutoGGUF/commits)
|
|
[]()
|
|
|
|
<!-- Project Info -->
|
|
[](https://github.com/ggerganov/llama.cpp)
|
|

|
|
[]()
|
|
[](https://github.com/leafspark/AutoGGUF/blob/main/LICENSE)
|
|
|
|
<!-- Repository Stats -->
|
|

|
|

|
|

|
|

|
|
|
|
<!-- Contribution -->
|
|
[](https://github.com/psf/black)
|
|
[](https://github.com/leafspark/AutoGGUF/issues)
|
|
[](https://github.com/leafspark/AutoGGUF/pulls)
|
|
|
|
AutoGGUF provides a graphical user interface for quantizing GGUF models using the llama.cpp library. It allows users to download different versions of llama.cpp, manage multiple backends, and perform quantization tasks with various options.
|
|
|
|
## Features
|
|
|
|
- Download and manage llama.cpp backends
|
|
- Select and quantize GGUF models
|
|
- Configure quantization parameters
|
|
- Monitor system resources during quantization
|
|
- Parallel quantization + imatrix generation
|
|
- LoRA conversion and merging
|
|
|
|
## Usage
|
|
|
|
### Cross-platform
|
|
1. Install dependencies:
|
|
```
|
|
pip install -r requirements.txt
|
|
```
|
|
2. Run the application:
|
|
```
|
|
python src/main.py
|
|
```
|
|
or use the `run.bat` script.
|
|
|
|
### Windows
|
|
1. Download the latest release
|
|
2. Extract all files to a folder
|
|
3. Run `AutoGGUF.exe`
|
|
|
|
### Verifying Releases
|
|
|
|
#### Linux/macOS:
|
|
```bash
|
|
gpg --import AutoGGUF-v1.5.0-prerel.asc
|
|
gpg --verify AutoGGUF-v1.5.0-Windows-avx2-prerel.zip.sig AutoGGUF-v1.5.0-Windows-avx2-prerel.zip
|
|
sha256sum -c AutoGGUF-v1.5.0-prerel.sha256
|
|
```
|
|
|
|
#### Windows (PowerShell):
|
|
```powershell
|
|
# Import the public key
|
|
gpg --import AutoGGUF-v1.5.0-prerel.asc
|
|
|
|
# Verify the signature
|
|
gpg --verify AutoGGUF-v1.5.0-Windows-avx2-prerel.zip.sig AutoGGUF-v1.5.0-Windows-avx2-prerel.zip
|
|
|
|
# Check SHA256
|
|
$fileHash = (Get-FileHash -Algorithm SHA256 AutoGGUF-v1.5.0-Windows-avx2-prerel.zip).Hash.ToLower()
|
|
$storedHash = (Get-Content AutoGGUF-v1.5.0-prerel.sha256 | Select-String AutoGGUF-v1.5.0-Windows-avx2-prerel.zip).Line.Split()[0]
|
|
if ($fileHash -eq $storedHash) { "SHA256 Match" } else { "SHA256 Mismatch" }
|
|
```
|
|
|
|
Release keys are identical to ones used for commiting.
|
|
|
|
## Building
|
|
|
|
### Cross-platform
|
|
```bash
|
|
pip install -U pyinstaller
|
|
./build.sh RELEASE | DEV
|
|
cd build/<type>/dist/
|
|
./AutoGGUF
|
|
```
|
|
|
|
### Windows
|
|
```bash
|
|
build RELEASE | DEV
|
|
```
|
|
Find the executable in `build/<type>/dist/AutoGGUF.exe`.
|
|
|
|
You can also use the slower build but faster executable script (Nuitka):
|
|
```bash
|
|
build_optimized RELEASE | DEV
|
|
```
|
|
|
|
## Dependencies
|
|
|
|
Find them in `requirements.txt`.
|
|
|
|
## Localizations
|
|
|
|
View the list of supported languages at [AutoGGUF/wiki/Installation#configuration](https://github.com/leafspark/AutoGGUF/wiki/Installation#configuration) (LLM translated, except for English).
|
|
|
|
To use a specific language, set the `AUTOGGUF_LANGUAGE` environment variable to one of the listed language codes (note: some languages may not be fully supported yet, those will fall back to English).
|
|
|
|
## Known Issues
|
|
|
|
- ~~Cannot delete task while processing (planned fix: disallow deletion before cancelling or cancel automatically)~~ (fixed in v1.6.2)
|
|
|
|
## Planned Features
|
|
|
|
- Time estimation for quantization
|
|
- Actual progress bar tracking
|
|
- Perplexity testing
|
|
- Web API and management (partially implemented in v1.6.2)
|
|
|
|
## Troubleshooting
|
|
|
|
- SSL module cannot be found error: Install OpenSSL or run from source using `python src/main.py` with the `run.bat` script (`pip install requests`)
|
|
|
|
## Contributing
|
|
|
|
Fork the repo, make your changes, and ensure you have the latest commits when merging. Include a changelog of new features in your pull request description. Read `CONTRIBUTING.md` for more information.
|
|
|
|
## User Interface
|
|
|
|

|
|
|
|
## Stargazers
|
|
|
|
[](https://star-history.com/#leafspark/AutoGGUF&Date)
|