Skip to content

Creating Checkpointhandle and connecting to EmbeddingRocksDB #4222

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Raahul46
Copy link

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

Design doc: https://docs.google.com/document/d/149LdAEHOLP7ei4hwVVkAFXGa4N9uLs1J7efxfBZp3dY/edit?tab=t.0#heading=h.49t3yfaqmt54

Context:
We are enabling the usage of rocksDB checkpoint feature in KVTensorWrapper. This allows us to create checkpoints of the embedding tables in SSD. Later, these checkpoints are used by the checkpointing component to create a checkpoint and upload it it to the manifold

In this diff:
CheckpointHandle:
It is an entity is responsible for storing the details of the rocksDB Checkpoint. It consists of the file paths to the checkpoint of all shards. When creating KVTensorWrappers, we use the same checkpointHandle object

  1. Creating CheckpointHandle class
  2. Adding the definition for CheckpointHandle constructor
  3. Adding CRUD functions for CheckpointHandle
  4. Connecting CheckpointHandle to EmbeddingRocksDB entity

Differential Revision: D75489827

Raahul Kalyaan Jakka added 2 commits May 30, 2025 15:20
Summary:

X-link: facebookresearch/FBGEMM#1288

Design doc: https://docs.google.com/document/d/149LdAEHOLP7ei4hwVVkAFXGa4N9uLs1J7efxfBZp3dY/edit?tab=t.0#heading=h.49t3yfaqmt54

Context:
We are enabling the usage of rocksDB checkpoint feature in KVTensorWrapper. This allows us to create checkpoints of the embedding tables in SSD. Later, these checkpoints are used by the checkpointing component to create a checkpoint and upload it it to the manifold 

In this diff:

We are adding all the helper functions to create folder structures in SSDs for storing the rocksDB checkpoints

Differential Revision: D75489819
Summary:
X-link: facebookresearch/FBGEMM#1300

Design doc: https://docs.google.com/document/d/149LdAEHOLP7ei4hwVVkAFXGa4N9uLs1J7efxfBZp3dY/edit?tab=t.0#heading=h.49t3yfaqmt54

Context:
We are enabling the usage of rocksDB checkpoint feature in KVTensorWrapper. This allows us to create checkpoints of the embedding tables in SSD. Later, these checkpoints are used by the checkpointing component to create a checkpoint and upload it it to the manifold 

In this diff:
CheckpointHandle: 
It is an entity is responsible for storing the details of the rocksDB Checkpoint. It consists of the file paths to the checkpoint of all shards. When creating KVTensorWrappers, we use the same checkpointHandle object

1. Creating CheckpointHandle class 
2. Adding the definition for CheckpointHandle constructor 
3. Adding CRUD functions for CheckpointHandle 
4. Connecting CheckpointHandle to EmbeddingRocksDB entity

Differential Revision: D75489827
Copy link

netlify bot commented May 30, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit f812b4e
🔍 Latest deploy log https://app.netlify.com/projects/pytorch-fbgemm-docs/deploys/683a2f4181056100088cedde
😎 Deploy Preview https://deploy-preview-4222--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.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75489827

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