Skip to content

Conversation

@SS-JIA
Copy link
Contributor

@SS-JIA SS-JIA commented Dec 10, 2024

Summary:

Context

Currently, exporting llama models to Vulkan using 4 bit weight quantization is broken because the behaviour of the groupwise_affine_quantize_tensor utility function from torchao was recently changed so that the packing of two 4-bit integers into a single 8 bit value does not occur.

To fix, just have the VkInt4WeightOnlyQuantizer perform that step itself.

Differential Revision: D67051119

@pytorch-bot
Copy link

pytorch-bot bot commented Dec 10, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7274

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

❌ 1 New Failure

As of commit 1be39d1 with merge base de74961 (image):

NEW FAILURE - The following job has failed:

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 Dec 10, 2024
@facebook-github-bot
Copy link
Contributor

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

SS-JIA added a commit to SS-JIA/executorch-1 that referenced this pull request Dec 11, 2024
Summary:

## Context

Currently, exporting llama models to Vulkan using 4 bit weight quantization is broken because the behaviour of the `groupwise_affine_quantize_tensor` utility function from `torchao` was recently changed so that the packing of two 4-bit integers into a single 8 bit value does not occur.

To fix, just have the `VkInt4WeightOnlyQuantizer` perform that step itself.

Reviewed By: jorgep31415

Differential Revision: D67051119
SS-JIA added a commit to SS-JIA/executorch-1 that referenced this pull request Dec 11, 2024
Summary:

## Context

Currently, exporting llama models to Vulkan using 4 bit weight quantization is broken because the behaviour of the `groupwise_affine_quantize_tensor` utility function from `torchao` was recently changed so that the packing of two 4-bit integers into a single 8 bit value does not occur.

To fix, just have the `VkInt4WeightOnlyQuantizer` perform that step itself.

Reviewed By: jorgep31415

Differential Revision: D67051119
@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

SS-JIA added a commit to SS-JIA/executorch-1 that referenced this pull request Dec 12, 2024
Summary:

## Context

Currently, exporting llama models to Vulkan using 4 bit weight quantization is broken because the behaviour of the `groupwise_affine_quantize_tensor` utility function from `torchao` was recently changed so that the packing of two 4-bit integers into a single 8 bit value does not occur.

To fix, just have the `VkInt4WeightOnlyQuantizer` perform that step itself.

Reviewed By: jorgep31415

Differential Revision: D67051119
@facebook-github-bot
Copy link
Contributor

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

Summary:

## Context

Currently, exporting llama models to Vulkan using 4 bit weight quantization is broken because the behaviour of the `groupwise_affine_quantize_tensor` utility function from `torchao` was recently changed so that the packing of two 4-bit integers into a single 8 bit value does not occur.

To fix, just have the `VkInt4WeightOnlyQuantizer` perform that step itself.

Reviewed By: jorgep31415

Differential Revision: D67051119
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot merged commit 1e2efa3 into pytorch:main Dec 12, 2024
44 of 46 checks passed
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 topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants