MCPcopy Create free account

hub / github.com/FLC777/GLAT / functions

Functions3,098 in github.com/FLC777/GLAT

↓ 364 callersMethodsize
(self, index)
fairseq/data/list_dataset.py:28
↓ 117 callersMethodpad
Helper to get index of pad symbol
fairseq/data/dictionary.py:192
↓ 95 callersMethodeos
Helper to get index of end-of-sentence symbol
fairseq/data/dictionary.py:196
↓ 69 callersMethodwrite
(self, sizes)
fairseq/data/indexed_dataset.py:408
↓ 60 callersMethodlog
Log intermediate stats according to log_interval.
fairseq/logging/progress_bar.py:140
↓ 40 callersFunctionLayerNorm
(normalized_shape, eps=1e-5, elementwise_affine=True, export=False)
fairseq/modules/layer_norm.py:30
↓ 33 callersMethodbos
Helper to get index of beginning-of-sentence symbol
fairseq/data/dictionary.py:188
↓ 29 callersMethodadd_symbol
Adds a word to the dictionary
fairseq/data/dictionary.py:114
↓ 29 callersMethodunk
Helper to get index of unk symbol
fairseq/data/dictionary.py:200
↓ 28 callersMethodload
Loads the dictionary from a text file with the format: ``` <symbol0> <count0> <symbol1> <count1> ... ```
fairseq/data/dictionary.py:205
↓ 27 callersMethodadd
(self, ref, pred)
fairseq/scoring/bleu.py:107
↓ 24 callersMethodexists
(path: str)
fairseq/file_io.py:85
↓ 23 callersFunctionChoiceEnum
return the Enum class used to enforce list of choices
fairseq/dataclass/constants.py:32
↓ 23 callersMethoddecoder
(self)
fairseq/models/fairseq_model.py:428
↓ 21 callersMethodencode_line
( self, line, line_tokenizer=tokenize_line, add_if_not_exist=True, con
fairseq/data/dictionary.py:293
↓ 21 callersMethodencoder
(self)
fairseq/models/fairseq_model.py:424
↓ 21 callersMethodset_lr
(self, lr)
fairseq/optim/bmuf.py:55
↓ 20 callersMethodcuda
(self)
fairseq/sequence_generator.py:113
↓ 20 callersMethodupdate
(self, val=1)
fairseq/logging/meters.py:130
↓ 19 callersMethodget_num_updates
Get the number of parameters updates.
fairseq/trainer.py:918
↓ 19 callersFunctionquant_noise
Wraps modules and applies quantization noise to the weights for subsequent quantization with Iterative Product Quantization as described
fairseq/modules/quant_noise.py:10
↓ 18 callersMethodget_lr
(self)
fairseq/optim/bmuf.py:52
↓ 18 callersMethodindex
Returns the index of the specified symbol
fairseq/data/dictionary.py:58
↓ 18 callersMethodsize
Return an example's size as a float or tuple. This value is used when filtering a dataset with ``--max-positions``.
fairseq/data/denoising_dataset.py:411
↓ 17 callersMethodclose
(self)
fairseq/nan_detector.py:106
↓ 17 callersFunctionconvert_namespace_to_omegaconf
Convert a flat argparse.Namespace to a structured DictConfig.
fairseq/dataclass/utils.py:340
↓ 17 callersFunctiongen_parser_from_dataclass
convert a dataclass instance to tailing parser arguments
fairseq/dataclass/utils.py:51
↓ 16 callersFunctionLinear
Weight-normalized Linear layer (input: N x T x C)
fairseq/models/fconv_self_att.py:605
↓ 16 callersMethodstring
Helper for converting a tensor of token indices to a string. Can optionally remove BPE symbols or escape <unk> words.
fairseq/data/dictionary.py:65
↓ 15 callersMethodcopy
(src_path: str, dst_path: str, overwrite: bool = False)
fairseq/file_io.py:71
↓ 15 callersMethodset_incremental_state
Helper for setting incremental state for an nn.Module.
fairseq/incremental_decoding_utils.py:34
↓ 14 callersFunction_pair
(v)
fairseq/modules/vggblock.py:15
↓ 14 callersMethodexists
(path)
fairseq/data/indexed_dataset.py:198
↓ 14 callersMethodget_incremental_state
Helper for getting incremental state for an nn.Module.
fairseq/incremental_decoding_utils.py:23
↓ 14 callersMethodload_indexed_dataset
(path, dictionary)
fairseq/tasks/semisupervised_translation.py:165
↓ 13 callersMethodmax_positions
Maximum input length supported by the encoder.
fairseq/models/lstm.py:342
↓ 12 callersFunctionLinear
(in_features, out_features, bias=True)
fairseq/models/lightconv.py:897
↓ 11 callersMethodload_state_dict
(self, state_dict)
fairseq/logging/meters.py:44
↓ 11 callersMethodstart
(self)
fairseq/logging/meters.py:174
↓ 10 callersFunctionPositionalEmbedding
( num_embeddings: int, embedding_dim: int, padding_idx: int, learned: bool = False, )
fairseq/modules/positional_embedding.py:12
↓ 10 callersMethodget_local_path
(path: str, **kwargs)
fairseq/file_io.py:79
↓ 10 callersFunctionuse_xla
()
fairseq/distributed/utils.py:367
↓ 9 callersFunctionLinear
Weight-normalized Linear layer (input: B x T x C)
fairseq/modules/downsampled_multihead_attention.py:300
↓ 9 callersFunctionLinear
Weight-normalized Linear layer (input: N x T x C)
fairseq/models/fconv.py:671
↓ 9 callersMethodcumsum
(sequence, sample_ratios)
fairseq/data/concat_dataset.py:16
↓ 9 callersMethoddevice
(self)
fairseq/models/roberta/hub_interface.py:32
↓ 9 callersMethodhalf
(self)
fairseq/modules/lightconv_layer/lightconv_layer.py:136
↓ 9 callersMethodmax_positions
Maximum length supported by the model.
fairseq/models/fairseq_model.py:90
↓ 9 callersMethodmodel
(self)
fairseq/trainer.py:192
↓ 9 callersMethodopen
( path: str, mode: str = "r", buffering: int = -1, encoding: Optional[str] = N
fairseq/file_io.py:44
↓ 9 callersMethodpad_to_multiple_
Pad Dictionary size to be a multiple of *padding_factor*.
fairseq/data/dictionary.py:179
↓ 9 callersMethodstate_dict
(self)
fairseq/logging/meters.py:41
↓ 8 callersFunctionbase_architecture
(args)
fairseq/models/transformer.py:1015
↓ 8 callersFunctiondata_file_path
(prefix_path)
fairseq/data/indexed_dataset.py:131
↓ 8 callersFunctiondataset_dest_file
(args, output_prefix, lang, extension)
fairseq_cli/preprocess.py:382
↓ 8 callersFunctiondecode
(l)
scripts/spm_decode.py:29
↓ 8 callersMethoddecode
(self, sentence: str)
fairseq/hub_utils.py:281
↓ 8 callersMethodexists
(path)
fairseq/data/fasta_dataset.py:91
↓ 8 callersFunctionget_rank
(group)
fairseq/distributed/utils.py:394
↓ 8 callersFunctionsafe_round
(number, ndigits)
fairseq/logging/meters.py:56
↓ 8 callersMethodtrain
(mode=True)
fairseq/models/fairseq_model.py:203
↓ 7 callersMethod__init__
(self, tgt_dict)
fairseq/search.py:20
↓ 7 callersMethodalter_dataset_langtok
( self, lang_pair_dataset, src_eos=None, src_lang=None, tgt_eos=None,
fairseq/tasks/multilingual_translation.py:173
↓ 7 callersFunctionbase_lm_architecture
(args)
fairseq/models/transformer_lm.py:271
↓ 7 callersMethodbuild_bpe
Build the tokenizer for this task.
fairseq/tasks/fairseq_task.py:587
↓ 7 callersMethoddataset
Return a loaded dataset split. Args: split (str): name of the split (e.g., train, valid, test) Returns:
fairseq/tasks/fairseq_task.py:153
↓ 7 callersMethodencode
(self, sentence: str)
fairseq/hub_utils.py:278
↓ 7 callersMethodfinalize
Sort symbols by frequency in descending order, ignoring special ones. Args: - threshold defines the minimum word count
fairseq/data/dictionary.py:140
↓ 7 callersMethodgenerate
( self, tokenized_sentences: List[torch.LongTensor], *args, inference_step_arg
fairseq/models/bart/hub_interface.py:90
↓ 7 callersMethodget_batch_iterator
Get an iterator that yields batches of data from the given dataset. Args: dataset (~fairseq.data.FairseqDataset): datase
fairseq/tasks/fairseq_task.py:211
↓ 7 callersMethodget_criterion
Get the (non-wrapped) criterion instance.
fairseq/trainer.py:873
↓ 7 callersMethodget_smoothed_values
Get all smoothed values.
fairseq/logging/meters.py:267
↓ 7 callersMethodget_targets
(self, *unused)
fairseq/criterions/composite_loss.py:56
↓ 7 callersFunctionindex_file_path
(prefix_path)
fairseq/data/indexed_dataset.py:127
↓ 7 callersMethodload_dictionary
Load the dictionary from the filename Args: filename (str): the filename
fairseq/tasks/fairseq_task.py:92
↓ 7 callersMethodnext_epoch_itr
Return a new iterator over the dataset. Args: shuffle (bool, optional): shuffle batches before returning the iter
fairseq/data/iterators.py:364
↓ 7 callersMethodsave
Stores dictionary into a text file
fairseq/data/dictionary.py:277
↓ 7 callersMethodsetup_task
(cls, args, **kwargs)
fairseq/tasks/masked_lm.py:122
↓ 7 callersMethodstop
(self, n=1, prehook=None)
fairseq/logging/meters.py:177
↓ 7 callersMethodupdate
Updates counts from new dictionary.
fairseq/data/dictionary.py:127
↓ 6 callersFunctionEmbedding
(num_embeddings, embedding_dim, padding_idx)
fairseq/models/transformer.py:988
↓ 6 callersFunctionLinear
(in_features, out_features, bias=True)
fairseq/model_parallel/models/pipeline_parallel_transformer/layers.py:595
↓ 6 callersFunctionLinear
Linear layer (input: N x T x C)
fairseq/models/lstm.py:689
↓ 6 callersMethod_set_input_buffer
( self, incremental_state: Dict[str, Dict[str, Optional[Tensor]]], buffer: Dict[str, O
fairseq/model_parallel/modules/multihead_attention.py:344
↓ 6 callersMethodadd_meter
(self, key, meter, priority)
fairseq/logging/meters.py:240
↓ 6 callersFunctionbase_architecture
(args)
fairseq/models/roberta/model.py:499
↓ 6 callersFunctionbroadcast
(tensor, src, group)
fairseq/distributed/utils.py:502
↓ 6 callersMethodbuild_tokenizer
Build the pre-tokenizer for this task.
fairseq/tasks/fairseq_task.py:583
↓ 6 callersMethoddevice
(self)
fairseq/hub_utils.py:118
↓ 6 callersFunctiondict_path
(lang)
fairseq_cli/preprocess.py:58
↓ 6 callersFunctionget_active_aggregators
()
fairseq/logging/metrics.py:108
↓ 6 callersMethodget_target_dictionary
(self, lang)
fairseq/data/multilingual/multilingual_data_manager.py:436
↓ 6 callersFunctionget_world_size
(group)
fairseq/distributed/utils.py:403
↓ 6 callersMethodinference_step
( self, generator, models, sample, prefix_tokens=None, constraints=None )
fairseq/tasks/fairseq_task.py:496
↓ 6 callersMethodisfile
(path: str)
fairseq/file_io.py:91
↓ 6 callersMethodmaybe_layer_norm
(self, layer_norm, x, before=False, after=False)
fairseq/model_parallel/models/pipeline_parallel_transformer/layers.py:577
↓ 6 callersMethodmaybe_layer_norm
(self, layer_norm, x, before=False, after=False)
fairseq/models/lightconv.py:869
↓ 6 callersFunctionmerge
(key, left_pad, move_eos_to_beginning=False, pad_to_length=None)
fairseq/data/denoising_dataset.py:28
↓ 6 callersMethodprint
Print end-of-epoch stats.
fairseq/logging/progress_bar.py:144
↓ 6 callersMethodsize
(self, index)
fairseq/data/audio/speech_to_text_dataset.py:374
next →1–100 of 3,098, ranked by callers