Skip to content

[WIP][feat] support quantization in delta embedding dump - #629

Open
eric-gecheng wants to merge 1 commit into
alibaba:masterfrom
eric-gecheng:feat/delta_dump_support_quant
Open

[WIP][feat] support quantization in delta embedding dump#629
eric-gecheng wants to merge 1 commit into
alibaba:masterfrom
eric-gecheng:feat/delta_dump_support_quant

Conversation

@eric-gecheng

Copy link
Copy Markdown
Collaborator

Add quant_type field to DeltaEmbeddingDumpConfig that enables QUint8RowwiseF16 rowwise quantization (uint8 values + fp16 scale/offset, same format as distributed sparse export) for delta dump parquet output and FeatureStore upload. When INT8 is selected, embeddings are quantized via the existing distributed_quantize_embeddings utility before being written to parquet or submitted to the uploader. The uploader requires no changes — it is already type-agnostic and receives emb_dim+4 as the expected list length to account for the per-row scale/offset trailer.

Add quant_type field to DeltaEmbeddingDumpConfig that enables
QUint8RowwiseF16 rowwise quantization (uint8 values + fp16
scale/offset, same format as distributed sparse export) for delta
dump parquet output and FeatureStore upload. When INT8 is selected,
embeddings are quantized via the existing distributed_quantize_embeddings
utility before being written to parquet or submitted to the uploader.
The uploader requires no changes — it is already type-agnostic and
receives emb_dim+4 as the expected list length to account for the
per-row scale/offset trailer.
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.

1 participant