Comments (1)
Thank you for your comments. You are correct that the translation to ONNX has issues due to lack of ONNX support for some of the operators used to describe the model. Let me address some of your suggestions below.
- There are tradeoffs associated with using Embedding and EmbeddingBag layers. Perhaps the most critical difference is that the inputs to the layers are defined differently. In particular, EmbeddingBag allows lookups with different number of indices to be easily batched together, while Embedding requires the number of indices in each lookup to be constant within a batch.
For the Kaggle Display Advertising Challenge Dataset this difference is irrelevant because each lookup has a single index in it, but the model is more general and can accept multiple indices per lookup (which can be controlled with a parameter from the command line). That is why we made a conscious choice to use the EmbeddingBag layer in the implementation.
- This change seems reasonable. It make the code more compatible with ONNX at the expense of making it slightly more complicated. As you mentioned ultimately you will still hit a 2GB limit for buffer sizes for this dataset.
Therefore, if you are interested in saving protobuf without the parameters (weights/bias) then my advice is to try to use the Caffe2 version with an option "--save-proto-types-shapes", which should save the protobuf of the model including the shape and type of each of the operators. Alternatively, you can use the PyTorch version with an option "--save-model" and "--load-model" to save and load the model with parameters, respectively.
from dlrm.
Related Issues (20)
- ONNX export from pretrained pt file HOT 1
- Embedding values in different training environment HOT 2
- RuntimeError: [enforce fail at embedding_lookup_idx.cc:215] current == index_size. 0 vs -1. Your input seems to be incorrect: the sum of lengths values should be the size of the indices tensor, but it appears not. HOT 2
- How does pytorch handle backward pass in a multi-GPU setting? HOT 2
- how to train dlrm with multi-gpu HOT 1
- What is the training cycle of DLRM? HOT 4
- torchrec: Super slow allreduce in multi-node multi-gpu setting HOT 3
- Embedding_bag operator on GPU HOT 1
- fail to run dlrm_s_pytorch.py on single node multiple GPUs with nccl HOT 1
- python3 HOT 1
- how to inference ./dlrm_s_criteo_kaggle.sh HOT 1
- Getting Nan loss when training dlrm with Kaggle Criteo dataset HOT 7
- Question regarding the pooling in QR trick HOT 1
- Issue with Activating UVM Function in torchrec_dlrm
- Size of embedding tables in MLPerf checkpoint
- Segmentation Fault on M1 Mac. HOT 1
- Help with installation. No module named caffe2
- Docker Build failing HOT 1
- Unable to preprocess Criteo Kaggle Display Advertising Challenge Dataset
- What's the purpose of torchrec_dlrm/?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dlrm.