MCPcopy Create free account

hub / github.com/Sally-SH/VSP-LLM / types & classes

Types & classes878 in github.com/Sally-SH/VSP-LLM

↓ 36 callersClassFairseqDropout
fairseq/fairseq/modules/fairseq_dropout.py:16
↓ 22 callersClassLanguagePairDataset
A pair of torch.utils.data.Datasets. Args: src (torch.utils.data.Dataset): source dataset to wrap src_sizes (List[int]): sou
fairseq/fairseq/data/language_pair_dataset.py:165
↓ 21 callersClassPrependTokenDataset
fairseq/fairseq/data/prepend_token_dataset.py:12
↓ 21 callersClassTokenBlockDataset
Break a Dataset of tokens into blocks. Args: dataset (~torch.utils.data.Dataset): dataset to break into blocks sizes (List[int]):
fairseq/fairseq/data/token_block_dataset.py:13
↓ 20 callersClassDictionary
A mapping from symbols to consecutive integers
fairseq/fairseq/data/dictionary.py:18
↓ 16 callersClassConcatDataset
fairseq/fairseq/data/concat_dataset.py:14
↓ 16 callersClassSequenceGenerator
fairseq/fairseq/sequence_generator.py:19
↓ 15 callersClassNumelDataset
fairseq/fairseq/data/numel_dataset.py:12
↓ 11 callersClassListDataset
fairseq/fairseq/data/list_dataset.py:9
↓ 11 callersClassNestedDictionaryDataset
fairseq/fairseq/data/nested_dictionary_dataset.py:47
↓ 10 callersClassIdDataset
fairseq/fairseq/data/id_dataset.py:11
↓ 10 callersClassPlasmaView
Interface to write and read from shared memory. Whereas PlasmaArray writes to plasma on serialization, PlasmaView writes to shared memory on insta
fairseq/fairseq/data/plasma_utils.py:100
↓ 10 callersClassSortDataset
fairseq/fairseq/data/sort_dataset.py:11
↓ 9 callersClassMultiheadAttention
Multi-headed attention. See "Attention Is All You Need" for more details.
fairseq/fairseq/modules/multihead_attention.py:20
↓ 8 callersClassPadDataset
fairseq/fairseq/data/pad_dataset.py:11
↓ 8 callersClassTransposeLast
fairseq/fairseq/modules/transpose_last.py:12
↓ 7 callersClassAppendTokenDataset
fairseq/fairseq/data/append_token_dataset.py:12
↓ 7 callersClassNumSamplesDataset
fairseq/fairseq/data/num_samples_dataset.py:9
↓ 7 callersClassRightPadDataset
fairseq/fairseq/data/pad_dataset.py:26
↓ 7 callersClassRoundRobinZipDatasets
Zip multiple :class:`~fairseq.data.FairseqDataset` instances together. Shorter datasets are repeated in a round-robin fashion to match the length
fairseq/fairseq/data/round_robin_zip_datasets.py:17
↓ 7 callersClassStopwatchMeter
Computes the sum/avg duration of some event in seconds
fairseq/fairseq/logging/meters.py:197
↓ 7 callersClassStripTokenDataset
fairseq/fairseq/data/strip_token_dataset.py:9
↓ 7 callersClassUnorderedConstraintState
Records progress through the set of constraints for each item in the beam using a trie.
fairseq/fairseq/token_generation_constraints.py:202
↓ 6 callersClassDLDataset
fairseq/examples/multilingual/data_scripts/download_wmt19_and_before.py:38
↓ 6 callersClassTransformerDecoderLayer
Decoder layer block. In the original paper each operation (multi-head attention, encoder attention or FFN) is postprocessed with: `dropout ->
fairseq/fairseq/modules/transformer_layer.py:160
↓ 6 callersClassVGGTransformerEncoder
VGG + Transformer encoder
fairseq/examples/speech_recognition/models/vggtransformer.py:216
↓ 5 callersClassAdaptiveSoftmax
This is an implementation of the efficient softmax approximation for graphical processing units (GPU), described in the paper "Efficient soft
fairseq/fairseq/modules/adaptive_softmax.py:58
↓ 5 callersClassCommonEvalConfig
fairseq/fairseq/dataclass/configs.py:903
↓ 5 callersClassConvTBC
1D convolution over an input of shape (time x batch x channel) The implementation uses gemm to perform the convolution. This implementation i
fairseq/fairseq/modules/conv_tbc.py:12
↓ 5 callersClassEnsembleModel
A wrapper around an ensemble of models.
fairseq/fairseq/sequence_generator.py:734
↓ 5 callersClassFp32LayerNorm
fairseq/fairseq/models/speech_to_text/modules/emformer.py:56
↓ 5 callersClassModuleProxyWrapper
Wrap a DistributedDataParallel module and forward requests for missing attributes to the module wrapped by DDP (the twice-wrapped module).
fairseq/fairseq/distributed/module_proxy_wrapper.py:9
↓ 5 callersClassOrderedConstraintState
Records progress through the set of linear nonbranching constraints with gaps.
fairseq/fairseq/token_generation_constraints.py:387
↓ 5 callersClassResamplingDataset
Randomly samples from a given dataset at each epoch. Sampling is done with or without replacement, depending on the "replace" parameter.
fairseq/fairseq/data/resampling_dataset.py:15
↓ 5 callersClassSequenceScorer
Scores the target for a given source sentence.
fairseq/fairseq/sequence_scorer.py:12
↓ 5 callersClassTimeMeter
Computes the average occurrence of some event per second
fairseq/fairseq/logging/meters.py:144
↓ 5 callersClassTransformerEncoderLayer
Encoder layer block. In the original paper each operation (multi-head attention or FFN) is postprocessed with: `dropout -> add residual -> la
fairseq/fairseq/modules/transformer_layer.py:17
↓ 4 callersClassCheckpointConfig
fairseq/fairseq/dataclass/configs.py:564
↓ 4 callersClassCommonConfig
fairseq/fairseq/dataclass/configs.py:84
↓ 4 callersClassDatasetConfig
fairseq/fairseq/dataclass/configs.py:413
↓ 4 callersClassDistributedTimeoutWrapper
A wrapper that kills the process if no progress is made within a given *timeout*. The timer is reset every time :func:`forward` is called.
fairseq/fairseq/distributed/distributed_timeout_wrapper.py:17
↓ 4 callersClassDistributedTrainingConfig
fairseq/fairseq/dataclass/configs.py:225
↓ 4 callersClassGenerationConfig
fairseq/fairseq/dataclass/configs.py:725
↓ 4 callersClassMetersDict
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/fairseq/logging/meters.py:253
↓ 4 callersClassModel
fairseq/tests/test_activation_checkpointing.py:14
↓ 4 callersClassNGramRepeatBlock
Wrapper class for calling ngram_repeat_block cuda extension
fairseq/fairseq/ngram_repeat_block.py:39
↓ 4 callersClassPiecewiseLinearFn
Piecewise linear function. Can be configured with a string.
fairseq/fairseq/tasks/online_backtranslation.py:40
↓ 4 callersClassRawLabelDataset
fairseq/fairseq/data/raw_label_dataset.py:11
↓ 4 callersClassRobertaHubInterface
A simple PyTorch Hub interface to RoBERTa. Usage: https://github.com/pytorch/fairseq/tree/master/examples/roberta
fairseq/fairseq/models/roberta/hub_interface.py:14
↓ 4 callersClassSamePad
fairseq/fairseq/modules/same_pad.py:10
↓ 4 callersClassTransformerEncoder
fairseq/fairseq/models/wav2vec/wav2vec2.py:817
↓ 4 callersClassTruncateDataset
Truncate a sequence by returning the first truncation_length tokens
fairseq/fairseq/data/shorten_dataset.py:12
↓ 4 callersClassW2lKenLMDecoder
fairseq/examples/speech_recognition/w2l_decoder.py:124
↓ 3 callersClassBeamSearch
fairseq/fairseq/search.py:103
↓ 3 callersClassCharacterTokenEmbedder
fairseq/fairseq/modules/character_token_embedder.py:22
↓ 3 callersClassDummyDataset
fairseq/fairseq/benchmark/dummy_mt.py:88
↓ 3 callersClassFp32GroupNorm
fairseq/fairseq/modules/fp32_group_norm.py:13
↓ 3 callersClassGumbelVectorQuantizer
fairseq/fairseq/modules/gumbel_vector_quantizer.py:11
↓ 3 callersClassIndexedDataset
Loader for TorchNet IndexedDataset
fairseq/fairseq/data/indexed_dataset.py:135
↓ 3 callersClassLRUCacheDataset
fairseq/fairseq/data/lru_cache_dataset.py:11
↓ 3 callersClassLayerDropModuleList
A LayerDrop implementation based on :class:`torch.nn.ModuleList`. We refresh the choice of which layers to drop every time we iterate ov
fairseq/fairseq/modules/layer_drop.py:13
↓ 3 callersClassLearnedPositionalEmbedding
This module learns positional embeddings up to a fixed maximum size. Padding ids are ignored by either offsetting based on padding_idx or
fairseq/fairseq/modules/learned_positional_embedding.py:15
↓ 3 callersClassLinearizedConvolution
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/fairseq/modules/linearized_convolution.py:17
↓ 3 callersClassMUSTC
Create a Dataset for MuST-C. Each item is a tuple of the form: waveform, sample_rate, source utterance, target utterance, speaker_id, utt
fairseq/examples/speech_to_text/prep_mustc_data.py:43
↓ 3 callersClassModelParallelMultiheadAttention
Model parallel Multi-headed attention. This performs the Multi-headed attention over multiple gpus. See "Megatron-LM: https://arxiv.org/pdf/1
fairseq/fairseq/model_parallel/modules/multihead_attention.py:30
↓ 3 callersClassModuleWithDelay
fairseq/tests/distributed/test_distributed_timeout_wrapper.py:17
↓ 3 callersClassMultiCorpusSampledDataset
Stores multiple instances of FairseqDataset together and in every iteration creates a batch by first sampling a dataset according to a specif
fairseq/fairseq/data/multi_corpus_sampled_dataset.py:19
↓ 3 callersClassNoOp
NoOp simply passes the input as the output.
fairseq/fairseq/models/speech_to_text/utils.py:169
↓ 3 callersClassSparseMultiheadAttention
Sparse Multi-Headed Attention. "Generating Long Sequences with Sparse Transformers". Implements fixed factorized self attention, where l=stri
fairseq/fairseq/modules/sparse_multihead_attention.py:13
↓ 3 callersClassTestIncrementalDecoder
fairseq/tests/utils.py:503
↓ 3 callersClassTiedLinear
fairseq/fairseq/modules/adaptive_softmax.py:16
↓ 3 callersClassTransformEosDataset
A :class:`~fairseq.data.FairseqDataset` wrapper that appends/prepends/strips EOS. Note that the transformation is applied in :func:`collater`.
fairseq/fairseq/data/transform_eos_dataset.py:11
↓ 3 callersClassTransformEosLangPairDataset
A :class:`~fairseq.data.FairseqDataset` wrapper that transform bos on collated samples of language pair dataset. Note that the transformation
fairseq/fairseq/data/transform_eos_lang_pair_dataset.py:14
↓ 3 callersClassTransformerDecoder
Transformer decoder consisting of *args.decoder_layers* layers. Each layer is a :class:`TransformerDecoderLayer`. Args: args (ar
fairseq/fairseq/models/transformer.py:637
↓ 3 callersClassTransformerDecoder
Transformer decoder consisting of *args.decoder_layers* layers. Each layer is a :class:`TransformerDecoderLayer`. Args: args (arg
fairseq/examples/speech_recognition/models/vggtransformer.py:560
↓ 3 callersClassTransformerDecoderLayer
Decoder layer block. In the original paper each operation (multi-head attention, encoder attention or FFN) is postprocessed with: `dropout ->
fairseq/fairseq/model_parallel/models/pipeline_parallel_transformer/layers.py:394
↓ 3 callersClassTransformerEncoder
Transformer encoder consisting of *args.encoder_layers* layers. Each layer is a :class:`TransformerEncoderLayer`. Args: args (ar
fairseq/fairseq/models/transformer.py:342
↓ 3 callersClassW2lFairseqLMDecoder
fairseq/examples/speech_recognition/w2l_decoder.py:350
↓ 3 callersClassW2lViterbiDecoder
fairseq/examples/speech_recognition/w2l_decoder.py:96
↓ 3 callersClassWERTransformer
fairseq/examples/speech_recognition/utils/wer_utils.py:205
↓ 2 callersClassAdam
r"""Implements Adam algorithm. This implementation is modified from torch.optim.Adam based on: `Fixed Weight Decay Regularization in Adam`
fairseq/fairseq/optim/adam.py:99
↓ 2 callersClassAdaptiveInput
fairseq/fairseq/modules/adaptive_input.py:14
↓ 2 callersClassAdaptiveMask
Soft masking function for adaptive size. It masks out the last K values of an input. The masking value goes from 1 to 0 gradually, so K can be
fairseq/examples/adaptive_span/adaptive_span_attention.py:12
↓ 2 callersClassAverageLagging
Function to calculate Average Lagging from STACL: Simultaneous Translation with Implicit Anticipation and Controllable Latency using Pref
fairseq/examples/simultaneous_translation/utils/latency.py:102
↓ 2 callersClassAverageProportion
Function to calculate Average Proportion from Can neural machine translation do simultaneous translation? (https://arxiv.org/abs/1606.020
fairseq/examples/simultaneous_translation/utils/latency.py:77
↓ 2 callersClassBacktranslationDataset
Sets up a backtranslation dataset which takes a tgt batch, generates a src using a tgt-src backtranslation function (*backtranslation_fn*),
fairseq/fairseq/data/backtranslation_dataset.py:53
↓ 2 callersClassBucketPadLengthDataset
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/fairseq/data/bucket_pad_length_dataset.py:12
↓ 2 callersClassBufferedIterator
fairseq/fairseq/data/iterators.py:581
↓ 2 callersClassCoVoST
Create a Dataset for CoVoST (https://github.com/facebookresearch/covost). Args: root (str): root path to the dataset and generated manife
fairseq/examples/speech_to_text/prep_covost_data.py:38
↓ 2 callersClassConcatSentencesDataset
fairseq/fairseq/data/concat_sentences_dataset.py:11
↓ 2 callersClassConstraintNode
Represents a node in a trie managing unordered constraints.
fairseq/fairseq/token_generation_constraints.py:111
↓ 2 callersClassConvFeatureExtractionModel
fairseq/fairseq/models/wav2vec/wav2vec2.py:736
↓ 2 callersClassConvTransformerEncoder
Conv + Transformer encoder
fairseq/fairseq/models/speech_to_text/convtransformer.py:228
↓ 2 callersClassCountingIterator
Wrapper around an iterable that maintains the iteration count. Args: iterable (iterable): iterable to wrap start (int): starting
fairseq/fairseq/data/iterators.py:27
↓ 2 callersClassDenoisingDataset
A wrapper around TokenBlockDataset for BART dataset. Args: dataset (TokenBlockDataset): dataset to wrap sizes (List[int]): s
fairseq/fairseq/data/denoising_dataset.py:95
↓ 2 callersClassDifferentiableAverageLagging
Function to calculate Differentiable Average Lagging from Monotonic Infinite Lookback Attention for Simultaneous Machine Translation (htt
fairseq/examples/simultaneous_translation/utils/latency.py:143
↓ 2 callersClassDownsample
Selects every nth element, where n is the index
fairseq/fairseq/modules/downsampled_multihead_attention.py:287
↓ 2 callersClassDownsampledMultiHeadAttention
Multi-headed attention with Gating and Downsampling
fairseq/fairseq/modules/downsampled_multihead_attention.py:170
↓ 2 callersClassDummyEncoder
fairseq/tests/speech_recognition/asr_test_base.py:494
↓ 2 callersClassDynamicLossScaler
fairseq/fairseq/optim/dynamic_loss_scaler.py:7
next →1–100 of 878, ranked by callers