Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FLC777/GLAT
/ functions
Functions
3,098 in github.com/FLC777/GLAT
⨍
Functions
3,098
◇
Types & classes
478
↳
Endpoints
1
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
Method
add_args
Args for MaskedLM Loss
fairseq/criterions/legacy_masked_lm.py:57
Method
add_args
(parser)
fairseq/criterions/sentence_prediction.py:22
Method
add_args
Add criterion-specific arguments to the parser.
fairseq/criterions/label_smoothed_cross_entropy_with_alignment.py:23
Method
add_args
Add criterion-specific arguments to the parser.
fairseq/criterions/composite_loss.py:21
Method
add_args
Add criterion-specific arguments to the parser.
fairseq/criterions/nat_loss.py:22
Method
add_args
Add criterion-specific arguments to the parser.
fairseq/criterions/fairseq_criterion.py:24
Method
add_args
(parser)
fairseq/criterions/sentence_ranking.py:30
Method
add_args
(parser)
fairseq/model_parallel/models/transformer_lm.py:27
Method
add_args
(parser)
fairseq/model_parallel/models/roberta/model.py:49
Method
add_args
Add model-specific arguments to the parser.
fairseq/model_parallel/models/pipeline_parallel_transformer/model.py:162
Method
add_args
Add optimizer-specific arguments to the parser.
fairseq/optim/adadelta.py:18
Method
add_args
Add optimizer-specific arguments to the parser.
fairseq/optim/bmuf.py:40
Method
add_args
Add optimizer-specific arguments to the parser.
fairseq/optim/fused_lamb.py:23
Method
add_args
Add optimizer-specific arguments to the parser.
fairseq/optim/adagrad.py:18
Method
add_args
Add optimizer-specific arguments to the parser.
fairseq/optim/adafactor.py:21
Method
add_args
Add optimizer-specific arguments to the parser.
fairseq/optim/fairseq_optimizer.py:17
Method
add_args
Add optimizer-specific arguments to the parser.
fairseq/optim/adamax.py:19
Method
add_args
(parser)
fairseq/optim/lr_scheduler/anneal_lr_scheduler.py:13
Method
add_args
Add arguments to the parser for this LR scheduler.
fairseq/optim/lr_scheduler/manual_lr_scheduler.py:56
Method
add_args
Add arguments to the parser for this LR scheduler.
fairseq/optim/lr_scheduler/fairseq_lr_scheduler.py:22
Method
add_args
Add task-specific arguments to the parser.
fairseq/benchmark/dummy_masked_lm.py:20
Method
add_args
Add task-specific arguments to the parser.
fairseq/benchmark/dummy_mt.py:20
Method
add_args
(parser)
fairseq/benchmark/dummy_model.py:24
Method
add_args
(parser)
fairseq/data/multilingual/multilingual_data_manager.py:90
Method
add_args
(parser)
fairseq/data/encoders/characters.py:20
Method
add_args
(parser)
fairseq/tasks/speech_to_text.py:26
Method
add_args
Add task-specific arguments to the parser.
fairseq/tasks/multilingual_translation.py:66
Method
add_args
Add task-specific arguments to the parser.
fairseq/tasks/translation_multi_simple_epoch.py:63
Method
add_args
Add task-specific arguments to the parser.
fairseq/tasks/denoising.py:39
Method
add_args
Add task-specific arguments to the parser.
fairseq/tasks/legacy_masked_lm.py:31
Method
add_args
Add task-specific arguments to the parser.
fairseq/tasks/sentence_prediction.py:44
Method
add_args
Add task-specific arguments to the parser.
fairseq/tasks/fairseq_task.py:65
Method
add_args
Add task-specific arguments to the parser.
fairseq/tasks/multilingual_masked_lm.py:40
Method
add_args
(parser)
fairseq/tasks/multilingual_denoising.py:33
Method
add_args
Add task-specific arguments to the parser.
fairseq/tasks/translation_from_pretrained_bart.py:37
Method
add_args
Add task-specific arguments to the parser.
fairseq/tasks/cross_lingual_lm.py:35
Method
add_args
Add task-specific arguments to the parser.
fairseq/tasks/semisupervised_translation.py:88
Method
add_args
Add task-specific arguments to the parser.
fairseq/tasks/sentence_ranking.py:42
Method
add_args
Add model-specific arguments to the parser.
fairseq/models/fconv.py:76
Method
add_args
Add model-specific arguments to the parser.
fairseq/models/lightconv.py:81
Method
add_args
Add model-specific arguments to the parser.
fairseq/models/lightconv_lm.py:22
Method
add_args
Add model-specific arguments to the parser.
fairseq/models/fconv_self_att.py:72
Method
add_args
Add model-specific arguments to the parser.
fairseq/models/fairseq_model.py:38
Method
add_args
Add model-specific arguments to the parser.
fairseq/models/masked_lm.py:47
Method
add_args
Add model-specific arguments to the parser.
fairseq/models/transformer.py:108
Method
add_args
(parser)
fairseq/models/transformer_align.py:28
Method
add_args
Add model-specific arguments to the parser.
fairseq/models/multilingual_transformer.py:44
Method
add_args
Add model-specific arguments to the parser.
fairseq/models/fconv_lm.py:21
Method
add_args
Add model-specific arguments to the parser.
fairseq/models/lstm_lm.py:24
Method
add_args
Add model-specific arguments to the parser.
fairseq/models/transformer_from_pretrained_xlm.py:23
Method
add_args
Add model-specific arguments to the parser.
fairseq/models/roberta/model.py:53
Method
add_args
(parser)
fairseq/models/bart/model.py:51
Method
add_args
(parser)
fairseq/models/nat/nonautoregressive_transformer.py:51
Method
add_args
(parser)
fairseq/models/nat/fairseq_nat_model.py:122
Method
add_args
Add model-specific arguments to the parser.
fairseq/models/speech_to_text/s2t_transformer.py:90
Method
add_args
Add model-specific arguments to the parser.
fairseq/models/speech_to_text/convtransformer.py:35
Method
add_args
(parser)
fairseq/models/speech_to_text/berard.py:41
Method
add_args
Add model-specific arguments to the parser.
fairseq/models/huggingface/hf_gpt2.py:32
Method
add_args
Add criterion-specific arguments to the parser.
glat_plugins/criterions/ctc_loss.py:26
Method
add_args
Add criterion-specific arguments to the parser.
glat_plugins/criterions/glat_loss.py:24
Method
add_args
(parser)
glat_plugins/models/glat_ctc.py:48
Method
add_args
(parser)
glat_plugins/models/glat.py:48
Method
add_item
(self, tensor)
fairseq/data/indexed_dataset.py:555
Method
add_permuted_noise
(self, tokens, p)
fairseq/data/denoising_dataset.py:357
Method
add_string
(self, ref, pred)
fairseq/scoring/__init__.py:21
Method
add_string
(self, ref, pred)
fairseq/scoring/bleu.py:58
Method
add_string
(self, ref, pred)
fairseq/scoring/chrf.py:17
Method
adjust_bsz
(bsz, num_tokens)
fairseq/data/fairseq_dataset.py:120
Method
adjust_sampling
(self, epoch, sampling_ratios, virtual_size)
fairseq/data/multilingual/sampled_multi_dataset.py:152
Method
advance
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
← previous
next →
1,601–1,700 of 3,098, ranked by callers