Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 fix a bug in autoround format with the latest transformers 2 rename n_samples n_blocks to nsamples nblocks #163

Merged
merged 4 commits into from
Jun 27, 2024

Conversation

wenhuach21
Copy link
Contributor

No description provided.

@wenhuach21 wenhuach21 changed the title 1 rename n_samples n_blocks to nsamples nblocks 2 align exporting 1 fix a bug in autoround format with the latest transformers 2 rename n_samples n_blocks to nsamples nblocks Jun 27, 2024
@@ -370,11 +338,11 @@ def set_layerwise_config(self, weight_config):
Returns:
None
"""
layers_in_blocks = get_layer_names_in_block(self.model, self.supported_types)
layers_inblocks = get_layer_names_in_block(self.model, self.supported_types)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a mistake

for n, m in self.model.named_modules():
if not isinstance(m, tuple(self.supported_types)):
continue
if n not in weight_config.keys() and n in layers_in_blocks:
if n not in weight_config.keys() and n in layers_inblocks:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@wenhuach21 wenhuach21 merged commit f9e7d79 into main Jun 27, 2024
6 checks passed
@wenhuach21 wenhuach21 deleted the update_0627 branch June 27, 2024 08:22
attafosu pushed a commit to attafosu/auto-round that referenced this pull request Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants