Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/circlePi/Pretraining-Yourself-Bert-From-Scratch
/ types & classes
Types & classes
37 in github.com/circlePi/Pretraining-Yourself-Bert-From-Scratch
⨍
Functions
114
◇
Types & classes
37
↓ 7 callers
Class
BertModel
BERT model ("Bidirectional Embedding Representations from a Transformer"). Params: config: a BertConfig class instance with the configura
lm_smallBert/pytorch_pretrained_bert/modeling.py:652
↓ 4 callers
Class
BertLayerNorm
lm_smallBert/pytorch_pretrained_bert/modeling.py:231
↓ 2 callers
Class
BertLMPredictionHead
lm_smallBert/pytorch_pretrained_bert/modeling.py:446
↓ 1 callers
Class
BasicTokenizer
Runs basic tokenization (punctuation splitting, lower casing, etc.).
lm_smallBert/pytorch_pretrained_bert/tokenization.py:201
↓ 1 callers
Class
BertAdam
Implements BERT version of Adam algorithm with weight decay fix. Params: lr: learning rate warmup: portion of t_total for the warm
lm_smallBert/pytorch_pretrained_bert/optimization.py:177
↓ 1 callers
Class
BertAttention
lm_smallBert/pytorch_pretrained_bert/modeling.py:342
↓ 1 callers
Class
BertConfig
Configuration class to store the configuration of a `BertModel`.
lm_smallBert/pytorch_pretrained_bert/modeling.py:134
↓ 1 callers
Class
BertEmbeddings
Construct the embeddings from word, position and token_type embeddings.
lm_smallBert/pytorch_pretrained_bert/modeling.py:246
↓ 1 callers
Class
BertEncoder
lm_smallBert/pytorch_pretrained_bert/modeling.py:397
↓ 1 callers
Class
BertForMaskedLM
BERT model with the masked language modeling head. This module comprises the BERT model followed by the masked language modeling head. Params
lm_smallBert/pytorch_pretrained_bert/modeling.py:806
↓ 1 callers
Class
BertIntermediate
lm_smallBert/pytorch_pretrained_bert/modeling.py:354
↓ 1 callers
Class
BertLayer
lm_smallBert/pytorch_pretrained_bert/modeling.py:383
↓ 1 callers
Class
BertOnlyMLMHead
lm_smallBert/pytorch_pretrained_bert/modeling.py:465
↓ 1 callers
Class
BertOnlyNSPHead
lm_smallBert/pytorch_pretrained_bert/modeling.py:475
↓ 1 callers
Class
BertOutput
lm_smallBert/pytorch_pretrained_bert/modeling.py:369
↓ 1 callers
Class
BertPooler
lm_smallBert/pytorch_pretrained_bert/modeling.py:414
↓ 1 callers
Class
BertPreTrainingHeads
lm_smallBert/pytorch_pretrained_bert/modeling.py:485
↓ 1 callers
Class
BertPredictionHeadTransform
lm_smallBert/pytorch_pretrained_bert/modeling.py:429
↓ 1 callers
Class
BertSelfAttention
lm_smallBert/pytorch_pretrained_bert/modeling.py:277
↓ 1 callers
Class
BertSelfOutput
lm_smallBert/pytorch_pretrained_bert/modeling.py:328
↓ 1 callers
Class
BertTokenizer
Runs end-to-end tokenization: punctuation splitting + wordpiece
lm_smallBert/pytorch_pretrained_bert/tokenization.py:74
↓ 1 callers
Class
InputFeatures
A single set of features of data.
lm_smallBert/run_pretraining.py:36
↓ 1 callers
Class
WordpieceTokenizer
Runs WordPiece tokenization.
lm_smallBert/pytorch_pretrained_bert/tokenization.py:318
Class
BertForMultipleChoice
BERT model for multiple choice tasks. This module is composed of the BERT model with a linear layer on top of the pooled output. Params:
lm_smallBert/pytorch_pretrained_bert/modeling.py:995
Class
BertForNextSentencePrediction
BERT model with next sentence prediction head. This module comprises the BERT model followed by the next sentence classification head. Params
lm_smallBert/pytorch_pretrained_bert/modeling.py:867
Class
BertForPreTraining
BERT model with pre-training heads. This module comprises the BERT model followed by the two pre-training heads: - the masked language mod
lm_smallBert/pytorch_pretrained_bert/modeling.py:735
Class
BertForQuestionAnswering
BERT model for Question Answering (span extraction). This module is composed of the BERT model with a linear layer on top of the sequence outp
lm_smallBert/pytorch_pretrained_bert/modeling.py:1137
Class
BertForSequenceClassification
BERT model for classification. This module is composed of the BERT model with a linear layer on top of the pooled output. Params:
lm_smallBert/pytorch_pretrained_bert/modeling.py:929
Class
BertForTokenClassification
BERT model for token-level classification. This module is composed of the BERT model with a linear layer on top of the full hidden state of th
lm_smallBert/pytorch_pretrained_bert/modeling.py:1064
Class
BertPreTrainedModel
An abstract class to handle weights initialization and a simple interface for dowloading and loading pretrained models.
lm_smallBert/pytorch_pretrained_bert/modeling.py:497
Class
ConstantLR
lm_smallBert/pytorch_pretrained_bert/optimization.py:81
Class
WarmupConstantSchedule
Applies linear warmup. After warmup always returns 1..
lm_smallBert/pytorch_pretrained_bert/optimization.py:147
Class
WarmupCosineSchedule
Cosine learning rate schedule with linear warmup. Cosine after warmup is without restarts.
lm_smallBert/pytorch_pretrained_bert/optimization.py:86
Class
WarmupCosineWithHardRestartsSchedule
Cosine learning rate schedule with linear warmup and hard restarts (if cycles > 1).
lm_smallBert/pytorch_pretrained_bert/optimization.py:109
Class
WarmupCosineWithWarmupRestartsSchedule
Cosine learning rate schedule with linear warmups and linear warmup restarts. The same warmup rate is used for warmup restarts as for initial
lm_smallBert/pytorch_pretrained_bert/optimization.py:126
Class
WarmupLinearSchedule
Linear warmup. Linear decay after warmup.
lm_smallBert/pytorch_pretrained_bert/optimization.py:157
Class
_LRSchedule
Parent of all LRSchedules here.
lm_smallBert/pytorch_pretrained_bert/optimization.py:35