New Tool Radar

AI Concepts

How to Decide When the EXL2 Format Fits a Local GPU Better Than GPTQ

Use EXL2 when you need mixed bit rates on a consumer GPU, and check the model is available in EXL2 before you commit to it.

Schematic with three steps: Check the model exists in EXL2; Pick the average bit rate for your; Test the converted model on your tasks.

EXL2 is a quantization format supported by ExLlamaV2, a fast inference library for running LLMs locally on modern consumer-class GPUs. It is based on the same optimisation method as GPTQ and supports 2, 3, 4, 5, 6 and 8-bit quantization, and it allows mixing quantization levels within a model to achieve any average bitrate between 2 and 8 bits per weight. That mixing is the reason to choose it: when some layers matter more than others, EXL2 can give the important ones more bits and the rest fewer, instead of one bit rate for the whole model.

What you need

  • A consumer GPU and the ExLlamaV2 library or a UI that supports it
  • The model you want to run and its size in full precision
  • A note of the average bits per weight you can afford

Step 1: Check the model exists in EXL2

Search the model hub for an EXL2 version of your model, since EXL2 models are converted and uploaded by the community. If none exists, you must convert the model yourself, which is slow for large models.

Step 2: Pick the average bit rate for your GPU

Work out how many bits per weight fit your GPU memory: a 70B model at 2.55 bits per weight was reported to run on a single 24 GB GPU. Choose the rate that fits with room for the KV cache.

Step 3: Test the converted model on your tasks

Run the EXL2 model on tasks you actually care about and compare the answers with the full-precision model. Mixed bit rates protect important weights, but only your test set can confirm the quality is enough.

Worked example: synthetic EXL2 bit-rate check for one model

The table below is a synthetic example. It shows the expected result of choosing an EXL2 bit rate; no model was converted.

Average bits Model size on disk Fits 24 GB GPU?
2.5 bits About 22 GB for 70B Yes
4.0 bits About 35 GB for 70B No
6.0 bits About 53 GB for 70B No
Decision 2.5 bits chosen Fits with room for cache

Expected result (UNTESTED). 2.5 bits per weight fits the 70B model on a 24 GB GPU, while 4 and 6 bits do not. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • ExLlamaV2 is archived and development continues on ExLlamaV3, so check the current project status before building on it.
  • EXL2 only runs where ExLlamaV2 runs, on modern consumer GPUs; it is not a format for every inference engine.
  • Parameter selection is automatic, measuring quantization error per layer against calibration data.
  • A mixed bit rate is still a lossy compression: test quality on your own tasks, not just on perplexity.

Sources

See all