MCPcopy Create free account

hub / github.com/FLC777/GLAT / functions

Functions3,098 in github.com/FLC777/GLAT

Method__str__
(self)
fairseq/token_generation_constraints.py:235
Method__str__
(self)
fairseq/token_generation_constraints.py:383
Method__str__
(self)
fairseq/token_generation_constraints.py:401
Method_aggregate_model_parallel_grad_norm
(total_norm)
fairseq/model_parallel/megatron_trainer.py:40
Method_apply
(m)
fairseq/models/fairseq_encoder.py:88
Function_argmax
(x, dim)
fairseq/models/nat/nonautoregressive_transformer.py:30
Method_build_sample
(self, src_tokens: List[torch.LongTensor])
fairseq/models/bart/hub_interface.py:80
Method_check_heartbeat
(self, parent_pid)
fairseq/distributed/distributed_timeout_wrapper.py:81
Function_checkpointed_forward
(original_forward, offload_to_cpu, *args, **kwargs)
fairseq/modules/checkpoint_activations.py:37
Method_clear_linearized_weight
(self, *args)
fairseq/modules/linearized_convolution.py:109
Function_close_writers
()
fairseq/logging/progress_bar.py:318
Method_cmdloop
(self)
fairseq/pdb.py:32
Method_conv_out_length
(input_length, kernel_size, stride)
fairseq/models/wav2vec/wav2vec2.py:451
Method_deep_until_language_pair
(dataset)
fairseq/data/round_robin_zip_datasets.py:121
Method_filter
(target)
fairseq/data/monolingual_dataset.py:171
Function_forward_pre_hook
(mod, input)
fairseq/modules/quant_noise.py:58
Method_full_mask
(target_tokens)
fairseq/tasks/translation_lev.py:127
Method_full_mask
(target_tokens)
glat_plugins/tasks/translation_lev_modified.py:144
Method_get_bpe_word_idx
Given a list of BPE tokens, for every index in the tokens list, return the index of the word grouping that it belongs to. For
fairseq/data/noising.py:39
Method_get_choices
(self, attribute_name: str)
fairseq/dataclass/configs.py:78
Method_get_dataset_and_index
(self, index)
fairseq/data/multilingual/sampled_multi_epoch_dataset.py:121
Method_get_token_idx
This is to extend noising functions to be able to apply to non-bpe tokens, e.g. word or characters.
fairseq/data/noising.py:60
Function_move_to_cpu
(tensor)
fairseq/utils.py:113
Function_move_to_cuda
(tensor)
fairseq/utils.py:104
Method_random_delete
(target_tokens)
fairseq/tasks/translation_lev.py:67
Method_random_delete
(target_tokens)
glat_plugins/tasks/translation_lev_modified.py:84
Method_random_mask
(target_tokens)
fairseq/tasks/translation_lev.py:105
Method_random_mask
(target_tokens)
glat_plugins/tasks/translation_lev_modified.py:122
Method_vocab_init
(tensor, **kwargs)
fairseq/model_parallel/models/transformer.py:54
Method_vocab_init
(tensor, **kwargs)
fairseq/model_parallel/models/transformer_lm.py:81
Methodadd_args
Args for MaskedLM Loss
fairseq/criterions/legacy_masked_lm.py:57
Methodadd_args
(parser)
fairseq/criterions/sentence_prediction.py:22
Methodadd_args
Add criterion-specific arguments to the parser.
fairseq/criterions/label_smoothed_cross_entropy_with_alignment.py:23
Methodadd_args
Add criterion-specific arguments to the parser.
fairseq/criterions/composite_loss.py:21
Methodadd_args
Add criterion-specific arguments to the parser.
fairseq/criterions/nat_loss.py:22
Methodadd_args
Add criterion-specific arguments to the parser.
fairseq/criterions/fairseq_criterion.py:24
Methodadd_args
(parser)
fairseq/criterions/sentence_ranking.py:30
Methodadd_args
(parser)
fairseq/model_parallel/models/transformer_lm.py:27
Methodadd_args
(parser)
fairseq/model_parallel/models/roberta/model.py:49
Methodadd_args
Add model-specific arguments to the parser.
fairseq/model_parallel/models/pipeline_parallel_transformer/model.py:162
Methodadd_args
Add optimizer-specific arguments to the parser.
fairseq/optim/adadelta.py:18
Methodadd_args
Add optimizer-specific arguments to the parser.
fairseq/optim/bmuf.py:40
Methodadd_args
Add optimizer-specific arguments to the parser.
fairseq/optim/fused_lamb.py:23
Methodadd_args
Add optimizer-specific arguments to the parser.
fairseq/optim/adagrad.py:18
Methodadd_args
Add optimizer-specific arguments to the parser.
fairseq/optim/adafactor.py:21
Methodadd_args
Add optimizer-specific arguments to the parser.
fairseq/optim/fairseq_optimizer.py:17
Methodadd_args
Add optimizer-specific arguments to the parser.
fairseq/optim/adamax.py:19
Methodadd_args
(parser)
fairseq/optim/lr_scheduler/anneal_lr_scheduler.py:13
Methodadd_args
Add arguments to the parser for this LR scheduler.
fairseq/optim/lr_scheduler/manual_lr_scheduler.py:56
Methodadd_args
Add arguments to the parser for this LR scheduler.
fairseq/optim/lr_scheduler/fairseq_lr_scheduler.py:22
Methodadd_args
Add task-specific arguments to the parser.
fairseq/benchmark/dummy_masked_lm.py:20
Methodadd_args
Add task-specific arguments to the parser.
fairseq/benchmark/dummy_mt.py:20
Methodadd_args
(parser)
fairseq/benchmark/dummy_model.py:24
Methodadd_args
(parser)
fairseq/data/multilingual/multilingual_data_manager.py:90
Methodadd_args
(parser)
fairseq/data/encoders/characters.py:20
Methodadd_args
(parser)
fairseq/tasks/speech_to_text.py:26
Methodadd_args
Add task-specific arguments to the parser.
fairseq/tasks/multilingual_translation.py:66
Methodadd_args
Add task-specific arguments to the parser.
fairseq/tasks/translation_multi_simple_epoch.py:63
Methodadd_args
Add task-specific arguments to the parser.
fairseq/tasks/denoising.py:39
Methodadd_args
Add task-specific arguments to the parser.
fairseq/tasks/legacy_masked_lm.py:31
Methodadd_args
Add task-specific arguments to the parser.
fairseq/tasks/sentence_prediction.py:44
Methodadd_args
Add task-specific arguments to the parser.
fairseq/tasks/fairseq_task.py:65
Methodadd_args
Add task-specific arguments to the parser.
fairseq/tasks/multilingual_masked_lm.py:40
Methodadd_args
(parser)
fairseq/tasks/multilingual_denoising.py:33
Methodadd_args
Add task-specific arguments to the parser.
fairseq/tasks/translation_from_pretrained_bart.py:37
Methodadd_args
Add task-specific arguments to the parser.
fairseq/tasks/cross_lingual_lm.py:35
Methodadd_args
Add task-specific arguments to the parser.
fairseq/tasks/semisupervised_translation.py:88
Methodadd_args
Add task-specific arguments to the parser.
fairseq/tasks/sentence_ranking.py:42
Methodadd_args
Add model-specific arguments to the parser.
fairseq/models/fconv.py:76
Methodadd_args
Add model-specific arguments to the parser.
fairseq/models/lightconv.py:81
Methodadd_args
Add model-specific arguments to the parser.
fairseq/models/lightconv_lm.py:22
Methodadd_args
Add model-specific arguments to the parser.
fairseq/models/fconv_self_att.py:72
Methodadd_args
Add model-specific arguments to the parser.
fairseq/models/fairseq_model.py:38
Methodadd_args
Add model-specific arguments to the parser.
fairseq/models/masked_lm.py:47
Methodadd_args
Add model-specific arguments to the parser.
fairseq/models/transformer.py:108
Methodadd_args
(parser)
fairseq/models/transformer_align.py:28
Methodadd_args
Add model-specific arguments to the parser.
fairseq/models/multilingual_transformer.py:44
Methodadd_args
Add model-specific arguments to the parser.
fairseq/models/fconv_lm.py:21
Methodadd_args
Add model-specific arguments to the parser.
fairseq/models/lstm_lm.py:24
Methodadd_args
Add model-specific arguments to the parser.
fairseq/models/transformer_from_pretrained_xlm.py:23
Methodadd_args
Add model-specific arguments to the parser.
fairseq/models/roberta/model.py:53
Methodadd_args
(parser)
fairseq/models/bart/model.py:51
Methodadd_args
(parser)
fairseq/models/nat/nonautoregressive_transformer.py:51
Methodadd_args
(parser)
fairseq/models/nat/fairseq_nat_model.py:122
Methodadd_args
Add model-specific arguments to the parser.
fairseq/models/speech_to_text/s2t_transformer.py:90
Methodadd_args
Add model-specific arguments to the parser.
fairseq/models/speech_to_text/convtransformer.py:35
Methodadd_args
(parser)
fairseq/models/speech_to_text/berard.py:41
Methodadd_args
Add model-specific arguments to the parser.
fairseq/models/huggingface/hf_gpt2.py:32
Methodadd_args
Add criterion-specific arguments to the parser.
glat_plugins/criterions/ctc_loss.py:26
Methodadd_args
Add criterion-specific arguments to the parser.
glat_plugins/criterions/glat_loss.py:24
Methodadd_args
(parser)
glat_plugins/models/glat_ctc.py:48
Methodadd_args
(parser)
glat_plugins/models/glat.py:48
Methodadd_item
(self, tensor)
fairseq/data/indexed_dataset.py:555
Methodadd_permuted_noise
(self, tokens, p)
fairseq/data/denoising_dataset.py:357
Methodadd_string
(self, ref, pred)
fairseq/scoring/__init__.py:21
Methodadd_string
(self, ref, pred)
fairseq/scoring/bleu.py:58
Methodadd_string
(self, ref, pred)
fairseq/scoring/chrf.py:17
Methodadjust_bsz
(bsz, num_tokens)
fairseq/data/fairseq_dataset.py:120
Methodadjust_sampling
(self, epoch, sampling_ratios, virtual_size)
fairseq/data/multilingual/sampled_multi_dataset.py:152
Methodadvance
Reads in a token and advances the state. Here's how it works. We can advance to the next state if: - there is a matching child
fairseq/token_generation_constraints.py:298
← previousnext →1,601–1,700 of 3,098, ranked by callers