Skip to content

Conversation

emlin
Copy link
Contributor

@emlin emlin commented Sep 30, 2025

Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/1974

In inference zch backend, we cannot use initializer to randomized init value for cache missing items, as the intializer does not work in parallel read and write mode.
The current behavior is to always get the first item in hash map, but that has less randmization.

This diff added a randmization for cache missing ids, also add a log to show the missing ids in every batch.

Differential Revision: D83612329

@facebook-github-bot
Copy link
Contributor

@emlin has exported this pull request. If you are a Meta employee, you can view the originating Diff in D83612329.

Copy link

netlify bot commented Sep 30, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit bf524d3
🔍 Latest deploy log https://app.netlify.com/projects/pytorch-fbgemm-docs/deploys/68e31cdec583eb0008b3e11c
😎 Deploy Preview https://deploy-preview-4955--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@emlin emlin force-pushed the export-D83612329 branch from e1c4be6 to 3f33ee0 Compare October 5, 2025 04:20
emlin added a commit to emlin/FBGEMM that referenced this pull request Oct 5, 2025
…pytorch#4955)

Summary:

X-link: facebookresearch/FBGEMM#1974

In inference zch backend, we cannot use initializer to randomized init value for cache missing items, as the intializer does not work in parallel read and write mode.
The current behavior is to always get the first item in hash map, but that has less randmization.

This diff added a randmization for cache missing ids, also add a log to show the missing ids in every batch.

Reviewed By: EddyLXJ

Differential Revision: D83612329
Copy link
Contributor

meta-codesync bot commented Oct 5, 2025

@emlin has exported this pull request. If you are a Meta employee, you can view the originating Diff in D83612329.

…pytorch#4955)

Summary:

X-link: facebookresearch/FBGEMM#1974

In inference zch backend, we cannot use initializer to randomized init value for cache missing items, as the intializer does not work in parallel read and write mode.
The current behavior is to always get the first item in hash map, but that has less randmization.

This diff added a randmization for cache missing ids, also add a log to show the missing ids in every batch.

Reviewed By: EddyLXJ

Differential Revision: D83612329
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 4a88713.

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