Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sally-SH/VSP-LLM
/ types & classes
Types & classes
878 in github.com/Sally-SH/VSP-LLM
⨍
Functions
6,051
◇
Types & classes
878
↳
Endpoints
3
↓ 36 callers
Class
FairseqDropout
fairseq/fairseq/modules/fairseq_dropout.py:16
↓ 22 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/fairseq/data/language_pair_dataset.py:165
↓ 21 callers
Class
PrependTokenDataset
fairseq/fairseq/data/prepend_token_dataset.py:12
↓ 21 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/fairseq/data/token_block_dataset.py:13
↓ 20 callers
Class
Dictionary
A mapping from symbols to consecutive integers
fairseq/fairseq/data/dictionary.py:18
↓ 16 callers
Class
ConcatDataset
fairseq/fairseq/data/concat_dataset.py:14
↓ 16 callers
Class
SequenceGenerator
fairseq/fairseq/sequence_generator.py:19
↓ 15 callers
Class
NumelDataset
fairseq/fairseq/data/numel_dataset.py:12
↓ 11 callers
Class
ListDataset
fairseq/fairseq/data/list_dataset.py:9
↓ 11 callers
Class
NestedDictionaryDataset
fairseq/fairseq/data/nested_dictionary_dataset.py:47
↓ 10 callers
Class
IdDataset
fairseq/fairseq/data/id_dataset.py:11
↓ 10 callers
Class
PlasmaView
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 callers
Class
SortDataset
fairseq/fairseq/data/sort_dataset.py:11
↓ 9 callers
Class
MultiheadAttention
Multi-headed attention. See "Attention Is All You Need" for more details.
fairseq/fairseq/modules/multihead_attention.py:20
↓ 8 callers
Class
PadDataset
fairseq/fairseq/data/pad_dataset.py:11
↓ 8 callers
Class
TransposeLast
fairseq/fairseq/modules/transpose_last.py:12
↓ 7 callers
Class
AppendTokenDataset
fairseq/fairseq/data/append_token_dataset.py:12
↓ 7 callers
Class
NumSamplesDataset
fairseq/fairseq/data/num_samples_dataset.py:9
↓ 7 callers
Class
RightPadDataset
fairseq/fairseq/data/pad_dataset.py:26
↓ 7 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/fairseq/data/round_robin_zip_datasets.py:17
↓ 7 callers
Class
StopwatchMeter
Computes the sum/avg duration of some event in seconds
fairseq/fairseq/logging/meters.py:197
↓ 7 callers
Class
StripTokenDataset
fairseq/fairseq/data/strip_token_dataset.py:9
↓ 7 callers
Class
UnorderedConstraintState
Records progress through the set of constraints for each item in the beam using a trie.
fairseq/fairseq/token_generation_constraints.py:202
↓ 6 callers
Class
DLDataset
fairseq/examples/multilingual/data_scripts/download_wmt19_and_before.py:38
↓ 6 callers
Class
TransformerDecoderLayer
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 callers
Class
VGGTransformerEncoder
VGG + Transformer encoder
fairseq/examples/speech_recognition/models/vggtransformer.py:216
↓ 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/fairseq/modules/adaptive_softmax.py:58
↓ 5 callers
Class
CommonEvalConfig
fairseq/fairseq/dataclass/configs.py:903
↓ 5 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/fairseq/modules/conv_tbc.py:12
↓ 5 callers
Class
EnsembleModel
A wrapper around an ensemble of models.
fairseq/fairseq/sequence_generator.py:734
↓ 5 callers
Class
Fp32LayerNorm
fairseq/fairseq/models/speech_to_text/modules/emformer.py:56
↓ 5 callers
Class
ModuleProxyWrapper
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 callers
Class
OrderedConstraintState
Records progress through the set of linear nonbranching constraints with gaps.
fairseq/fairseq/token_generation_constraints.py:387
↓ 5 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/fairseq/data/resampling_dataset.py:15
↓ 5 callers
Class
SequenceScorer
Scores the target for a given source sentence.
fairseq/fairseq/sequence_scorer.py:12
↓ 5 callers
Class
TimeMeter
Computes the average occurrence of some event per second
fairseq/fairseq/logging/meters.py:144
↓ 5 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/fairseq/modules/transformer_layer.py:17
↓ 4 callers
Class
CheckpointConfig
fairseq/fairseq/dataclass/configs.py:564
↓ 4 callers
Class
CommonConfig
fairseq/fairseq/dataclass/configs.py:84
↓ 4 callers
Class
DatasetConfig
fairseq/fairseq/dataclass/configs.py:413
↓ 4 callers
Class
DistributedTimeoutWrapper
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 callers
Class
DistributedTrainingConfig
fairseq/fairseq/dataclass/configs.py:225
↓ 4 callers
Class
GenerationConfig
fairseq/fairseq/dataclass/configs.py:725
↓ 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/fairseq/logging/meters.py:253
↓ 4 callers
Class
Model
fairseq/tests/test_activation_checkpointing.py:14
↓ 4 callers
Class
NGramRepeatBlock
Wrapper class for calling ngram_repeat_block cuda extension
fairseq/fairseq/ngram_repeat_block.py:39
↓ 4 callers
Class
PiecewiseLinearFn
Piecewise linear function. Can be configured with a string.
fairseq/fairseq/tasks/online_backtranslation.py:40
↓ 4 callers
Class
RawLabelDataset
fairseq/fairseq/data/raw_label_dataset.py:11
↓ 4 callers
Class
RobertaHubInterface
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 callers
Class
SamePad
fairseq/fairseq/modules/same_pad.py:10
↓ 4 callers
Class
TransformerEncoder
fairseq/fairseq/models/wav2vec/wav2vec2.py:817
↓ 4 callers
Class
TruncateDataset
Truncate a sequence by returning the first truncation_length tokens
fairseq/fairseq/data/shorten_dataset.py:12
↓ 4 callers
Class
W2lKenLMDecoder
fairseq/examples/speech_recognition/w2l_decoder.py:124
↓ 3 callers
Class
BeamSearch
fairseq/fairseq/search.py:103
↓ 3 callers
Class
CharacterTokenEmbedder
fairseq/fairseq/modules/character_token_embedder.py:22
↓ 3 callers
Class
DummyDataset
fairseq/fairseq/benchmark/dummy_mt.py:88
↓ 3 callers
Class
Fp32GroupNorm
fairseq/fairseq/modules/fp32_group_norm.py:13
↓ 3 callers
Class
GumbelVectorQuantizer
fairseq/fairseq/modules/gumbel_vector_quantizer.py:11
↓ 3 callers
Class
IndexedDataset
Loader for TorchNet IndexedDataset
fairseq/fairseq/data/indexed_dataset.py:135
↓ 3 callers
Class
LRUCacheDataset
fairseq/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/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/fairseq/modules/learned_positional_embedding.py:15
↓ 3 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/fairseq/modules/linearized_convolution.py:17
↓ 3 callers
Class
MUSTC
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 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/fairseq/model_parallel/modules/multihead_attention.py:30
↓ 3 callers
Class
ModuleWithDelay
fairseq/tests/distributed/test_distributed_timeout_wrapper.py:17
↓ 3 callers
Class
MultiCorpusSampledDataset
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 callers
Class
NoOp
NoOp simply passes the input as the output.
fairseq/fairseq/models/speech_to_text/utils.py:169
↓ 3 callers
Class
SparseMultiheadAttention
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 callers
Class
TestIncrementalDecoder
fairseq/tests/utils.py:503
↓ 3 callers
Class
TiedLinear
fairseq/fairseq/modules/adaptive_softmax.py:16
↓ 3 callers
Class
TransformEosDataset
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 callers
Class
TransformEosLangPairDataset
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 callers
Class
TransformerDecoder
Transformer decoder consisting of *args.decoder_layers* layers. Each layer is a :class:`TransformerDecoderLayer`. Args: args (ar
fairseq/fairseq/models/transformer.py:637
↓ 3 callers
Class
TransformerDecoder
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 callers
Class
TransformerDecoderLayer
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 callers
Class
TransformerEncoder
Transformer encoder consisting of *args.encoder_layers* layers. Each layer is a :class:`TransformerEncoderLayer`. Args: args (ar
fairseq/fairseq/models/transformer.py:342
↓ 3 callers
Class
W2lFairseqLMDecoder
fairseq/examples/speech_recognition/w2l_decoder.py:350
↓ 3 callers
Class
W2lViterbiDecoder
fairseq/examples/speech_recognition/w2l_decoder.py:96
↓ 3 callers
Class
WERTransformer
fairseq/examples/speech_recognition/utils/wer_utils.py:205
↓ 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/fairseq/optim/adam.py:99
↓ 2 callers
Class
AdaptiveInput
fairseq/fairseq/modules/adaptive_input.py:14
↓ 2 callers
Class
AdaptiveMask
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 callers
Class
AverageLagging
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 callers
Class
AverageProportion
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 callers
Class
BacktranslationDataset
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 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/fairseq/data/bucket_pad_length_dataset.py:12
↓ 2 callers
Class
BufferedIterator
fairseq/fairseq/data/iterators.py:581
↓ 2 callers
Class
CoVoST
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 callers
Class
ConcatSentencesDataset
fairseq/fairseq/data/concat_sentences_dataset.py:11
↓ 2 callers
Class
ConstraintNode
Represents a node in a trie managing unordered constraints.
fairseq/fairseq/token_generation_constraints.py:111
↓ 2 callers
Class
ConvFeatureExtractionModel
fairseq/fairseq/models/wav2vec/wav2vec2.py:736
↓ 2 callers
Class
ConvTransformerEncoder
Conv + Transformer encoder
fairseq/fairseq/models/speech_to_text/convtransformer.py:228
↓ 2 callers
Class
CountingIterator
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 callers
Class
DenoisingDataset
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 callers
Class
DifferentiableAverageLagging
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 callers
Class
Downsample
Selects every nth element, where n is the index
fairseq/fairseq/modules/downsampled_multihead_attention.py:287
↓ 2 callers
Class
DownsampledMultiHeadAttention
Multi-headed attention with Gating and Downsampling
fairseq/fairseq/modules/downsampled_multihead_attention.py:170
↓ 2 callers
Class
DummyEncoder
fairseq/tests/speech_recognition/asr_test_base.py:494
↓ 2 callers
Class
DynamicLossScaler
fairseq/fairseq/optim/dynamic_loss_scaler.py:7
next →
1–100 of 878, ranked by callers