besskge.bess
PyTorch modules implementing the BESS distribution scheme [CJM+22] for KGE training and inference on multiple IPUs.
Classes
|
Distributed scoring of (h, r, ?) or (?, r, t) queries against the entities in the knowledge graph, returning all scores to host in blocks, based on the BESS [CJM+22] inference scheme. |
|
Base class for distributed training and inference of KGE models, using the distribution framework BESS [CJM+22]. |
|
Compute negative scores on the shard where the positive triples are scored (namely the head shard). |
|
Compute negative scores on the shard where the negative entities are stored. |
|
Distributed scoring of (h, r, ?) or (?, r, t) queries (against all entities in the knowledge graph, or a query-specific set) returning the top-k most likely completions, based on the BESS [CJM+22] inference scheme. |