MCPcopy Create free account

hub / github.com/FLC777/GLAT / functions

Functions3,098 in github.com/FLC777/GLAT

↓ 2 callersMethod_build_batches
( self, tokens: List[List[int]], skip_invalid_size_inputs: bool )
fairseq/hub_utils.py:254
↓ 2 callersMethod_build_index
(self, path: str)
fairseq/data/fasta_dataset.py:56
↓ 2 callersMethod_check_src
(self, src, expect_eos)
fairseq/data/transform_eos_dataset.py:61
↓ 2 callersMethod_check_tgt
(self, tgt, expect_eos)
fairseq/data/transform_eos_dataset.py:66
↓ 2 callersFunction_cross_entropy_pytorch
(logits, target, ignore_index=None, reduction="mean")
fairseq/modules/cross_entropy.py:15
↓ 2 callersMethod_cut_sentence
Cut a sentence based on the numbers of tokens to be cut from beginning and end Represent the sentence as dataset idx and return
fairseq/data/legacy/block_pair_dataset.py:258
↓ 2 callersMethod_do_init
(self, path)
fairseq/data/indexed_dataset.py:491
↓ 2 callersFunction_dtype_header_code
(dtype)
fairseq/data/indexed_dataset.py:120
↓ 2 callersMethod_fetch_block
Fetch a block of tokens based on its dataset idx
fairseq/data/legacy/block_pair_dataset.py:280
↓ 2 callersFunction_filter_by_size_dynamic
(indices, size_fn, max_positions, raise_exception=False)
fairseq/data/data_utils.py:150
↓ 2 callersFunction_find_my_group
(grouped_ranks)
fairseq/distributed/utils.py:389
↓ 2 callersFunction_find_my_group_index
(grouped_ranks)
fairseq/distributed/utils.py:381
↓ 2 callersMethod_format_stats
(self, stats, epoch=None, update=None)
fairseq/logging/progress_bar.py:214
↓ 2 callersFunction_get_bt_dataset_key
(lang_pair)
fairseq/tasks/semisupervised_translation.py:32
↓ 2 callersMethod_get_dataset_and_index
(self, index)
fairseq/data/multilingual/sampled_multi_dataset.py:227
↓ 2 callersMethod_get_dataset_and_sample_index
(self, idx: int)
fairseq/data/concat_dataset.py:41
↓ 2 callersFunction_get_denoising_dataset_key
(lang_pair)
fairseq/tasks/semisupervised_translation.py:36
↓ 2 callersMethod_get_epoch_start_index
(self, epoch)
fairseq/data/multilingual/sampled_multi_epoch_dataset.py:145
↓ 2 callersMethod_get_full_incremental_state_key
(self, key: str)
fairseq/incremental_decoding_utils.py:20
↓ 2 callersMethod_get_input_buffer
(self, incremental_state)
fairseq/modules/lightweight_convolution.py:291
↓ 2 callersMethod_get_input_buffer
(self, incremental_state: Optional[Dict[str, Dict[str, Optional[Tensor]]]])
fairseq/modules/linearized_convolution.py:90
↓ 2 callersMethod_get_input_buffer
( self, incremental_state: Optional[Dict[str, Dict[str, Optional[Tensor]]]] )
fairseq/modules/multihead_attention.py:437
↓ 2 callersMethod_get_input_buffer
(self, incremental_state)
fairseq/modules/lightconv_layer/lightconv_layer.py:128
↓ 2 callersMethod_get_input_buffer
(self, incremental_state)
fairseq/modules/dynamicconv_layer/dynamicconv_layer.py:127
↓ 2 callersMethod_get_input_buffer
( self, incremental_state: Optional[Dict[str, Dict[str, Optional[Tensor]]]] )
fairseq/model_parallel/modules/multihead_attention.py:334
↓ 2 callersMethod_get_iterator_for_epoch
( self, epoch, shuffle, fix_batches_to_gpus=False, offset=0 )
fairseq/data/iterators.py:451
↓ 2 callersMethod_get_module_class
(cls, is_encoder, args, lang_dict, embed_tokens, langs)
fairseq/models/multilingual_transformer.py:193
↓ 2 callersMethod_get_type
(self, attribute_name: str)
fairseq/dataclass/configs.py:66
↓ 2 callersFunction_lang_id
Return language ID index.
fairseq/data/multilingual/multilingual_data_manager.py:46
↓ 2 callersFunction_lang_token
(lang: str)
fairseq/tasks/multilingual_translation.py:28
↓ 2 callersMethod_local_cumulative_training_time
Aggregate training time in seconds.
fairseq/trainer.py:940
↓ 2 callersMethod_log_to_azureml
(self, stats, tag=None, step=None)
fairseq/logging/progress_bar.py:472
↓ 2 callersMethod_log_to_tensorboard
(self, stats, tag=None, step=None)
fairseq/logging/progress_bar.py:365
↓ 2 callersMethod_log_to_wandb
(self, stats, tag=None, step=None)
fairseq/logging/progress_bar.py:419
↓ 2 callersFunction_main
(cfg: DictConfig, output_file)
fairseq_cli/generate.py:59
↓ 2 callersMethod_mask_block
Mask tokens for Masked Language Model training Samples mask_ratio tokens that will be predicted by LM. Note:This function ma
fairseq/data/legacy/masked_lm_dataset.py:117
↓ 2 callersMethod_next_virtual_epoch
(self, epoch)
fairseq/data/multilingual/sampled_multi_epoch_dataset.py:178
↓ 2 callersMethod_reset_cached_properties
(self)
fairseq/data/multilingual/sampled_multi_dataset.py:128
↓ 2 callersMethod_reset_local_data
(self)
fairseq/optim/bmuf.py:147
↓ 2 callersMethod_rms
(self, tensor)
fairseq/optim/adafactor.py:156
↓ 2 callersMethod_set_input_buffer
(self, incremental_state, new_buffer)
fairseq/modules/lightweight_convolution.py:294
↓ 2 callersMethod_set_input_buffer
(self, incremental_state: Optional[Dict[str, Dict[str, Optional[Tensor]]]], new_buffer)
fairseq/modules/linearized_convolution.py:94
↓ 2 callersMethod_set_input_buffer
( self, incremental_state: Dict[str, Dict[str, Optional[Tensor]]], buffer: Dict[str, O
fairseq/modules/multihead_attention.py:447
↓ 2 callersMethod_set_input_buffer
(self, incremental_state, new_buffer)
fairseq/modules/lightconv_layer/lightconv_layer.py:131
↓ 2 callersMethod_set_input_buffer
(self, incremental_state, new_buffer)
fairseq/modules/dynamicconv_layer/dynamicconv_layer.py:130
↓ 2 callersMethod_shared_collater
(self)
fairseq/data/multilingual/multilingual_data_manager.py:304
↓ 2 callersMethod_skip_sampling
Generate a random integer which is not in skip_ids. Sample range is [0, total) TODO: ids in skip_ids should be consecutive, we can ex
fairseq/data/legacy/block_pair_dataset.py:215
↓ 2 callersMethod_str_pipes
(self, stats)
fairseq/logging/progress_bar.py:155
↓ 2 callersMethod_sync_stats
(self)
fairseq/trainer.py:998
↓ 2 callersFunction_warmup_mmap_file
(path)
fairseq/data/indexed_dataset.py:374
↓ 2 callersMethodadapt_target
In order to be efficient, the AdaptiveSoftMax does not compute the scores for all the word of the vocabulary for all the examples. It
fairseq/modules/adaptive_softmax.py:180
↓ 2 callersMethodadd
increments counters for the sum of log probs of current word and next word (given context ending at current word). Since the next word might b
fairseq_cli/eval_lm.py:213
↓ 2 callersFunctionadd_checkpoint_args
(parser)
fairseq/options.py:317
↓ 2 callersFunctionadd_common_eval_args
(group)
fairseq/options.py:325
↓ 2 callersFunctionapply_to_sample
(f, sample)
fairseq/utils.py:80
↓ 2 callersFunctionattrsetter
(*items)
fairseq/modules/quantization/pq/utils.py:322
↓ 2 callersMethodaverage_params
(self)
fairseq/optim/bmuf.py:73
↓ 2 callersFunctionbart_large_architecture
(args)
fairseq/models/bart/model.py:316
↓ 2 callersFunctionbase_architecture
(args)
glat_plugins/models/glat_ctc.py:270
↓ 2 callersFunctionbase_architecture
(args)
glat_plugins/models/glat.py:162
↓ 2 callersFunctionbase_lm_architecture
(args)
fairseq/models/lightconv_lm.py:256
↓ 2 callersFunctionbase_multilingual_architecture
(args)
fairseq/models/multilingual_transformer.py:208
↓ 2 callersMethodbatch_by_size
Given an ordered set of indices, return batches according to *max_tokens*, *max_sentences* and *required_batch_size_multiple*.
fairseq/data/fairseq_dataset.py:104
↓ 2 callersFunctionbest_fitting_int_dtype
( max_int_to_represent, )
fairseq/data/indexed_dataset.py:21
↓ 2 callersMethodbinarize
( filename, dict, consumer, tokenize=tokenize_line, append_eos=True,
fairseq/binarizer.py:27
↓ 2 callersMethodbinarize_alignments
( filename, alignment_parser, consumer, offset=0, end=-1 )
fairseq/binarizer.py:87
↓ 2 callersFunctionbleu_hash
fairseq/clib/libbleu/libbleu.cpp:55
↓ 2 callersFunctionbleu_trim
left and right trim
fairseq/clib/libbleu/libbleu.cpp:50
↓ 2 callersMethodbrevity
(self)
fairseq/scoring/bleu.py:148
↓ 2 callersFunctionbroadcast_tensors
Broadcasts a list of tensors without other (non-src) ranks needing to know the dtypes/shapes of the tensors.
fairseq/distributed/utils.py:677
↓ 2 callersFunctionbyte_encode
(x: str)
fairseq/data/encoders/byte_utils.py:22
↓ 2 callersMethodcheck_index
(self, i)
fairseq/data/indexed_dataset.py:166
↓ 2 callersMethodcheck_index
(self, i)
fairseq/data/indexed_dataset.py:282
↓ 2 callersMethodcheck_overflow
(self, grad_norm)
fairseq/optim/dynamic_loss_scaler.py:42
↓ 2 callersFunctioncheckpoint_wrapper
A friendlier wrapper for performing activation checkpointing. Compared to the PyTorch version, this version: - wraps an nn.Module, so th
fairseq/modules/checkpoint_activations.py:15
↓ 2 callersFunctionclean
(text)
fairseq/models/roberta/alignment_utils.py:27
↓ 2 callersFunctioncli_main
( modify_parser: Optional[Callable[[argparse.ArgumentParser], None]] = None )
fairseq_cli/train.py:437
↓ 2 callersMethodcls
Helper to get index of cls symbol
fairseq/data/legacy/masked_lm_dictionary.py:54
↓ 2 callersMethodcombine_bidir
(self, outs, bsz: int)
fairseq/models/lstm.py:328
↓ 2 callersMethodcompute_checkpoint
(self, word_index)
fairseq/modules/sparse_multihead_attention.py:60
↓ 2 callersFunctioncompute_cross_entropy_loss
Function to compute the cross entropy loss. The default value of ignore_index is the same as the default value for F.cross_entropy in pyt
fairseq/criterions/legacy_masked_lm.py:14
↓ 2 callersMethodcompute_loss
(self, model, net_output, sample, reduce=True)
fairseq/criterions/cross_entropy.py:48
↓ 2 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/data/data_utils.py:383
↓ 2 callersMethodcompute_subset_summaries
(self, absolute_max)
fairseq/modules/sparse_multihead_attention.py:72
↓ 2 callersMethodconv_tbc
(self, input: Tensor)
fairseq/modules/conv_tbc.py:37
↓ 2 callersFunctionconvert_yaml_to_tuple
Converts a yaml dictionary with two keys: `key` and `value` into a two argument tuple of those values.
fairseq/modules/quantization/quantization_options.py:41
↓ 2 callersMethodcopy
(self)
fairseq/token_generation_constraints.py:407
↓ 2 callersFunctioncreate_pruning_pass
(layers_to_keep, layer_name)
fairseq/checkpoint_utils.py:602
↓ 2 callersMethodcumulative_training_time
(self)
fairseq/trainer.py:933
↓ 2 callersMethoddecode
(self, tokens: torch.LongTensor)
fairseq/hub_utils.py:223
↓ 2 callersMethoddecode
(self, tokens: torch.LongTensor)
fairseq/models/roberta/hub_interface.py:67
↓ 2 callersFunctiondeprecation_warning
(message, stacklevel=3)
fairseq/utils.py:493
↓ 2 callersFunctiondest_path
(prefix, lang)
fairseq_cli/preprocess.py:55
↓ 2 callersMethoddetokenize
(self, sentence: str)
fairseq/hub_utils.py:233
↓ 2 callersMethodencode
(self, sentence: str)
fairseq/hub_utils.py:218
↓ 2 callersMethodencode
Performs self.n_iter EM steps.
fairseq/modules/quantization/pq/pq.py:94
↓ 2 callersMethodencode
BPE-encode a sentence (or multiple sentences). Every sequence begins with a beginning-of-sentence (`<s>`) symbol. Every sent
fairseq/models/roberta/hub_interface.py:35
↓ 2 callersFunctionencode_fn
(x)
fairseq_cli/interactive.py:175
↓ 2 callersFunctionextend_conv_spec
Extends convolutional spec that is a list of tuples of 2 or 3 parameters (kernel size, dim size and optionally how many layers behind to look
fairseq/models/fconv.py:636
↓ 2 callersMethodextract_features
Similar to *forward* but only return features.
fairseq/models/fairseq_model.py:86
← previousnext →301–400 of 3,098, ranked by callers