Skip to content

bug report #9

Description

@loadingyy

I found a bug in your code.
When i register a hook to lora_A tensor, I found that its backward times will increase.
Which means that, in batch n, the output of lora block will backward its grad to all the lora pair before, the hook said that, the output of lora backward to "from lora in batch n to lora in batch 0". And then , only one backward to the input of lora block. But surprisely, the memory doesn't increase. I wonder why it happened. I think it might have something is cumulate cross the batch, and its grad is crossing the lora pair.
Sorry for my poor English, and if you didn't get my mean, please tell me.Thank you !

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions