Skip to content

Conversation

@MekkCyber
Copy link
Contributor

@MekkCyber MekkCyber commented Nov 19, 2025

What does this PR do?

Refactors torchao quantization method to use conversion ops instead of the classical create_quantized_param

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Comment on lines 542 to 551
WeightConverter(
source_keys= ["weight:qdata", "weight:scale", "weight:zero_point"],
target_keys= "weight",
operations=[TorchAoDeserialize(self)],
),
WeightConverter(
source_keys= ["weight:_data"],
target_keys= "weight",
operations=[TorchAoDeserialize(self)],
),
Copy link
Contributor

Choose a reason for hiding this comment

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

@github-actions
Copy link
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: torchao_integration

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.

5 participants