Skip to content

Add tests for manual bit width config for postional weights#1424

Merged
lapid92 merged 2 commits intoSonySemiconductorSolutions:mainfrom
lapid92:main
Apr 23, 2025
Merged

Add tests for manual bit width config for postional weights#1424
lapid92 merged 2 commits intoSonySemiconductorSolutions:mainfrom
lapid92:main

Conversation

@lapid92
Copy link
Copy Markdown
Contributor

@lapid92 lapid92 commented Apr 23, 2025

Pull Request Description:

Checklist before requesting a review:

  • I set the appropriate labels on the pull request.
  • I have added/updated the release note draft (if necessary).
  • I have updated the documentation to reflect my changes (if necessary).
  • All function and files are well documented.
  • All function and classes have type hints.
  • There is a licenses in all file.
  • The function and variable names are informative.
  • I have checked for code duplications.
  • I have added new unittest (if necessary).

@lapid92 lapid92 requested a review from elad-c April 23, 2025 08:18
const_config_input16_positional_weight16 = const_config_input16.clone_and_edit(
attr_weights_configs_mapping={POS_ATTR: positional_weight_16_attr_config})

const_config_input16_output16_positional_weight8 = const_config_input16_output16.clone_and_edit(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Clearer to clone const_config_input16 because you change the same value.

enable_weights_quantization=True,
lut_values_bitwidth=None)

const_config_input16_output16_positional_weight2 = const_config_input16_output16.clone_and_edit(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same "Clearer..."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add fail tests: try to manually select an unsupported bitwidth.

@lapid92 lapid92 merged commit 549c6d9 into SonySemiconductorSolutions:main Apr 23, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants