Skip to content
Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Quantization

This repository explores quantization methods for Large Language Models (LLMs).
Quantization is a key technique for reducing model size and inference cost, enabling LLMs to run efficiently on consumer hardware or limited GPU memory.

We provide examples and experiments for:


πŸ“– What to Expect in This Repo

  1. Implementation Examples

    • Scripts for loading, quantizing, and saving models with each method.
    • Examples include small models (facebook/opt-125m) so you can try things quickly, and notes for scaling to larger models.
  2. Benchmarks

    • Inference time comparisons before and after quantization.
    • Model size reduction (disk footprint in MB/GB).
    • VRAM usage snapshots where applicable.
  3. Guides & Utilities

    • Helper functions for measuring folder size, timing inference, and testing outputs.
    • Notes on environment setup for GPU clusters (CUDA / PyTorch / bitsandbytes compatibility).
  4. Reproducibility

    • Each script is self-contained and documented.
    • Expected output snippets are included in the README sections or script comments.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages