Skip to content

[Feature request] Support bias in linear_nf4 #979

@ebsmothers

Description

@ebsmothers

In Llama 3.2 vision models, we load a pretrained checkpoint where some of the linear layers have biases in them (specifically in the vision encoder MLPs, see e.g. here). We would like to be able to quantize these linears as well, but linear_nf4 currently only operates on a weight, no bias (ref). I know we had some discussions about the use of bias in NF4 linears way back when, but curious if there are any hard technical blockers for supporting this in ao. If not, can we add this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions