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

Change torchao quantization types from int to size_t and preface vars with "preferred_" #1041

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

keyan
Copy link
Contributor

@keyan keyan commented Oct 8, 2024

Summary:

  1. Change the types of activation_data_alignment and weight_data_alignment from int to size_t.
  2. Change the return types of activation_data_size_fn_type and weight_data_size_fn_type from int to size_t.
  3. Rename activation_data_alignment to preferred_activation_data_alignment.
  4. Rename weight_data_alignment to preferred_weight_data_alignment

Differential Revision: D63873383

Copy link

pytorch-bot bot commented Oct 8, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/1041

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 8, 2024
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D63873383

keyan added a commit to keyan/ao that referenced this pull request Oct 9, 2024
… with "preferred_" (pytorch#1041)

Summary:

1. Change the types of activation_data_alignment and weight_data_alignment from int to size_t.
2. Change the return types of activation_data_size_fn_type and weight_data_size_fn_type from int to size_t.
3. Rename activation_data_alignment to preferred_activation_data_alignment.
4. Rename weight_data_alignment to preferred_weight_data_alignment

Differential Revision: D63873383
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D63873383

… with "preferred_" (pytorch#1041)

Summary:

1. Change the types of activation_data_alignment and weight_data_alignment from int to size_t.
2. Change the return types of activation_data_size_fn_type and weight_data_size_fn_type from int to size_t.
3. Rename activation_data_alignment to preferred_activation_data_alignment.
4. Rename weight_data_alignment to preferred_weight_data_alignment

Differential Revision: D63873383
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D63873383

@keyan
Copy link
Contributor Author

keyan commented Oct 9, 2024

Ready for another look @metascroy, thanks!

@keyan keyan requested a review from metascroy October 9, 2024 20:48
@metascroy
Copy link
Contributor

Ready for another look @metascroy, thanks!

Changes look good! Did you rerun the tests after making them?

@keyan
Copy link
Contributor Author

keyan commented Oct 10, 2024

Changes look good! Did you rerun the tests after making them?

Yes, everything compiled/passed when running:

sh torchao/experimental/ops/benchmarks/build_and_run_benchmarks.sh
sh torchao/experimental/ops/linear_8bit_act_xbit_weight/examples/build_and_run_examples.sh stateful_class_wrapper
sh torchao/experimental/ops/linear_8bit_act_xbit_weight/examples/build_and_run_examples.sh separate_function_wrappers
sh torchao/experimental/build_torchao_ops.sh aten

@facebook-github-bot facebook-github-bot merged commit 76b6e36 into pytorch:main Oct 10, 2024
3 of 5 checks passed
jainapurva pushed a commit that referenced this pull request Oct 15, 2024
… with "preferred_"

Differential Revision: D63873383

Pull Request resolved: #1041
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants