Skip to content

[Question] Why ignore mlp projection weight in convert_hf_to_int4.py #1640

@skpig

Description

@skpig

Your Question

ignore_patterns = [
"re:.*lm_head.*",
"re:.*norm.*",
"re:.*embed.*",
"re:.*self_attn.*",
"re:.*shared_experts.*",
"re:.*mlp\\.(gate|up|gate_up|down)_proj.*",
"re:.*mlp\\.gate\\.*",
]

I'm not familiar to quantization. Could you please explain the reason why these parameters are ignored during INT4 quantization?

What I've Tried

N/A

Environment (if relevant)

  • slime version:
  • Python version:
  • PyTorch version:
  • CUDA/ROCm version:
  • GPU type and count:
  • OS:

Additional Context

No response

Pre-submission Checklist

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