MCPcopy Create free account

hub / github.com/OFA-Sys/OFA / types & classes

Types & classes1,161 in github.com/OFA-Sys/OFA

↓ 48 callersClassFairseqDropout
fairseq/fairseq/modules/fairseq_dropout.py:16
↓ 25 callersClassFileDataset
data/file_dataset.py:11
↓ 25 callersClassPrependTokenDataset
fairseq/fairseq/data/prepend_token_dataset.py:12
↓ 23 callersClassDictionary
A mapping from symbols to consecutive integers
fairseq/fairseq/data/dictionary.py:18
↓ 23 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
↓ 22 callersClassConcatDataset
fairseq/fairseq/data/concat_dataset.py:14
↓ 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 callersClassNumelDataset
fairseq/fairseq/data/numel_dataset.py:12
↓ 18 callersClassResnetBlock
models/taming/modules/diffusionmodules/model.py:78
↓ 17 callersClassSequenceGenerator
fairseq/fairseq/sequence_generator.py:19
↓ 14 callersClassTrie
utils/trie.py:13
↓ 13 callersClassNestedDictionaryDataset
fairseq/fairseq/data/nested_dictionary_dataset.py:47
↓ 12 callersClassIdDataset
fairseq/fairseq/data/id_dataset.py:11
↓ 12 callersClassTransposeLast
fairseq/fairseq/modules/transpose_last.py:12
↓ 11 callersClassListDataset
fairseq/fairseq/data/list_dataset.py:9
↓ 11 callersClassMultiheadAttention
Multi-headed attention. See "Attention Is All You Need" for more details.
fairseq/fairseq/modules/multihead_attention.py:20
↓ 11 callersClassSortDataset
fairseq/fairseq/data/sort_dataset.py:11
↓ 10 callersClassAttnBlock
models/taming/modules/diffusionmodules/model.py:140
↓ 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
↓ 9 callersClassLinearNorm
fairseq/examples/textless_nlp/gslm/unit2speech/tacotron2/layers.py:9
↓ 9 callersClassNumSamplesDataset
fairseq/fairseq/data/num_samples_dataset.py:9
↓ 9 callersClassRightPadDataset
fairseq/fairseq/data/pad_dataset.py:26
↓ 8 callersClassPadDataset
fairseq/fairseq/data/pad_dataset.py:11
↓ 8 callersClassTruncateDataset
Truncate a sequence by returning the first truncation_length tokens
fairseq/fairseq/data/shorten_dataset.py:12
↓ 7 callersClassAppendTokenDataset
fairseq/fairseq/data/append_token_dataset.py:12
↓ 7 callersClassEMA
Exponential Moving Average of Fairseq Models EMA keeps a copy of the exponentially decayed model params. The set of params should include both
fairseq/fairseq/models/ema/ema.py:28
↓ 7 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
↓ 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 callersClassStripTokenDataset
fairseq/fairseq/data/strip_token_dataset.py:9
↓ 7 callersClassTransformerDecoderLayer
fairseq/fairseq/modules/transformer_layer.py:433
↓ 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 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
↓ 6 callersClassConvNorm
fairseq/examples/textless_nlp/gslm/unit2speech/tacotron2/layers.py:22
↓ 6 callersClassDLDataset
fairseq/examples/multilingual/data_scripts/download_wmt19_and_before.py:38
↓ 6 callersClassSamePad
fairseq/fairseq/modules/same_pad.py:10
↓ 6 callersClassStopwatchMeter
Computes the sum/avg duration of some event in seconds
fairseq/fairseq/logging/meters.py:197
↓ 6 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:561
↓ 6 callersClassVGGTransformerEncoder
VGG + Transformer encoder
fairseq/examples/speech_recognition/models/vggtransformer.py:217
↓ 5 callersClassChannelNorm
fairseq/examples/textless_nlp/gslm/speech2unit/pretrained/cpc_feature_reader.py:91
↓ 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:727
↓ 5 callersClassFp32LayerNorm
fairseq/fairseq/models/speech_to_text/modules/emformer.py:56
↓ 5 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
↓ 5 callersClassLayerNorm
Subclass torch's LayerNorm to handle fp16.
models/clip/model.py:153
↓ 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 callersClassNetLinLayer
A single linear layer which does a 1x1 conv
models/taming/modules/losses/lpips.py:67
↓ 5 callersClassOrderedConstraintState
Records progress through the set of linear nonbranching constraints with gaps.
fairseq/fairseq/token_generation_constraints.py:387
↓ 5 callersClassRawLabelDataset
fairseq/fairseq/data/raw_label_dataset.py:11
↓ 5 callersClassResNet
models/ofa/resnet.py:136
↓ 5 callersClassSequenceScorer
Scores the target for a given source sentence.
fairseq/fairseq/sequence_scorer.py:12
↓ 5 callersClassTransformerEncoderLayer
fairseq/fairseq/modules/transformer_layer.py:169
↓ 5 callersClassUpsample
models/taming/modules/diffusionmodules/model.py:38
↓ 4 callersClassA
fairseq/tests/test_dataclass_utils.py:15
↓ 4 callersClassChunker
contextmanager to read a chunck of a file line by line.
fairseq/fairseq/file_chunker_utils.py:69
↓ 4 callersClassCommonEvalConfig
fairseq/fairseq/dataclass/configs.py:940
↓ 4 callersClassConcatSentencesDataset
fairseq/fairseq/data/concat_sentences_dataset.py:11
↓ 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 callersClassDummyModule
fairseq/tests/test_ema.py:15
↓ 4 callersClassDummyModule
fairseq/tests/gpu/test_ema_gpu.py:15
↓ 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:41
↓ 4 callersClassRobertaHubInterface
A simple PyTorch Hub interface to RoBERTa. Usage: https://github.com/pytorch/fairseq/tree/main/examples/roberta
fairseq/fairseq/models/roberta/hub_interface.py:14
↓ 4 callersClassTimeMeter
Computes the average occurrence of some event per second
fairseq/fairseq/logging/meters.py:144
↓ 4 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
↓ 4 callersClassTransformerEncoder
fairseq/fairseq/models/transformer/transformer_encoder.py:329
↓ 4 callersClassW2lKenLMDecoder
fairseq/examples/speech_recognition/w2l_decoder.py:125
↓ 3 callersClassBeamSearch
fairseq/fairseq/search.py:103
↓ 3 callersClassBeamSearch
models/search.py:103
↓ 3 callersClassBufferedIterator
fairseq/fairseq/data/iterators.py:581
↓ 3 callersClassCharacterTokenEmbedder
fairseq/fairseq/modules/character_token_embedder.py:22
↓ 3 callersClassCheckpointConfig
fairseq/fairseq/dataclass/configs.py:587
↓ 3 callersClassCiderScorer
CIDEr scorer.
utils/cider/pyciderevalcap/ciderD/ciderD_scorer.py:53
↓ 3 callersClassCommonConfig
fairseq/fairseq/dataclass/configs.py:100
↓ 3 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
↓ 3 callersClassDatasetConfig
fairseq/fairseq/dataclass/configs.py:436
↓ 3 callersClassDistributedTrainingConfig
fairseq/fairseq/dataclass/configs.py:241
↓ 3 callersClassDownsample
models/taming/modules/diffusionmodules/model.py:56
↓ 3 callersClassDummyDataset
fairseq/fairseq/benchmark/dummy_mt.py:88
↓ 3 callersClassEMAConfig
fairseq/tests/test_ema.py:33
↓ 3 callersClassEMAConfig
fairseq/tests/gpu/test_ema_gpu.py:33
↓ 3 callersClassFakeTask
fairseq/tests/test_roberta.py:20
↓ 3 callersClassFp32GroupNorm
fairseq/fairseq/modules/fp32_group_norm.py:13
↓ 3 callersClassGenerationConfig
fairseq/fairseq/dataclass/configs.py:762
↓ 3 callersClassGumbelVectorQuantizer
fairseq/fairseq/modules/gumbel_vector_quantizer.py:11
↓ 3 callersClassHuffmanCodeBuilder
build a dictionary with occurence count and then build the Huffman code for it.
fairseq/fairseq/data/huffman/huffman_coder.py:172
↓ 3 callersClassHuffmanMMapIndexedDataset
an indexed dataset that use mmap and memoryview to access data from disk that was compressed with a HuffmanCoder.
fairseq/fairseq/data/huffman/huffman_mmap_indexed_dataset.py:123
↓ 3 callersClassIndexedDataset
Loader for TorchNet IndexedDataset
fairseq/fairseq/data/indexed_dataset.py:144
↓ 3 callersClassLRUCacheDataset
fairseq/fairseq/data/lru_cache_dataset.py:11
↓ 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 callersClassMultiheadAttention
Multi-headed attention. See "Attention Is All You Need" for more details.
models/ofa/unify_multihead_attention.py:20
↓ 3 callersClassNoOp
NoOp simply passes the input as the output.
fairseq/fairseq/models/speech_to_text/utils.py:168
↓ 3 callersClassS2TDataConfig
Wrapper class for data config YAML
fairseq/fairseq/data/audio/data_cfg.py:10
↓ 3 callersClassShardedIterator
A sharded wrapper around an iterable, padded to length. Args: iterable (iterable): iterable to wrap num_shards (int): number of s
fairseq/fairseq/data/iterators.py:518
next →1–100 of 1,161, ranked by callers