What problem does it solve? Large language models like Llama 2-70B require 140GB of GPU memory in FP16, making them impossible to run on consumer hardware. GPTQ compresses these models to 4-bit precision, achieving 4× memory reduction with under 2% perplexity degradation and 3-4× faster inference. ## Core Features & Use Cases - Post-Training Quantization: Quantize any supported model to 4-bit using calibration data and group-wise quantization with configurable group sizes (32, 128, 256). - Multiple Kernel Backends: Run inference with ExLlamaV2, Marlin (Ampere+ GPUs), or Triton for optimized speed on different hardware. - QLoRA Fine-Tuning: Combine GPTQ models with PEFT LoRA adapters to fine-tune 70B models on a single A100 80GB GPU. - Use Case: Deploy Llama 2-70B on a single A100 by loading a pre-quantized GPTQ model from HuggingFace, reducing memory from 140GB to 35GB while maintaining near-FP16 accuracy. ## Quick Start Load the pre-quantized model TheBloke/Llama-2-7B-Chat-GPTQ with AutoGPTQForCausalLM and generate a response to a test prompt.