BESS-KGE API Reference
High-level APIs for training/inference with BESS. |
|
Utilities for building and storing knowledge graph datasets as collections of (h,r,t) triples. |
|
Sharding of embedding tables and triple sets for distributed execution. |
|
Classes for sampling batches of positive and negative triples for each processing device, according to the BESS distribution scheme. |
|
Classes for sampling entities to use as corrupted heads/tails when constructing negative samples. |
|
PyTorch modules implementing the BESS distribution scheme [CJM+22] for KGE training and inference on multiple IPUs. |
|
Functions for scoring positive and negative triples, specific to each KGE model. |
|
Functions for computing the batch loss based on the scores of positive and negative samples. |
|
Utilities for computing metrics to evaluate the predictions of KGE models. |
|
Utilities for initializing and managing entity/relation embedding tables. |
|
General purpose utilities. |