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
Function
model_parallel_roberta_v1_architecture
(args)
fairseq/model_parallel/models/roberta/model.py:201
Method
moses_fastbpe
(path)
fairseq/models/transformer.py:67
Method
moses_fastbpe
(path)
fairseq/models/transformer_lm.py:176
Method
moses_subword
(path)
fairseq/models/fconv.py:50
Method
moses_subword
(path)
fairseq/models/lightconv.py:54
Method
moses_subword
(path)
fairseq/models/transformer.py:60
Function
move_to_cpu
(sample)
fairseq/utils.py:112
Function
move_to_cuda
(sample, device=None)
fairseq/utils.py:101
Function
multilingual_transformer_iwslt_de_en
(args)
fairseq/models/multilingual_transformer.py:219
Method
multiply_grads
Multiplies grads by a constant *c*.
fairseq/optim/fp16_optimizer.py:401
Method
n
(self)
fairseq/data/iterators.py:351
Method
name
(self)
fairseq/token_generation_constraints.py:247
Method
name
(self)
fairseq/token_generation_constraints.py:424
Method
name
(self)
fairseq/data/subsample_dataset.py:52
Method
name
()
fairseq/dataclass/configs.py:33
Method
next_epoch_idx
(self)
fairseq/data/iterators.py:109
Method
next_epoch_idx
Return the epoch index after *next_epoch_itr* is called.
fairseq/data/iterators.py:193
Method
next_epoch_idx
Return the epoch index after *next_epoch_itr* is called.
fairseq/data/iterators.py:355
Method
next_epoch_itr
Return a new iterator over the dataset. Args: shuffle (bool, optional): shuffle batches before returning the iter
fairseq/data/iterators.py:112
Method
next_epoch_itr
( self, shuffle=True, fix_batches_to_gpus=False, set_dataset_epoch=True )
fairseq/data/iterators.py:200
Method
next_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
Method
next_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
Function
ngram_repeat_block_forward
Input check and call to CUDA OP Backward method not required
fairseq/clib/cuda/ngram_repeat_block_cuda.cpp:29
Method
noising
(self, x, lengths, dropout_prob=None, blank_idx=None)
fairseq/data/noising.py:85
Method
noising
(self, x, lengths, max_shuffle_distance=None)
fairseq/data/noising.py:163
Method
noising
(self, x, lengths)
fairseq/data/noising.py:230
Function
nonautoregressive_transformer_wmt_en_de
(args)
fairseq/models/nat/nonautoregressive_transformer.py:626
Function
noop
(_)
fairseq/models/__init__.py:142
Function
nullsafe_min
(l)
fairseq/utils.py:409
Method
num_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
Method
num_completed
(self)
fairseq/token_generation_constraints.py:411
Method
num_constraint_tokens
(self)
fairseq/token_generation_constraints.py:284
Method
num_constraint_tokens
(self)
fairseq/token_generation_constraints.py:447
Method
num_tokens
(self, index)
fairseq/benchmark/dummy_masked_lm.py:116
Method
num_tokens
(self, index)
fairseq/benchmark/dummy_mt.py:108
Method
num_tokens
(self, index)
fairseq/benchmark/dummy_lm.py:107
Method
num_tokens
(self, index)
fairseq/data/subsample_dataset.py:55
Method
num_tokens
(self, index)
fairseq/data/append_token_dataset.py:31
Method
num_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
Method
num_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
Method
num_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
Method
num_tokens
Return an example's length (number of tokens), used for batching.
fairseq/data/round_robin_zip_datasets.py:85
Method
num_tokens
(self, index)
fairseq/data/concat_sentences_dataset.py:32
Method
num_tokens
(self, index)
fairseq/data/resampling_dataset.py:90
Method
num_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
Method
num_tokens
(self, index)
fairseq/data/bucket_pad_length_dataset.py:72
Method
num_tokens
(self, index)
fairseq/data/base_wrapper_dataset.py:32
Method
num_tokens
(self, index)
fairseq/data/list_dataset.py:25
Method
num_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
Method
num_tokens
(self, index)
fairseq/data/prepend_token_dataset.py:31
Method
num_tokens
(self, index: int)
fairseq/data/concat_dataset.py:64
Method
num_tokens
(self, index)
fairseq/data/indexed_dataset.py:191
Method
num_tokens
(self, index)
fairseq/data/indexed_dataset.py:301
Method
num_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
Method
num_tokens
(self, index)
fairseq/data/lm_context_window_dataset.py:82
Method
num_tokens
(self, index)
fairseq/data/transform_eos_lang_pair_dataset.py:89
Method
num_tokens
(self, index)
fairseq/data/transform_eos_dataset.py:100
Method
num_tokens
Just use the tgt dataset num_tokens
fairseq/data/backtranslation_dataset.py:141
Method
num_tokens
(self, index)
fairseq/data/multilingual/sampled_multi_dataset.py:238
Method
num_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
Method
num_tokens
(self, index)
fairseq/data/audio/speech_to_text_dataset.py:371
Method
num_tokens
(self, index)
fairseq/data/audio/raw_audio_dataset.py:108
Method
num_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
Method
num_tokens_vec
(self, indices)
fairseq/data/multilingual/sampled_multi_dataset.py:241
Function
numpy_seed
Context manager which seeds the NumPy PRNG with the specified seed and restores the state afterward
fairseq/data/data_utils.py:117
Method
optimizer
(self)
fairseq/trainer.py:206
Method
optimizer
(self)
fairseq/optim/bmuf.py:45
Method
optimizer
Return a torch.optim.optimizer.Optimizer instance.
fairseq/optim/fairseq_optimizer.py:24
Method
optimizer
(self)
fairseq/optim/fp16_optimizer.py:301
Method
optimizer
(self)
fairseq/optim/fp16_optimizer.py:512
Method
optimizer_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
Method
optimizer_config
(self)
fairseq/optim/bmuf.py:49
Method
optimizer_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
Method
optimizer_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
Method
optimizer_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
Method
optimizer_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
Method
optimizer_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
Method
optimizer_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
Method
optimizer_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
Method
optimizer_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
Method
optimizer_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
Method
optimizer_config
(self)
fairseq/optim/fp16_optimizer.py:313
Method
optimizer_config
(self)
fairseq/optim/fp16_optimizer.py:520
Method
ordered_indices
(self)
fairseq/benchmark/dummy_masked_lm.py:122
Method
ordered_indices
(self)
fairseq/benchmark/dummy_mt.py:114
Method
ordered_indices
(self)
fairseq/benchmark/dummy_lm.py:113
Method
ordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/subsample_dataset.py:61
Method
ordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/language_pair_dataset.py:424
Method
ordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/fairseq_dataset.py:70
Method
ordered_indices
Ordered indices for batching.
fairseq/data/round_robin_zip_datasets.py:101
Method
ordered_indices
(self)
fairseq/data/concat_sentences_dataset.py:38
Method
ordered_indices
(self)
fairseq/data/resampling_dataset.py:96
Method
ordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/monolingual_dataset.py:215
Method
ordered_indices
(self)
fairseq/data/multi_corpus_dataset.py:71
Method
ordered_indices
(self)
fairseq/data/base_wrapper_dataset.py:38
Method
ordered_indices
Return an ordered list of indices. Batches will be constructed based on this order.
fairseq/data/denoising_dataset.py:416
Method
ordered_indices
Returns indices sorted by length. So less padding is needed.
fairseq/data/concat_dataset.py:87
Method
ordered_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
Method
ordered_indices
(self)
fairseq/data/lm_context_window_dataset.py:88
Method
ordered_indices
(self)
fairseq/data/transform_eos_lang_pair_dataset.py:100
← previous
next →
2,501–2,600 of 3,098, ranked by callers