Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FLC777/GLAT
/ types & classes
Types & classes
478 in github.com/FLC777/GLAT
⨍
Functions
3,098
◇
Types & classes
478
↳
Endpoints
1
↓ 35 callers
Class
FairseqDropout
fairseq/modules/fairseq_dropout.py:16
↓ 18 callers
Class
PrependTokenDataset
fairseq/data/prepend_token_dataset.py:12
↓ 13 callers
Class
ConcatDataset
fairseq/data/concat_dataset.py:14
↓ 12 callers
Class
LanguagePairDataset
A pair of torch.utils.data.Datasets. Args: src (torch.utils.data.Dataset): source dataset to wrap src_sizes (List[int]): sou
fairseq/data/language_pair_dataset.py:165
↓ 12 callers
Class
NumelDataset
fairseq/data/numel_dataset.py:12
↓ 10 callers
Class
TokenBlockDataset
Break a Dataset of tokens into blocks. Args: dataset (~torch.utils.data.Dataset): dataset to break into blocks sizes (List[int]):
fairseq/data/token_block_dataset.py:12
↓ 9 callers
Class
MultiheadAttention
Multi-headed attention. See "Attention Is All You Need" for more details.
fairseq/modules/multihead_attention.py:20
↓ 8 callers
Class
NestedDictionaryDataset
fairseq/data/nested_dictionary_dataset.py:47
↓ 7 callers
Class
AppendTokenDataset
fairseq/data/append_token_dataset.py:12
↓ 7 callers
Class
Dictionary
A mapping from symbols to consecutive integers
fairseq/data/dictionary.py:18
↓ 7 callers
Class
IdDataset
fairseq/data/id_dataset.py:11
↓ 7 callers
Class
PadDataset
fairseq/data/pad_dataset.py:11
↓ 7 callers
Class
SortDataset
fairseq/data/sort_dataset.py:11
↓ 6 callers
Class
RightPadDataset
fairseq/data/pad_dataset.py:26
↓ 6 callers
Class
StripTokenDataset
fairseq/data/strip_token_dataset.py:9
↓ 6 callers
Class
TransposeLast
fairseq/modules/transpose_last.py:12
↓ 6 callers
Class
UnorderedConstraintState
Records progress through the set of constraints for each item in the beam using a trie.
fairseq/token_generation_constraints.py:202
↓ 5 callers
Class
AdaptiveSoftmax
This is an implementation of the efficient softmax approximation for graphical processing units (GPU), described in the paper "Efficient soft
fairseq/modules/adaptive_softmax.py:58
↓ 5 callers
Class
OrderedConstraintState
Records progress through the set of linear nonbranching constraints with gaps.
fairseq/token_generation_constraints.py:387
↓ 4 callers
Class
ConvTBC
1D convolution over an input of shape (time x batch x channel) The implementation uses gemm to perform the convolution. This implementation i
fairseq/modules/conv_tbc.py:12
↓ 4 callers
Class
MetersDict
A sorted dictionary of :class:`Meters`. Meters are sorted according to a priority that is given when the meter is first added to the dictiona
fairseq/logging/meters.py:221
↓ 4 callers
Class
ModuleProxyWrapper
Wrap a DistributedDataParallel module and forward requests for missing attributes to the module wrapped by DDP (the twice-wrapped module).
fairseq/distributed/module_proxy_wrapper.py:9
↓ 4 callers
Class
NumSamplesDataset
fairseq/data/num_samples_dataset.py:9
↓ 4 callers
Class
RobertaHubInterface
A simple PyTorch Hub interface to RoBERTa. Usage: https://github.com/pytorch/fairseq/tree/master/examples/roberta
fairseq/models/roberta/hub_interface.py:14
↓ 4 callers
Class
TruncateDataset
Truncate a sequence by returning the first truncation_length tokens
fairseq/data/shorten_dataset.py:12
↓ 3 callers
Class
BeamSearch
fairseq/search.py:103
↓ 3 callers
Class
CommonEvalConfig
fairseq/dataclass/configs.py:836
↓ 3 callers
Class
Fp32GroupNorm
fairseq/modules/fp32_group_norm.py:13
↓ 3 callers
Class
GenerationConfig
fairseq/dataclass/configs.py:642
↓ 3 callers
Class
GumbelVectorQuantizer
fairseq/modules/gumbel_vector_quantizer.py:11
↓ 3 callers
Class
LRUCacheDataset
fairseq/data/lru_cache_dataset.py:11
↓ 3 callers
Class
LayerDropModuleList
A LayerDrop implementation based on :class:`torch.nn.ModuleList`. We refresh the choice of which layers to drop every time we iterate ov
fairseq/modules/layer_drop.py:13
↓ 3 callers
Class
LearnedPositionalEmbedding
This module learns positional embeddings up to a fixed maximum size. Padding ids are ignored by either offsetting based on padding_idx or
fairseq/modules/learned_positional_embedding.py:15
↓ 3 callers
Class
ModelParallelMultiheadAttention
Model parallel Multi-headed attention. This performs the Multi-headed attention over multiple gpus. See "Megatron-LM: https://arxiv.org/pdf/1
fairseq/model_parallel/modules/multihead_attention.py:30
↓ 3 callers
Class
NATransformerDecoder
fairseq/models/nat/nonautoregressive_transformer.py:217
↓ 3 callers
Class
NATransformerEncoder
fairseq/models/nat/nonautoregressive_transformer.py:427
↓ 3 callers
Class
RawLabelDataset
fairseq/data/raw_label_dataset.py:11
↓ 3 callers
Class
ResamplingDataset
Randomly samples from a given dataset at each epoch. Sampling is done with or without replacement, depending on the "replace" parameter.
fairseq/data/resampling_dataset.py:15
↓ 3 callers
Class
RoundRobinZipDatasets
Zip multiple :class:`~fairseq.data.FairseqDataset` instances together. Shorter datasets are repeated in a round-robin fashion to match the length
fairseq/data/round_robin_zip_datasets.py:17
↓ 3 callers
Class
SequenceScorer
Scores the target for a given source sentence.
fairseq/sequence_scorer.py:12
↓ 3 callers
Class
StopwatchMeter
Computes the sum/avg duration of some event in seconds
fairseq/logging/meters.py:165
↓ 3 callers
Class
TiedLinear
fairseq/modules/adaptive_softmax.py:16
↓ 3 callers
Class
TransformerEncoderLayer
Encoder layer block. In the original paper each operation (multi-head attention or FFN) is postprocessed with: `dropout -> add residual -> la
fairseq/modules/transformer_layer.py:17
↓ 2 callers
Class
Adam
r"""Implements Adam algorithm. This implementation is modified from torch.optim.Adam based on: `Fixed Weight Decay Regularization in Adam`
fairseq/optim/adam.py:97
↓ 2 callers
Class
AdaptiveInput
fairseq/modules/adaptive_input.py:14
↓ 2 callers
Class
BucketPadLengthDataset
Bucket and pad item lengths to the nearest bucket size. This can be used to reduce the number of unique batch shapes, which is important on T
fairseq/data/bucket_pad_length_dataset.py:11
↓ 2 callers
Class
BufferedIterator
fairseq/data/iterators.py:595
↓ 2 callers
Class
CharacterTokenEmbedder
fairseq/modules/character_token_embedder.py:22
↓ 2 callers
Class
CheckpointConfig
fairseq/dataclass/configs.py:498
↓ 2 callers
Class
CommonConfig
fairseq/dataclass/configs.py:83
↓ 2 callers
Class
ConcatSentencesDataset
fairseq/data/concat_sentences_dataset.py:11
↓ 2 callers
Class
ConstraintNode
Represents a node in a trie managing unordered constraints.
fairseq/token_generation_constraints.py:111
↓ 2 callers
Class
CountingIterator
Wrapper around an iterable that maintains the iteration count. Args: iterable (iterable): iterable to wrap start (int): starting
fairseq/data/iterators.py:27
↓ 2 callers
Class
DatasetConfig
fairseq/dataclass/configs.py:362
↓ 2 callers
Class
DenoisingDataset
A wrapper around TokenBlockDataset for BART dataset. Args: dataset (TokenBlockDataset): dataset to wrap sizes (List[int]): s
fairseq/data/denoising_dataset.py:95
↓ 2 callers
Class
DistributedTrainingConfig
fairseq/dataclass/configs.py:198
↓ 2 callers
Class
Downsample
Selects every nth element, where n is the index
fairseq/modules/downsampled_multihead_attention.py:287
↓ 2 callers
Class
DownsampledMultiHeadAttention
Multi-headed attention with Gating and Downsampling
fairseq/modules/downsampled_multihead_attention.py:170
↓ 2 callers
Class
DynamicLossScaler
fairseq/optim/dynamic_loss_scaler.py:7
↓ 2 callers
Class
EvalLMConfig
fairseq/dataclass/configs.py:865
↓ 2 callers
Class
EvaluationTokenizer
A generic evaluation-time tokenizer, which leverages built-in tokenizers in sacreBLEU (https://github.com/mjpost/sacrebleu). It additionally provi
fairseq/scoring/tokenizer.py:11
↓ 2 callers
Class
FConvDecoder
Convolutional decoder
fairseq/models/fconv.py:380
↓ 2 callers
Class
FairseqBMUFConfig
fairseq/dataclass/configs.py:615
↓ 2 callers
Class
Fp32LayerNorm
fairseq/modules/layer_norm.py:38
↓ 2 callers
Class
IndexedDataset
Loader for TorchNet IndexedDataset
fairseq/data/indexed_dataset.py:135
↓ 2 callers
Class
InteractiveConfig
fairseq/dataclass/configs.py:893
↓ 2 callers
Class
IterativeRefinementGenerator
fairseq/iterative_refinement_generator.py:19
↓ 2 callers
Class
LSTMDecoder
LSTM decoder.
fairseq/models/lstm.py:383
↓ 2 callers
Class
LightConvDecoder
LightConv decoder consisting of *args.decoder_layers* layers. Each layer is a :class:`LightConvDecoderLayer`. Args: args (argpar
fairseq/models/lightconv.py:425
↓ 2 callers
Class
LinearizedConvolution
An optimized version of nn.Conv1d. At training time, this module uses ConvTBC, which is an optimized version of Conv1d. At inference time, it
fairseq/modules/linearized_convolution.py:17
↓ 2 callers
Class
MaskedLMDataset
A wrapper Dataset for masked language modelling. The dataset wraps around TokenBlockDataset or BlockedPairDataset and creates a batch whe
fairseq/data/legacy/masked_lm_dataset.py:17
↓ 2 callers
Class
ModelParallelTransformerDecoder
Model Parallel Transformer decoder consisting of *args.decoder_layers* layers. Each layer is a :class:`ModelParallelTransformerDecoderLayer`.
fairseq/model_parallel/models/transformer.py:98
↓ 2 callers
Class
ModelParallelTransformerEncoder
Model parallel Transformer encoder consisting of *args.encoder_layers* layers. Each layer is a :class:`ModelParallelTransformerEncoderLayer`.
fairseq/model_parallel/models/transformer.py:82
↓ 2 callers
Class
NumpyExtension
Source: https://stackoverflow.com/a/54128391
setup.py:53
↓ 2 callers
Class
OptimizationConfig
fairseq/dataclass/configs.py:451
↓ 2 callers
Class
RobertaLMHead
Head for masked language modeling.
fairseq/models/roberta/model.py:338
↓ 2 callers
Class
S2TDataConfig
Wrapper class for data config YAML
fairseq/data/audio/speech_to_text_dataset.py:29
↓ 2 callers
Class
SampledMultiDataset
Samples from multiple sub-datasets according to given sampling ratios. Args: datasets ( List[~torch.utils.data.Dataset]
fairseq/data/multilingual/sampled_multi_dataset.py:49
↓ 2 callers
Class
SelfAttention
fairseq/models/fconv_self_att.py:556
↓ 2 callers
Class
SequenceGenerator
fairseq/sequence_generator.py:18
↓ 2 callers
Class
ShardedIterator
A sharded wrapper around an iterable, padded to length. Args: iterable (iterable): iterable to wrap num_shards (int): number of s
fairseq/data/iterators.py:537
↓ 2 callers
Class
SingleHeadAttention
Single-head attention that supports Gating and Downsampling
fairseq/modules/downsampled_multihead_attention.py:16
↓ 2 callers
Class
SpeechToTextDataset
fairseq/data/audio/speech_to_text_dataset.py:215
↓ 2 callers
Class
TimeMeter
Computes the average occurrence of some event per second
fairseq/logging/meters.py:112
↓ 2 callers
Class
TransformEosLangPairDataset
A :class:`~fairseq.data.FairseqDataset` wrapper that transform bos on collated samples of language pair dataset. Note that the transformation
fairseq/data/transform_eos_lang_pair_dataset.py:14
↓ 2 callers
Class
TransformerDecoder
Transformer decoder consisting of *args.decoder_layers* layers. Each layer is a :class:`TransformerDecoderLayer`. Args: args (ar
fairseq/model_parallel/models/pipeline_parallel_transformer/model.py:590
↓ 2 callers
Class
TransformerDecoder
Transformer decoder consisting of *args.decoder_layers* layers. Each layer is a :class:`TransformerDecoderLayer`. Args: args (ar
fairseq/models/transformer.py:603
↓ 2 callers
Class
TransformerDecoderLayer
Decoder layer block. In the original paper each operation (multi-head attention, encoder attention or FFN) is postprocessed with: `dropout ->
fairseq/modules/transformer_layer.py:159
↓ 2 callers
Class
TransformerEncoder
Transformer encoder consisting of *args.encoder_layers* layers. Each layer is a :class:`TransformerEncoderLayer`. Args: args (ar
fairseq/model_parallel/models/pipeline_parallel_transformer/model.py:456
↓ 2 callers
Class
TransformerEncoder
Transformer encoder consisting of *args.encoder_layers* layers. Each layer is a :class:`TransformerEncoderLayer`. Args: args (ar
fairseq/models/transformer.py:316
↓ 2 callers
Class
Wav2VecEncoder
fairseq/models/wav2vec/wav2vec2_asr.py:270
↓ 1 callers
Class
ActivationQuantizer
Fake scalar quantization of the activations using a forward hook. Args: - module. a nn.Module for which we quantize the *post-activa
fairseq/modules/quantization/scalar/modules/qact.py:11
↓ 1 callers
Class
Adafactor
Implements Adafactor algorithm. This implementation is based on: `Adafactor: Adaptive Learning Rates with Sublinear Memory Cost` (see htt
fairseq/optim/adafactor.py:66
↓ 1 callers
Class
Adamax
Implements Adamax algorithm (a variant of Adam based on infinity norm). It has been proposed in `Adam: A Method for Stochastic Optimization`__.
fairseq/optim/adamax.py:49
↓ 1 callers
Class
AddTargetDataset
fairseq/data/add_target_dataset.py:11
↓ 1 callers
Class
AttentionLayer
fairseq/models/fconv.py:325
↓ 1 callers
Class
AttentionLayer
fairseq/models/lstm.py:347
↓ 1 callers
Class
AverageMeter
Computes and stores the average and current value
fairseq/logging/meters.py:67
↓ 1 callers
Class
AzureMLProgressBarWrapper
Log to Azure ML
fairseq/logging/progress_bar.py:440
↓ 1 callers
Class
BARTClassificationHead
Head for sentence-level classification tasks.
fairseq/models/bart/model.py:284
next →
1–100 of 478, ranked by callers