Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

feat(quantization): add support for graph mode in the BPW utility - #199

Open
pkmandke wants to merge 6 commits into
apple:mainfrom
pkmandke:dev/bpw_graph_mode_support
Open

pkmandke wants to merge 6 commits into
apple:mainfrom
pkmandke:dev/bpw_graph_mode_support

Conversation

@pkmandke

@pkmandke pkmandke commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

TODO:

  • add changelog entry
  • add docs preview link

  • Full support for quantization (both modes) and palettization now exists
  • parametrized existing eager mode BPW tests also with graph mode to ensure parity
  • Minor docs update preview is here

Signed-off-by: Prathamesh Mandke <46148373+pkmandke@users.noreply.github.com>
Signed-off-by: Prathamesh Mandke <46148373+pkmandke@users.noreply.github.com>
weight_node = node.args[0]
# Conv+BN folding scales the weight by the BatchNorm factor before it is
# fake-quantized. The scaled weight has the dense weight's shape. Mirrors the
# trace in quantization/_graph/_conv_bn_utils.py::_find_conv_weight_node.

@pkmandke pkmandke Dec 3, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this logic (below) to find the quantized weight is borrowed/inspired from here^

Please let me know if this can be handled differently/better! cc: @crowbat

@pkmandke pkmandke changed the title feature(quantization): add support for graph mode quantized models in the BPW utility feat(quantization): add support for graph mode quantized models in the BPW utility Dec 3, 2026
@pkmandke pkmandke changed the title feat(quantization): add support for graph mode quantized models in the BPW utility feat(quantization): add support for graph mode in the BPW utility Dec 3, 2026
@pkmandke
pkmandke marked this pull request as ready for review December 3, 2026 17:24
Signed-off-by: Prathamesh Mandke <46148373+pkmandke@users.noreply.github.com>
Signed-off-by: Prathamesh Mandke <46148373+pkmandke@users.noreply.github.com>
Comment thread src/coreai_opt/inspection/_bpw_utils.py Resolved
Comment thread src/coreai_opt/inspection/_bpw_utils.py Resolved
Signed-off-by: Prathamesh Mandke <46148373+pkmandke@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

3 participants