MCPcopy Create free account

hub / github.com/FLC777/GLAT / functions

Functions3,098 in github.com/FLC777/GLAT

Functionmodel_parallel_roberta_v1_architecture
(args)
fairseq/model_parallel/models/roberta/model.py:201
Methodmoses_fastbpe
(path)
fairseq/models/transformer.py:67
Methodmoses_fastbpe
(path)
fairseq/models/transformer_lm.py:176
Methodmoses_subword
(path)
fairseq/models/fconv.py:50
Methodmoses_subword
(path)
fairseq/models/lightconv.py:54
Methodmoses_subword
(path)
fairseq/models/transformer.py:60
Functionmove_to_cpu
(sample)
fairseq/utils.py:112
Functionmove_to_cuda
(sample, device=None)
fairseq/utils.py:101
Functionmultilingual_transformer_iwslt_de_en
(args)
fairseq/models/multilingual_transformer.py:219
Methodmultiply_grads
Multiplies grads by a constant *c*.
fairseq/optim/fp16_optimizer.py:401
Methodn
(self)
fairseq/data/iterators.py:351
Methodname
(self)
fairseq/token_generation_constraints.py:247
Methodname
(self)
fairseq/token_generation_constraints.py:424
Methodname
(self)
fairseq/data/subsample_dataset.py:52
Methodname
()
fairseq/dataclass/configs.py:33
Methodnext_epoch_idx
(self)
fairseq/data/iterators.py:109
Methodnext_epoch_idx
Return the epoch index after *next_epoch_itr* is called.
fairseq/data/iterators.py:193
Methodnext_epoch_idx
Return the epoch index after *next_epoch_itr* is called.
fairseq/data/iterators.py:355
Methodnext_epoch_itr
Return a new iterator over the dataset. Args: shuffle (bool, optional): shuffle batches before returning the iter
fairseq/data/iterators.py:112
Methodnext_epoch_itr
( self, shuffle=True, fix_batches_to_gpus=False, set_dataset_epoch=True )
fairseq/data/iterators.py:200
Methodnext_tokens
Returns the list of tokens that could come next. These are (a) all tokens extending the root state and, for non-root states, additiona
fairseq/token_generation_constraints.py:287
Methodnext_tokens
Returns the list of tokens that could come next. These are (a) all tokens extending the root state and, for non-root states, additiona
fairseq/token_generation_constraints.py:450
Functionngram_repeat_block_forward
Input check and call to CUDA OP Backward method not required
fairseq/clib/cuda/ngram_repeat_block_cuda.cpp:29
Methodnoising
(self, x, lengths, dropout_prob=None, blank_idx=None)
fairseq/data/noising.py:85
Methodnoising
(self, x, lengths, max_shuffle_distance=None)
fairseq/data/noising.py:163
Methodnoising
(self, x, lengths)
fairseq/data/noising.py:230
Functionnonautoregressive_transformer_wmt_en_de
(args)
fairseq/models/nat/nonautoregressive_transformer.py:626
Functionnoop
(_)
fairseq/models/__init__.py:142
Functionnullsafe_min
(l)
fairseq/utils.py:409
Methodnum_completed
The number of constraints (not constraint tokens) that are completed. In addition to the already-completed states, we need to account for the
fairseq/token_generation_constraints.py:262
Methodnum_completed
(self)
fairseq/token_generation_constraints.py:411
Methodnum_constraint_tokens
(self)
fairseq/token_generation_constraints.py:284
Methodnum_constraint_tokens
(self)
fairseq/token_generation_constraints.py:447
Methodnum_tokens
(self, index)
fairseq/benchmark/dummy_masked_lm.py:116
Methodnum_tokens
(self, index)
fairseq/benchmark/dummy_mt.py:108
Methodnum_tokens
(self, index)
fairseq/benchmark/dummy_lm.py:107
Methodnum_tokens
(self, index)
fairseq/data/subsample_dataset.py:55
Methodnum_tokens
(self, index)
fairseq/data/append_token_dataset.py:31
Methodnum_tokens
Return the number of tokens in a sample. This value is used to enforce ``--max-tokens`` during batching.
fairseq/data/nested_dictionary_dataset.py:94
Methodnum_tokens
Return the number of tokens in a sample. This value is used to enforce ``--max-tokens`` during batching.
fairseq/data/language_pair_dataset.py:400
Methodnum_tokens
Return the number of tokens in a sample. This value is used to enforce ``--max-tokens`` during batching.
fairseq/data/fairseq_dataset.py:55
Methodnum_tokens
Return an example's length (number of tokens), used for batching.
fairseq/data/round_robin_zip_datasets.py:85
Methodnum_tokens
(self, index)
fairseq/data/concat_sentences_dataset.py:32
Methodnum_tokens
(self, index)
fairseq/data/resampling_dataset.py:90
Methodnum_tokens
Return the number of tokens in a sample. This value is used to enforce ``--max-tokens`` during batching.
fairseq/data/monolingual_dataset.py:205
Methodnum_tokens
(self, index)
fairseq/data/bucket_pad_length_dataset.py:72
Methodnum_tokens
(self, index)
fairseq/data/base_wrapper_dataset.py:32
Methodnum_tokens
(self, index)
fairseq/data/list_dataset.py:25
Methodnum_tokens
Return the number of tokens in a sample. This value is used to enforce ``--max-tokens`` during batching.
fairseq/data/denoising_dataset.py:406
Methodnum_tokens
(self, index)
fairseq/data/prepend_token_dataset.py:31
Methodnum_tokens
(self, index: int)
fairseq/data/concat_dataset.py:64
Methodnum_tokens
(self, index)
fairseq/data/indexed_dataset.py:191
Methodnum_tokens
(self, index)
fairseq/data/indexed_dataset.py:301
Methodnum_tokens
Return an example's length (number of tokens), used for batching. Here we return the max across all examples at index across all unde
fairseq/data/multi_corpus_sampled_dataset.py:112
Methodnum_tokens
(self, index)
fairseq/data/lm_context_window_dataset.py:82
Methodnum_tokens
(self, index)
fairseq/data/transform_eos_lang_pair_dataset.py:89
Methodnum_tokens
(self, index)
fairseq/data/transform_eos_dataset.py:100
Methodnum_tokens
Just use the tgt dataset num_tokens
fairseq/data/backtranslation_dataset.py:141
Methodnum_tokens
(self, index)
fairseq/data/multilingual/sampled_multi_dataset.py:238
Methodnum_tokens
Return the number of tokens in a sample. This value is used to enforce max-tokens during batching.
fairseq/data/legacy/masked_lm_dataset.py:272
Methodnum_tokens
(self, index)
fairseq/data/audio/speech_to_text_dataset.py:371
Methodnum_tokens
(self, index)
fairseq/data/audio/raw_audio_dataset.py:108
Methodnum_tokens_vec
Return the number of tokens for a set of positions defined by indices. This value is used to enforce ``--max-tokens`` during batching.
fairseq/data/language_pair_dataset.py:408
Methodnum_tokens_vec
(self, indices)
fairseq/data/multilingual/sampled_multi_dataset.py:241
Functionnumpy_seed
Context manager which seeds the NumPy PRNG with the specified seed and restores the state afterward
fairseq/data/data_utils.py:117
Methodoptimizer
(self)
fairseq/trainer.py:206
Methodoptimizer
(self)
fairseq/optim/bmuf.py:45
Methodoptimizer
Return a torch.optim.optimizer.Optimizer instance.
fairseq/optim/fairseq_optimizer.py:24
Methodoptimizer
(self)
fairseq/optim/fp16_optimizer.py:301
Methodoptimizer
(self)
fairseq/optim/fp16_optimizer.py:512
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/adadelta.py:31
Methodoptimizer_config
(self)
fairseq/optim/bmuf.py:49
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/sgd.py:28
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/fused_lamb.py:35
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/adagrad.py:26
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/adafactor.py:44
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/fairseq_optimizer.py:42
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/adam.py:69
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/nag.py:33
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/adamax.py:33
Methodoptimizer_config
Return a kwarg dictionary that will be used to override optimizer args stored in checkpoints. This allows us to load a checkpoint and
fairseq/optim/cpu_adam.py:54
Methodoptimizer_config
(self)
fairseq/optim/fp16_optimizer.py:313
Methodoptimizer_config
(self)
fairseq/optim/fp16_optimizer.py:520
Methodordered_indices
(self)
fairseq/benchmark/dummy_masked_lm.py:122
Methodordered_indices
(self)
fairseq/benchmark/dummy_mt.py:114
Methodordered_indices
(self)
fairseq/benchmark/dummy_lm.py:113
Methodordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/subsample_dataset.py:61
Methodordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/language_pair_dataset.py:424
Methodordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/fairseq_dataset.py:70
Methodordered_indices
Ordered indices for batching.
fairseq/data/round_robin_zip_datasets.py:101
Methodordered_indices
(self)
fairseq/data/concat_sentences_dataset.py:38
Methodordered_indices
(self)
fairseq/data/resampling_dataset.py:96
Methodordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/monolingual_dataset.py:215
Methodordered_indices
(self)
fairseq/data/multi_corpus_dataset.py:71
Methodordered_indices
(self)
fairseq/data/base_wrapper_dataset.py:38
Methodordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/denoising_dataset.py:416
Methodordered_indices
Returns indices sorted by length. So less padding is needed.
fairseq/data/concat_dataset.py:87
Methodordered_indices
Ordered indices for batching. Here we call the underlying dataset's ordered_indices() so that we get the same random ordering
fairseq/data/multi_corpus_sampled_dataset.py:56
Methodordered_indices
(self)
fairseq/data/lm_context_window_dataset.py:88
Methodordered_indices
(self)
fairseq/data/transform_eos_lang_pair_dataset.py:100
← previousnext →2,501–2,600 of 3,098, ranked by callers