MCPcopy Create free account

hub / github.com/Sally-SH/VSP-LLM / functions

Functions6,051 in github.com/Sally-SH/VSP-LLM

↓ 12 callersMethodnext_epoch_itr
Return a new iterator over the dataset. Args: shuffle (bool, optional): shuffle batches before returning the iter
fairseq/fairseq/data/iterators.py:343
↓ 12 callersMethodsetup_task
(cls, args, src_dict=None, tgt_dict=None, model=None)
fairseq/tests/utils.py:451
↓ 11 callersFunctionPositionalEmbedding
( num_embeddings: int, embedding_dim: int, padding_idx: int, learned: bool = False, )
fairseq/fairseq/modules/positional_embedding.py:12
↓ 11 callersMethodempty_cache
(self)
fairseq/examples/speech_recognition/w2l_decoder.py:344
↓ 11 callersMethodencode
(self, sentence: str)
fairseq/fairseq/hub_utils.py:283
↓ 11 callersMethodforward
Generate a batch of translations. Args: sample (dict): batch prefix_tokens (torch.LongTensor, optional): force decode
fairseq/fairseq/sequence_generator.py:123
↓ 11 callersMethodget_local_path
(path: str, **kwargs)
fairseq/fairseq/file_io.py:79
↓ 11 callersMethodstop
(self, n=1, prehook=None)
fairseq/fairseq/logging/meters.py:209
↓ 10 callersFunction__Pyx_TypeTest
ExtTypeTest */
fairseq/fairseq/data/data_utils_fast.cpp:25944
↓ 10 callersMethodbuild_criterion
Build the :class:`~fairseq.criterions.FairseqCriterion` instance for this task. Args: cfg (omegaconf.DictConfig)
fairseq/fairseq/tasks/fairseq_task.py:328
↓ 10 callersMethodbuild_tokenizer
Build the pre-tokenizer for this task.
fairseq/fairseq/tasks/fairseq_task.py:610
↓ 10 callersMethoddecode
(self, emissions, padding)
fairseq/examples/speech_recognition/kaldi/kaldi_decoder.py:233
↓ 10 callersMethoddevice
(self)
fairseq/fairseq/hub_utils.py:118
↓ 10 callersMethodget_targets
(self, *unused)
fairseq/fairseq/criterions/composite_loss.py:56
↓ 10 callersFunctionget_toy_model
( device: str, architecture: str = "roberta_enc_dec", **extra_args: Any, )
fairseq/tests/test_roberta.py:36
↓ 10 callersMethodload_model_ensemble
(self)
fairseq/examples/speech_recognition/new/infer.py:203
↓ 10 callersMethodscore
Evaluate language model based on the current lm state and new word Parameters: ----------- state: current lm state
fairseq/examples/speech_recognition/w2l_decoder.py:258
↓ 10 callersMethodstep
Take a single search step. Args: step: the current search step, starting at 0 lprobs: (bsz x input_beam_size x vocab_
fairseq/fairseq/search.py:30
↓ 10 callersFunctiontrain_language_model
( data_dir, arch, extra_flags=None, run_validation=False, extra_valid_flags=None, task
fairseq/tests/utils.py:653
↓ 10 callersFunctionuse_xla
()
fairseq/fairseq/distributed/utils.py:372
↓ 9 callersFunctionLinear
Weight-normalized Linear layer (input: B x T x C)
fairseq/fairseq/modules/downsampled_multihead_attention.py:300
↓ 9 callersFunctionLinear
Weight-normalized Linear layer (input: N x T x C)
fairseq/fairseq/models/fconv.py:671
↓ 9 callersFunction__Pyx_CheckKeywordStrings
KeywordStringCheck */
fairseq/fairseq/data/token_block_utils_fast.cpp:27352
↓ 9 callersFunction__Pyx_PyBool_FromLong
fairseq/fairseq/data/data_utils_fast.cpp:32405
↓ 9 callersFunctionapply_to_sample
(f, sample)
fairseq/fairseq/utils.py:77
↓ 9 callersMethodassertAlmostEqual
(self, t1, t2)
fairseq/tests/test_utils.py:108
↓ 9 callersMethodencode
(self, line)
fairseq/examples/roberta/multiprocessing_bpe_encoder.py:99
↓ 9 callersMethodexists
(path)
fairseq/fairseq/data/fasta_dataset.py:91
↓ 9 callersMethodfinalize
Sort symbols by frequency in descending order, ignoring special ones. Args: - threshold defines the minimum word count
fairseq/fairseq/data/dictionary.py:141
↓ 9 callersMethodmax_positions
Maximum length supported by the model.
fairseq/fairseq/models/fairseq_model.py:98
↓ 9 callersMethodpad_to_multiple_
Pad Dictionary size to be a multiple of *padding_factor*.
fairseq/fairseq/data/dictionary.py:180
↓ 9 callersFunctionsafe_round
(number, ndigits)
fairseq/fairseq/logging/meters.py:56
↓ 9 callersMethodtake
Truncate the iterator to n elements at most.
fairseq/fairseq/data/iterators.py:73
↓ 9 callersMethodupdate
Updates counts from new dictionary.
fairseq/fairseq/data/dictionary.py:128
↓ 8 callersFunctionEmbedding
(num_embeddings, embedding_dim, padding_idx)
fairseq/fairseq/models/transformer.py:1054
↓ 8 callersFunction__Pyx_CheckKeywordStrings
KeywordStringCheck */
fairseq/fairseq/data/data_utils_fast.cpp:25743
↓ 8 callersFunction__Pyx_PyBool_FromLong
fairseq/fairseq/data/token_block_utils_fast.cpp:33796
↓ 8 callersMethod__init__
(self, encoder, decoder)
fairseq/tests/utils.py:467
↓ 8 callersFunction__pyx_memviewslice_is_contig
MemviewSliceIsContig */
fairseq/fairseq/data/token_block_utils_fast.cpp:31286
↓ 8 callersFunction__pyx_memviewslice_is_contig
MemviewSliceIsContig */
fairseq/fairseq/data/data_utils_fast.cpp:29512
↓ 8 callersMethod_get_test_data_with_bpe_cont_marker
Args: append_eos: if True, each input sentence in the source tokens tensor will have an EOS appended to the end.
fairseq/tests/test_noising.py:22
↓ 8 callersMethodassert_word_shuffle_matches_expected
This verifies that with a given x, x_len, max_shuffle_distance, and vocab, we get the expected shuffle result. Args:
fairseq/tests/test_noising.py:194
↓ 8 callersFunctionbase_architecture
(args)
fairseq/fairseq/models/transformer.py:1081
↓ 8 callersFunctionbase_gpt3_architecture
(args)
fairseq/fairseq/models/transformer_lm.py:462
↓ 8 callersFunctiondata_file_path
(prefix_path)
fairseq/fairseq/data/indexed_dataset.py:131
↓ 8 callersMethoddataset
Return a loaded dataset split. Args: split (str): name of the split (e.g., train, valid, test) Returns:
fairseq/fairseq/tasks/fairseq_task.py:154
↓ 8 callersFunctiondataset_dest_file
(args, output_prefix, lang, extension)
fairseq/fairseq_cli/preprocess.py:385
↓ 8 callersMethoddecode
(self, sentence: str)
fairseq/fairseq/hub_utils.py:286
↓ 8 callersFunctioneval_lm_main
(data_dir, extra_flags=None)
fairseq/tests/test_binaries.py:1856
↓ 8 callersMethodflush
(self)
fairseq/examples/speech_to_text/data_utils.py:250
↓ 8 callersMethodget_batch_iterator
Get an iterator that yields batches of data from the given dataset. Args: dataset (~fairseq.data.FairseqDataset): datase
fairseq/fairseq/tasks/fairseq_task.py:212
↓ 8 callersFunctionget_dummy_input
(T=100, D=80, B=5, K=100)
fairseq/tests/speech_recognition/asr_test_base.py:70
↓ 8 callersFunctionget_rank
(group)
fairseq/fairseq/distributed/utils.py:399
↓ 8 callersMethodhypoScore
(self, hypo, pos_probs, normalized=True, lenpen=1.0)
fairseq/tests/test_sequence_generator.py:726
↓ 8 callersMethodhypoTokens
(self, hypo, tokens)
fairseq/tests/test_sequence_generator.py:723
↓ 8 callersFunctionis_xla_tensor
(tensor)
fairseq/fairseq/utils.py:712
↓ 8 callersMethodload_checkpoint
Load all training state from a checkpoint file. rank = 0 will load the checkpoint, and then broadcast it to all other ranks.
fairseq/fairseq/trainer.py:425
↓ 8 callersMethodload_dataset
Load a given dataset split. Args: split (str): name of the split (e.g., train, valid, test)
fairseq/fairseq/tasks/masked_lm.py:129
↓ 8 callersMethodload_dictionary
Load the dictionary from the filename Args: filename (str): the filename
fairseq/fairseq/tasks/fairseq_task.py:93
↓ 8 callersFunctionmk_sample
( lang: str, device: str, tok: Sequence[int] = None, batch_size: int = 2 )
fairseq/tests/test_roberta.py:77
↓ 8 callersFunctionpost_process
(sentence: str, symbol: str)
fairseq/fairseq/data/data_utils.py:369
↓ 8 callersFunctionread_last_log_entry
( logs: List[logging.LogRecord], logger_name: str )
fairseq/tests/test_binaries.py:1657
↓ 8 callersMethodsetup_task
(cls, args, **kwargs)
fairseq/fairseq/tasks/masked_lm.py:122
↓ 8 callersMethodstate_dict
(self)
fairseq/fairseq/trainer.py:371
↓ 7 callersFunctionLinear
Linear layer (input: N x T x C)
fairseq/examples/speech_recognition/models/vggtransformer.py:869
↓ 7 callersFunction__Pyx_GetException
fairseq/fairseq/data/token_block_utils_fast.cpp:27658
↓ 7 callersFunction__Pyx_GetException
fairseq/fairseq/data/data_utils_fast.cpp:26049
↓ 7 callersFunction__Pyx_PyCode_New
fairseq/fairseq/data/token_block_utils_fast.cpp:609
↓ 7 callersFunction__Pyx_PyInt_As_int64_t
CIntFromPy */
fairseq/fairseq/data/data_utils_fast.cpp:30429
↓ 7 callersFunction__Pyx_PyInt_From_int64_t
CIntToPy */
fairseq/fairseq/data/data_utils_fast.cpp:30975
↓ 7 callersFunction__Pyx_PyObject_CallOneArg
PyObjectCallOneArg */
fairseq/fairseq/data/token_block_utils_fast.cpp:27296
↓ 7 callersFunction__Pyx_RaiseUnexpectedTypeError
RaiseUnexpectedTypeError */
fairseq/fairseq/data/token_block_utils_fast.cpp:26860
↓ 7 callersMethod__init__
(self, tgt_dict)
fairseq/fairseq/search.py:20
↓ 7 callersMethod__init__
( self, input_dim, clamp_grad=True, max_grad_value=256, eps=1e-5,
fairseq/fairseq/models/speech_to_text/modules/emformer.py:57
↓ 7 callersFunction_lang_token_index
(dictionary, lang: str)
fairseq/fairseq/tasks/online_backtranslation.py:662
↓ 7 callersMethod_test_reproducibility
( self, name, extra_flags=None, delta=0.0001, resume_checkpoint="check
fairseq/tests/test_reproducibility.py:19
↓ 7 callersMethodadd_meter
(self, key, meter, priority)
fairseq/fairseq/logging/meters.py:272
↓ 7 callersMethodalter_dataset_langtok
( self, lang_pair_dataset, src_eos=None, src_lang=None, tgt_eos=None,
fairseq/fairseq/tasks/multilingual_translation.py:173
↓ 7 callersFunctionbase_lm_architecture
(args)
fairseq/fairseq/models/transformer_lm.py:296
↓ 7 callersMethodbuild_optimizer
Args: cfg (omegaconf.DictConfig): fairseq args params (iterable): iterable of parameters to optimize
fairseq/fairseq/optim/amp_optimizer.py:30
↓ 7 callersFunctioncompute_mask_indices
Computes random mask spans for a given shape Args: shape: the the shape for which to compute masks. should be of size 2
fairseq/fairseq/data/data_utils.py:393
↓ 7 callersFunctioncreate_dummy_roberta_head_data
( data_dir, num_examples=100, maxlen=10, num_classes=2, regression=False )
fairseq/tests/test_binaries.py:1741
↓ 7 callersMethodcuda
(self)
src/sequence_generator.py:119
↓ 7 callersMethoddataset
(self, split)
fairseq/examples/laser/laser_src/laser_task.py:114
↓ 7 callersMethodencode
(x: str)
fairseq/fairseq/data/encoders/bytes.py:26
↓ 7 callersMethodfrom_pretrained
( cls, model_name_or_path, checkpoint_file="model.pt", data_name_or_path=".",
fairseq/fairseq/models/bart/model.py:117
↓ 7 callersMethodgenerate
(self, smp, model)
fairseq/fairseq/tasks/online_backtranslation.py:474
↓ 7 callersMethodgenerate_unchanged_shuffle_map
(self, length)
fairseq/tests/test_noising.py:191
↓ 7 callersFunctionget_active_aggregators
()
fairseq/fairseq/logging/metrics.py:107
↓ 7 callersMethodget_criterion
Get the (non-wrapped) criterion instance.
fairseq/fairseq/trainer.py:1043
↓ 7 callersFunctionindex_file_path
(prefix_path)
fairseq/fairseq/data/indexed_dataset.py:127
↓ 7 callersMethodmake_generation_fast_
(self, need_attn=False, **kwargs)
fairseq/fairseq/models/lstm.py:662
↓ 7 callersMethodprepare_for_inference_
Prepare model for inference.
fairseq/fairseq/models/fairseq_model.py:160
↓ 7 callersMethodsample
To leverage the efficiency of distributed training, samples for all layers are computed at once for each logit_idx. Logits are parameters
fairseq/examples/latent_depth/latent_depth_src/modules/latent_layers.py:26
↓ 7 callersFunctionspawn_and_init
(fn, world_size, args=None)
fairseq/tests/distributed/utils.py:12
↓ 7 callersMethodstate_dict
(self, destination=None, prefix="", keep_vars=False)
fairseq/fairseq/modules/linearized_convolution.py:31
↓ 7 callersFunctiontrain_roberta_head
(data_dir, arch, num_classes=2, extra_flags=None)
fairseq/tests/test_binaries.py:1813
↓ 7 callersMethodzero_grad
(self)
fairseq/fairseq/trainer.py:1009
↓ 6 callersFunctionLinear
(in_features, out_features, bias=True)
fairseq/fairseq/model_parallel/models/pipeline_parallel_transformer/layers.py:595
↓ 6 callersFunctionLinear
Linear layer (input: N x T x C)
fairseq/fairseq/models/lstm.py:689
← previousnext →101–200 of 6,051, ranked by callers