Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ant-louis/belgpt2
/ types & classes
Types & classes
35 in github.com/ant-louis/belgpt2
⨍
Functions
256
◇
Types & classes
35
↓ 4 callers
Class
ParallelDataset
scripts/tools/xlm/data/dataset.py:244
↓ 4 callers
Class
TransformerModel
scripts/tools/xlm/model/transformer.py:241
↓ 3 callers
Class
Dataset
scripts/tools/xlm/data/dataset.py:80
↓ 2 callers
Class
Dictionary
scripts/tools/xlm/data/dictionary.py:29
↓ 2 callers
Class
LineByLineTextDataset
scripts/tools/run_language_modeling.py:117
↓ 2 callers
Class
MultiHeadAttention
scripts/tools/xlm/model/transformer.py:151
↓ 2 callers
Class
TextDataset
scripts/tools/run_language_modeling.py:69
↓ 1 callers
Class
AttrDict
scripts/tools/xlm/utils.py:29
↓ 1 callers
Class
BeamHypotheses
scripts/tools/xlm/model/transformer.py:740
↓ 1 callers
Class
BottleneckResidualConv2d
scripts/tools/xlm/model/memory/query.py:82
↓ 1 callers
Class
GroupedLinear
scripts/tools/xlm/model/memory/query.py:59
↓ 1 callers
Class
LogFormatter
scripts/tools/xlm/logger.py:13
↓ 1 callers
Class
PredLayer
Prediction layer (cross_entropy or adaptive_softmax).
scripts/tools/xlm/model/transformer.py:106
↓ 1 callers
Class
QueryConv
scripts/tools/xlm/model/memory/query.py:204
↓ 1 callers
Class
QueryIdentity
scripts/tools/xlm/model/memory/query.py:114
↓ 1 callers
Class
QueryMLP
scripts/tools/xlm/model/memory/query.py:153
↓ 1 callers
Class
SentenceEmbedder
scripts/tools/xlm/model/embedder.py:23
↓ 1 callers
Class
StreamDataset
scripts/tools/xlm/data/dataset.py:17
↓ 1 callers
Class
TransformerFFN
scripts/tools/xlm/model/transformer.py:224
Class
Adam
Same as https://github.com/pytorch/pytorch/blob/master/torch/optim/adam.py, without amsgrad, with step in a tensor, and states initialization
scripts/tools/xlm/optim.py:16
Class
AdamCosineWithWarmup
Assign LR based on a cyclical schedule that follows the cosine function. See https://arxiv.org/pdf/1608.03983.pdf for details. We also su
scripts/tools/xlm/optim.py:142
Class
AdamInverseSqrtWithWarmup
Decay the LR based on the inverse square root of the update number. We also support a warmup phase where we linearly increase the learning ra
scripts/tools/xlm/optim.py:89
Class
EncDecEvaluator
scripts/tools/xlm/evaluation/evaluator.py:461
Class
EncDecTrainer
scripts/tools/xlm/trainer.py:862
Class
Evaluator
scripts/tools/xlm/evaluation/evaluator.py:84
Class
FLUE
scripts/tools/xlm/evaluation/flue.py:41
Class
GLUE
scripts/tools/xlm/evaluation/glue.py:47
Class
HashingMemory
scripts/tools/xlm/model/memory/memory.py:18
Class
HashingMemoryFlat
scripts/tools/xlm/model/memory/memory.py:409
Class
HashingMemoryProduct
scripts/tools/xlm/model/memory/memory.py:518
Class
HashingMemoryProductFast
scripts/tools/xlm/model/memory/memory.py:635
Class
SingleEvaluator
scripts/tools/xlm/evaluation/evaluator.py:448
Class
SingleTrainer
scripts/tools/xlm/trainer.py:844
Class
Trainer
scripts/tools/xlm/trainer.py:32
Class
XNLI
scripts/tools/xlm/evaluation/xnli.py:31