File size: 829 Bytes
3fd0224
 
 
e086b09
 
 
fc46d14
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
---
license: cc-by-nc-4.0
---
Simple python script to generate various GGUF-Imatrix quantizations from a Hugging Face `author/model` input, for Windows and NVIDIA hardware.

This is setup for a Windows machine with 8GB of VRAM. If you want to change the the `-ngl` (number of GPU layers) amount, you can do so at **line 120**. This is only relevant during the `--imatrix` data generation. If you don't have enough VRAM you can decrease the `-ngl` amount or set it to 0 to only use your System RAM instead for all layers.

Your `imatrix.txt` is expected to be located inside the `imatrix` folder. Included file is considered a good option, [this discussion](https://github.com/ggerganov/llama.cpp/discussions/5263#discussioncomment-8395384) is where it came from.

**Requirements:**
- Python 3.11
  - `pip install huggingface_hub`