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

Enable optimized compression of models with fp8 weights #20

Conversation

nikita-savelyevv
Copy link

Changes

Reason for changes

Related tickets

Tests

@@ -381,6 +387,7 @@ def _build_compress_model(
# Build OV model
weight = opset.parameter(weight_shape, name="weight", dtype=DTYPE_MAP_OV[weight_dtype])
ov_parameters = [weight]
weight = convert_op(weight, ov.Type.f32)
Copy link
Author

Choose a reason for hiding this comment

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

Casting to FP32 in the beginning because FP8 data type does not support abs operation.

@nikita-savelyevv
Copy link
Author

@alexsu52 please take a look

@alexsu52
Copy link
Owner

@alexsu52 please take a look

Thanks for the PR. As far as I understand how to compress of fp8 data types is open question. Do you have any tickets where user scenario are described.

@nikita-savelyevv
Copy link
Author

Thanks for the PR. As far as I understand how to compress of fp8 data types is open question. Do you have any tickets where user scenario are described.

Unfortunately not. Closing then.

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