You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@systemds.apache.org by "MaximilianSchreff (via GitHub)" <gi...@apache.org> on 2025/02/24 11:39:51 UTC
[PR] NN Built-In for Embedding Layers [systemds]
MaximilianSchreff opened a new pull request, #2236:
URL: https://github.com/apache/systemds/pull/2236
This PR adds the embedding layer as a built-in operator in our nn/layers library. The functionality is similar to pytorch.nn.Embedding (https://pytorch.org/docs/stable/generated/torch.nn.Embedding.html)
The layer receives indices as input which refer to indices of an embedding dictionary and returns an embedding matrix where row i refers to embedding vector indices[i] of the embedding dictionary.
This layer is used in every transformer architecture. Here the indices usually come from a tokenizer and the embedding matrix is the input to the actual transformer model.
### Testing
- Testing forward pass and backward pass for correctness
- Implemented as a component test in NNComponentTest.java
- Manually calculated test cases for the forward pass
- For backward pass, comparison against pytorches autograd module
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@systemds.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] NN Built-In for Embedding Layers [systemds]
Posted by "MaximilianSchreff (via GitHub)" <gi...@apache.org>.
MaximilianSchreff closed pull request #2236: NN Built-In for Embedding Layers
URL: https://github.com/apache/systemds/pull/2236
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@systemds.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org