Skip to content

Can't get llm_int8_skip_modules to work: 'Parameter' object has no attribute 'SCB' #1634

Description

@redbrain

I'm working with a RecurrentGemma model (alpindale/recurrentgemma-9b-it).
My desired result is quantizing the model to int8, but keeping the recurrent blocks (model.layers.X.temporal_block) unquantized.
Unfortunately setting llm_int8_skip_modules=["temporal_block"] doesn't work.
On loading the model, I get AttributeError: 'Parameter' object has no attribute 'SCB'.
You can reproduce it with this Colab: https://colab.research.google.com/drive/1NkgcXmuYJg0XqFWMuZA-ZwWDjgdsuCjr
I've also tried llm_int8_skip_modules=["recurrent"], this yields the same error.
Also the library isn't broken; llm_int8_skip_modules=["lm_head"] works fine.
My initial thought is that I'm setting the option incorrectly, but I'm not even sure how to find the right setting.
Anyone have any thoughts on how to fix this?

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

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions