Skip to content

Conversation

jerryzh168
Copy link
Contributor

Summary:
Similar to pytorch/ao#3084 we added regex support in transformers so people can use regex to quantize the models.

See pytorch/ao#3084 for docs and precedence of different configurations

Uploaded model: https://huggingface.co/torchao-testing/opt-125m-ModuleFqnToConfig-v1-regex-0.14.0.dev

Test Plan:
pytest tests/quantization/torchao_integration/test_torchao.py -k test_module_fqn_to_config_regex

Reviewers:

Subscribers:

Tasks:

Tags:

@jerryzh168 jerryzh168 marked this pull request as draft October 1, 2025 01:06
@jerryzh168 jerryzh168 changed the title Add regex support for ModuleFqnToConfig [torchao] Add regex support for ModuleFqnToConfig Oct 1, 2025
@Rocketknight1
Copy link
Member

cc @MekkCyber for quantization

@jerryzh168 jerryzh168 force-pushed the working-base branch 2 times, most recently from 3fc0850 to c82e4fa Compare October 3, 2025 22:38
Summary:
Similar to pytorch/ao#3084 we added regex support
in transformers so people can use regex to quantize the models.

See pytorch/ao#3084 for docs and precedence of different
configurations

Uploaded model: https://huggingface.co/torchao-testing/opt-125m-ModuleFqnToConfig-v1-regex-0.14.0.dev

Test Plan:
pytest tests/quantization/torchao_integration/test_torchao.py -k test_module_fqn_to_config_regex

Reviewers:

Subscribers:

Tasks:

Tags:
@jerryzh168 jerryzh168 marked this pull request as ready for review October 4, 2025 00:19
@jerryzh168
Copy link
Contributor Author

also cc @SunMarc please take a look

@github-actions github-actions bot requested review from SunMarc and ydshieh October 4, 2025 00:19
Copy link
Contributor

github-actions bot commented Oct 4, 2025

[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.

2 participants