-
Notifications
You must be signed in to change notification settings - Fork 279
Add dlrm_v2 CPU FP8 QDQ example #2239
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
Conversation
Signed-off-by: Mengni Wang <mengni.wang@intel.com>
examples/3.x_api/pytorch/recommendation/dlrm_v2/fp8_quant/cpu/README.md
Outdated
Show resolved
Hide resolved
return self.crossnet(concat_dense_sparse) | ||
|
||
|
||
class IPEX_DLRM_DCN(DLRM_DCN): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why name it IPEX_XXX, I don't see any dependency to IPEX. better rename it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
model = construct_model(args) | ||
model.model.sparse_arch = model.model.sparse_arch.bfloat16() | ||
|
||
qconfig = FP8Config( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know Linear is in default quantization op list. how does EmbeddingBag include in quantization op list? we add it to default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, currently cpu device supports Conv, Linear and EmbeddingBag fp8 quant by default.
neural-compressor/neural_compressor/torch/algorithms/fp8_quant/_core/patching_common.py
Line 139 in d04fb1c
PATCHED_MODULE_TABLE["cpu"].update({"Linear": ModuleInfo("linear", PatchedLinear), |
Type of Change
example
Description
Add dlrm_v2 CPU FP8 QDQ example
depend on #2238
fp32: 0.8031
FP8: 0.8080