Skip to content

memory issue, prepare_model_for_kbit_training #1569

Open
@wenzhifang

Description

@wenzhifang

I am using a quantized base model (NF4) and do LoRA fine-tuning.
When I call prepare_model_for_kbit_training to wrap the model, the memory consumption is significantly higher than the bf16 counterpart, especially when the line backpropagation was called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions