Skip to content

Support block size of 32 #986

Closed as not planned
Closed as not planned

Description

@puyuanOT

Feature request

Currently, bnb only supports block size of 64 or above. It would be great if it can support block size of 32, like llama.cpp

Motivation

Better output quality after quantization.

Your contribution

It seems like this change will not be straight-forward, as each cuda wrap expect 32 threads and the current implementation will result in 1 element per-thread, which prevents the implementation from packing 2 4-bit quants into 8bit. I currently don't know how to solve this.

Activity

  1. matthewdouglas commented on Jan 22, 2025

    @matthewdouglas
    Member

    Related: #1329

  2. added
    DuplicateThis issue or pull request already exists
    and removed
    DuplicateThis issue or pull request already exists
    on Feb 3, 2026
  3. TimDettmers commented on Feb 14, 2026

    @TimDettmers
    Collaborator

    Closing as duplicate of #1329, which tracks this feature request (block size 32 support). PR #1854 has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions