Skip to content

Creating RocksDBCheckpointHandler to expose rocksdb checkpoint to python #4224

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

Closed
wants to merge 4 commits into from

Conversation

Raahul46
Copy link

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

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:

  1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
  2. Adding a checkpointhandle attribute to the KVTensorWrapper
  3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Differential Revision: D75489849

Copy link

netlify bot commented May 30, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit dfa7ada
🔍 Latest deploy log https://app.netlify.com/projects/pytorch-fbgemm-docs/deploys/6841dedca3f9be00073c0994
😎 Deploy Preview https://deploy-preview-4224--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: D75489849

Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 4, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 4, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 4, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 4, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 4, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
@Raahul46 Raahul46 force-pushed the export-D75489849 branch from 234ec36 to 4e573ea Compare June 5, 2025 02:15
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
@Raahul46 Raahul46 force-pushed the export-D75489849 branch from 4e573ea to 7862394 Compare June 5, 2025 02:16
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

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

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

Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:
Pull Request resolved: pytorch#4224

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
@Raahul46 Raahul46 force-pushed the export-D75489849 branch from 7862394 to a9a5f8e Compare June 5, 2025 02:18
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
@Raahul46 Raahul46 force-pushed the export-D75489849 branch from a9a5f8e to 0f230e0 Compare June 5, 2025 02:23
@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

@Raahul46 Raahul46 force-pushed the export-D75489849 branch from 0f230e0 to ab31efd Compare June 5, 2025 02:24
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:
Pull Request resolved: pytorch#4224

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
raahul46 added 3 commits June 5, 2025 10:29
Differential Revision: D75489819
Differential Revision: D75489827
Differential Revision: D75489841
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
@Raahul46 Raahul46 force-pushed the export-D75489849 branch from ab31efd to 5a3ae1f Compare June 5, 2025 18:00
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
@Raahul46 Raahul46 force-pushed the export-D75489849 branch from 5a3ae1f to eac1779 Compare June 5, 2025 18:01
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

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

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

@Raahul46 Raahul46 force-pushed the export-D75489849 branch from eac1779 to 2a4bf51 Compare June 5, 2025 18:03
Raahul46 pushed a commit to Raahul46/FBGEMM-1 that referenced this pull request Jun 5, 2025
…hon (pytorch#4224)

Summary:
Pull Request resolved: pytorch#4224

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

Differential Revision: D75489849
…hon (pytorch#4224)

Summary:
Pull Request resolved: pytorch#4224

X-link: facebookresearch/FBGEMM#1302

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:
1. Creating a RocksDBCheckpointHandlerWrapper class to expose the rocksdb checkpoint to python
2. Adding a checkpointhandle attribute to the KVTensorWrapper
3. Adding changes in the training loop to accommodate creation of KVTensor with checkpointHandle

Reviewed By: duduyi2013

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 05763d3.

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