MCPcopy Create free account

hub / github.com/FLC777/GLAT / functions

Functions3,098 in github.com/FLC777/GLAT

↓ 2 callersFunctionsmart_byte_decode
(x: str)
fairseq/data/encoders/byte_utils.py:34
↓ 2 callersMethodsplit_exists
(cls, split, src, tgt, lang, data_path, dataset_impl)
fairseq/data/multilingual/multilingual_data_manager.py:492
↓ 2 callersFunctionsplit_s3_path
Split a full s3 path into the bucket name and path.
fairseq/file_utils.py:174
↓ 2 callersFunctionstack
(key)
fairseq/models/nat/fairseq_nat_model.py:24
↓ 2 callersMethodstep
Move to the next stage of quantization.
fairseq/quantization_utils.py:75
↓ 2 callersMethodstep
Performs a single optimization step.
fairseq/optim/fp16_optimizer.py:203
↓ 2 callersMethodstring
(self, tokens: torch.LongTensor)
fairseq/hub_utils.py:251
↓ 2 callersMethodtake
Truncates the iterator to n elements at most.
fairseq/data/iterators.py:84
↓ 2 callersMethodtokenize_text
(self, text: str)
fairseq/data/audio/speech_to_text_dataset.py:286
↓ 2 callersMethodtokens
Returns the set of tokens in constraints.
fairseq/token_generation_constraints.py:177
↓ 2 callersFunctiontorch_persistent_save
(obj, f)
fairseq/checkpoint_utils.py:386
↓ 2 callersFunctiontorch_seed
(seed)
glat_plugins/models/glat_ctc.py:25
↓ 2 callersFunctiontorch_seed
(seed)
glat_plugins/models/glat.py:22
↓ 2 callersFunctiontransformer_lm_big
(args)
fairseq/models/transformer_lm.py:335
↓ 2 callersFunctiontransformer_wmt_en_de_big
(args)
fairseq/models/transformer.py:1109
↓ 2 callersMethodunk_string
Return unknown string, optionally escaped as: <<unk>>
fairseq/data/dictionary.py:107
↓ 2 callersFunctionunpack_kwargs
( kwarg_keys: List[str], flat_args: List[Any] )
fairseq/modules/checkpoint_activations.py:72
↓ 2 callersFunctionunpack_non_tensors
( tensors: Tuple[torch.Tensor], packed_non_tensors: Dict[str, List[Any]], )
fairseq/modules/checkpoint_activations.py:108
↓ 2 callersMethodupdate_args
(cls, args)
fairseq/tasks/multilingual_translation.py:120
↓ 2 callersFunctionupgrade
(arg_number, arg_structure)
fairseq/utils.py:378
↓ 2 callersMethodupgrade_state_dict_named
Upgrade old state dicts to work with newer code. Args: state_dict (dict): state dictionary to upgrade, in place name
fairseq/models/fairseq_model.py:121
↓ 2 callersFunctionupgrade_state_dict_with_xlm_weights
Load XLM weights into a Transformer encoder or decoder model. Args: state_dict: state dict for either TransformerEncoder or
fairseq/models/transformer_from_pretrained_xlm.py:73
↓ 2 callersMethodvalid_step
Do forward pass in evaluation mode.
fairseq/trainer.py:786
↓ 2 callersMethodweights_for_band
(self, band: int)
fairseq/modules/adaptive_input.py:66
↓ 1 callersFunctionEmbedding
(num_embeddings, embedding_dim, padding_idx)
fairseq/models/wav2vec/wav2vec2_asr.py:594
↓ 1 callersFunctionLSTM
(input_size, hidden_size, **kwargs)
fairseq/models/lstm.py:673
↓ 1 callersFunctionLSTMCell
(input_size, hidden_size, **kwargs)
fairseq/models/lstm.py:681
↓ 1 callersFunctionLinearizedConv1d
Weight-normalized Conv1d layer optimized for decoding
fairseq/models/fconv.py:679
↓ 1 callersFunctionLinearizedConv1d
Weight-normalized Conv1d layer optimized for decoding
fairseq/models/fconv_self_att.py:613
↓ 1 callersMethod__copy__
(self)
fairseq/token_generation_constraints.py:239
↓ 1 callersMethod__copy__
(self)
fairseq/token_generation_constraints.py:404
↓ 1 callersMethod__getitem__
(self, idx)
fairseq/data/fasta_dataset.py:42
↓ 1 callersMethod__getitem_cached__
(self, seed: int, epoch: int, index: int)
fairseq/data/mask_tokens_dataset.py:115
↓ 1 callersMethod__init__
(self, seed)
fairseq/utils.py:566
↓ 1 callersMethod__init__
(self, task)
fairseq/criterions/fairseq_criterion.py:16
↓ 1 callersMethod__init__
( self, input_size, kernel_size=1, padding=0, num_heads=1, wei
fairseq/modules/lightweight_convolution.py:73
↓ 1 callersMethod__init__
(self, args)
fairseq/modules/transformer_layer.py:32
↓ 1 callersMethod__init__
(self, input_dim: int, num_layers: int = 1)
fairseq/modules/character_token_embedder.py:185
↓ 1 callersMethod__init__
(self)
fairseq/logging/meters.py:38
↓ 1 callersMethod__init__
( self, params, lr=None, eps=(1e-30, 1e-3), clip_threshold=1.0,
fairseq/optim/adafactor.py:100
↓ 1 callersMethod__init__
( self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8, weight_
fairseq/optim/adam.py:124
↓ 1 callersMethod__init__
(self, params, lr=required, momentum=0, weight_decay=0)
fairseq/optim/nag.py:50
↓ 1 callersMethod__init__
( self, params, lr=2e-3, betas=(0.9, 0.999), eps=1e-8, weight_
fairseq/optim/adamax.py:70
↓ 1 callersMethod__init__
( self, params, lr=1e-3, bias_correction=True, betas=(0.9, 0.999),
fairseq/optim/fused_adam.py:72
↓ 1 callersMethod__init__
( self, params, lr=1e-3, bias_correction=True, betas=(0.9, 0.999),
fairseq/optim/cpu_adam.py:76
↓ 1 callersMethod__init__
(self, batch, num_items, item_size)
fairseq/benchmark/dummy_masked_lm.py:97
↓ 1 callersMethod__init__
(self, args, dictionary)
fairseq/benchmark/dummy_mt.py:27
↓ 1 callersMethod__init__
(self, cfg: DummyLMConfig)
fairseq/benchmark/dummy_lm.py:37
↓ 1 callersMethod__init__
(self, args, encoder)
fairseq/benchmark/dummy_model.py:19
↓ 1 callersMethod__init__
(self, dataset, truncation_length)
fairseq/data/shorten_dataset.py:15
↓ 1 callersMethod__init__
(self, path: str, cache_indices=False)
fairseq/data/fasta_dataset.py:24
↓ 1 callersMethod__init__
( self, pad="<pad>", eos="</s>", unk="<unk>", mask="<mask>", c
fairseq/data/legacy/masked_lm_dictionary.py:38
↓ 1 callersMethod__init__
( self, sample_rate, max_sample_size=None, min_sample_size=0, shuffle=
fairseq/data/audio/raw_audio_dataset.py:22
↓ 1 callersMethod__init__
(self, dictionary)
fairseq/tasks/audio_pretraining.py:27
↓ 1 callersMethod__init__
(self, args, encoder)
fairseq/models/masked_lm.py:36
↓ 1 callersMethod__init__
(self, args, dictionary, embed_tokens)
fairseq/models/transformer_from_pretrained_xlm.py:113
↓ 1 callersMethod__init__
(self, args, encoder, decoder)
fairseq/models/bart/model.py:40
↓ 1 callersMethod__init__
(self, models)
fairseq/models/nat/nonautoregressive_ensembles.py:67
↓ 1 callersMethod__init__
(self, args, dictionary, embed_tokens, no_encoder_attn=False)
fairseq/models/nat/nonautoregressive_transformer.py:218
↓ 1 callersMethod__init__
(self, encoder, decoder)
fairseq/models/speech_to_text/convtransformer.py:31
↓ 1 callersMethod__init__
(self, args, task)
fairseq/models/huggingface/hf_gpt2.py:56
↓ 1 callersMethod__init__
(self, cfg)
fairseq/scoring/bleu.py:83
↓ 1 callersMethod__len__
(self)
fairseq/data/id_dataset.py:15
↓ 1 callersMethod__repr__
(self)
fairseq/data/audio/speech_to_text_dataset.py:265
↓ 1 callersMethod__setitem__
(self, key, value)
fairseq/logging/meters.py:232
↓ 1 callersMethod_add_file_to_dictionary_single_worker
( filename, tokenize, eos_word, worker_id=0, num_workers=1 )
fairseq/data/dictionary.py:321
↓ 1 callersMethod_all_gather_list_sync
Sync logging outputs across workers. all_gather_list_sync is suitable when logging outputs are complex types.
fairseq/trainer.py:1035
↓ 1 callersMethod_append_prev_key_padding_mask
( key_padding_mask: Optional[Tensor], prev_key_padding_mask: Optional[Tensor], batch_s
fairseq/modules/multihead_attention.py:380
↓ 1 callersMethod_append_prev_key_padding_mask
( key_padding_mask: Optional[Tensor], prev_key_padding_mask: Optional[Tensor], batch_s
fairseq/model_parallel/modules/multihead_attention.py:286
↓ 1 callersFunction_apply
(x)
fairseq/utils.py:84
↓ 1 callersMethod_apply
(m)
fairseq/models/fairseq_model.py:147
↓ 1 callersMethod_approx_sq_grad
(self, exp_avg_sq_row, exp_avg_sq_col)
fairseq/optim/adafactor.py:159
↓ 1 callersMethod_avg_grad_from_all_gpus
(self)
fairseq/optim/bmuf.py:168
↓ 1 callersMethod_block_sync
(self)
fairseq/optim/bmuf.py:76
↓ 1 callersMethod_calc_grad
(self)
fairseq/optim/bmuf.py:158
↓ 1 callersFunction_catalog_shared_params
(module, memo=None, prefix="")
fairseq/trainer.py:1199
↓ 1 callersMethod_check_grad_norms
Check that grad norms are consistent across workers.
fairseq/trainer.py:1103
↓ 1 callersMethod_check_xla_compilation
(self)
fairseq/trainer.py:1182
↓ 1 callersFunction_chunk_iterator
(itr, chunk_size)
fairseq/data/iterators.py:526
↓ 1 callersMethod_collate
Does the heavy lifting for creating a batch from the input list of examples. The logic is as follows: 1. Mask the input b
fairseq/data/legacy/masked_lm_dataset.py:172
↓ 1 callersFunction_collate_frames
Convert a list of 2D frames into a padded 3D tensor Args: frames (list): list of 2D frames of size L[i]*f_dim. Where L[i] is
fairseq/data/audio/speech_to_text_dataset.py:194
↓ 1 callersMethod_compute_ctc_loss
outputs: batch x len x d_model targets: batch x len masks: batch x len policy_logprob: if there is some policy
glat_plugins/criterions/ctc_loss.py:82
↓ 1 callersMethod_compute_loss
outputs: batch x len x d_model targets: batch x len masks: batch x len policy_logprob: if there is some policy
fairseq/criterions/nat_loss.py:32
↓ 1 callersMethod_compute_loss
outputs: batch x len x d_model targets: batch x len masks: batch x len policy_logprob: if there is some policy
glat_plugins/criterions/ctc_loss.py:37
↓ 1 callersMethod_compute_loss
outputs: batch x len x d_model targets: batch x len masks: batch x len policy_logprob: if there is some policy
glat_plugins/criterions/glat_loss.py:35
↓ 1 callersMethod_compute_normalizer
(self, emissions, targets=None, masks=None, beam=None)
fairseq/modules/dynamic_crf_layer.py:101
↓ 1 callersMethod_compute_score
(self, emissions, targets, masks=None)
fairseq/modules/dynamic_crf_layer.py:89
↓ 1 callersMethod_conv_forward
(self, input, weight)
fairseq/modules/quantization/scalar/modules/qconv.py:75
↓ 1 callersMethod_convolve
( self, char_idxs: torch.Tensor, )
fairseq/modules/character_token_embedder.py:155
↓ 1 callersMethod_create_consumer
(self)
fairseq/data/iterators.py:606
↓ 1 callersMethod_custom_loss
(self, loss, name="loss", factor=1.0)
fairseq/criterions/nat_loss.py:77
↓ 1 callersMethod_custom_loss
(self, loss, name="loss", factor=1.0)
glat_plugins/criterions/ctc_loss.py:116
↓ 1 callersMethod_custom_loss
(self, loss, name="loss", factor=1.0)
glat_plugins/criterions/glat_loss.py:80
↓ 1 callersMethod_decide_stage
return stage, and the corresponding steps within the current stage
fairseq/optim/lr_scheduler/tri_stage_lr_scheduler.py:128
↓ 1 callersMethod_decrease_loss_scale
(self)
fairseq/optim/dynamic_loss_scaler.py:37
↓ 1 callersMethod_detect
(self, tensor, name, backward)
fairseq/nan_detector.py:61
↓ 1 callersMethod_embed_tokens
(self, tokens, incremental_state)
fairseq/models/fconv.py:604
↓ 1 callersMethod_establish_virtual_datasets
(self)
fairseq/data/multilingual/sampled_multi_dataset.py:392
↓ 1 callersMethod_fast_stat_sync_sum
Sync logging outputs across workers. fast_stat_sync_sum is faster than all_gather_list_sync, but is only suitable when loggin
fairseq/trainer.py:1063
↓ 1 callersMethod_filter_vocab
(self, target)
fairseq/data/monolingual_dataset.py:168
← previousnext →501–600 of 3,098, ranked by callers