Skip to content

WIP: Feature Quantization Scaffolding#682

Draft
jchmura-sc wants to merge 45 commits into
mainfrom
jchmura/feature_quantization_gigl
Draft

WIP: Feature Quantization Scaffolding#682
jchmura-sc wants to merge 45 commits into
mainfrom
jchmura/feature_quantization_gigl

Conversation

@jchmura-sc

@jchmura-sc jchmura-sc commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

TODO

@jchmura-sc jchmura-sc self-assigned this Jun 29, 2026
Comment thread gigl/common/data/dataloaders.py
@jchmura-sc

Copy link
Copy Markdown
Collaborator Author

/unit_test

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

GiGL Automation

@ 20:23:16UTC : 🔄 C++ Unit Test started.

@ 20:25:02UTC : ✅ Workflow completed successfully.

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

GiGL Automation

@ 20:23:18UTC : 🔄 Python Unit Test started.

@ 20:28:19UTC : ❌ Workflow failed.
Please check the logs for more details.

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

GiGL Automation

@ 20:23:19UTC : 🔄 Scala Unit Test started.

@ 20:33:56UTC : ✅ Workflow completed successfully.

"Cannot materialize quantized features with "
f"{dequantized.size(0)} rows into existing x with {x.size(0)} rows."
)
node_store.x = torch.cat([x, dequantized], dim=1)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Here is where we'd need to scatter write raw and quantized node features if preserving original feature order is a requirement.

@jchmura-sc

Copy link
Copy Markdown
Collaborator Author

/unit_test

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

GiGL Automation

@ 22:21:08UTC : 🔄 Python Unit Test started.

@ 23:37:31UTC : ✅ Workflow completed successfully.

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

GiGL Automation

@ 22:21:08UTC : 🔄 Scala Unit Test started.

@ 22:29:50UTC : ✅ Workflow completed successfully.

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

GiGL Automation

@ 22:21:08UTC : 🔄 C++ Unit Test started.

@ 22:22:54UTC : ✅ Workflow completed successfully.

Comment thread proto/snapchat/research/gbml/preprocessed_metadata.proto
Comment thread gigl/src/data_preprocessor/data_preprocessor.py Outdated
Comment thread gigl/distributed/distributed_neighborloader.py Outdated
Comment thread gigl/types/graph.py


@dataclass
class FeatureQuantizationMetadata:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

can be made frozen, as in the scatter pr

for ntype, fut in nfeat_fut_dict.items():
nfeats = await wrap_torch_future(fut)
result_map[f"{as_str(ntype)}.nfeats"] = nfeats
if self.dist_node_quantized_feature is not None:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Why don't we fire off the async_get concurrently for all feature stores simulatenously (when not using synchronous path)...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Also, it might be nice to add debug logs here that report how many bytes of transfer occurred for each feature (at the least, so that we can confirm the expected reduction when quantization is enabled)

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