Skip to content

lora parameters have no attributes named weight or bias #31

Description

@pnaclcu

Hello, and thank you for your excellent work—it has been very helpful.

    When I tried to migrate LoRA parameters, I ran into an issue: the DFloat11 Linear layer has no weight attribute; only bias is kept in _parameters. As a result, loading LoRA fails. Inside dfloat11.py, the line delattr(module, 'weight') removes the weight after quantization.

How should I modify the code so that the weight attribute is preserved (or re-added) and LoRA can be loaded successfully?

best regards~

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