MCPcopy Create free account

hub / github.com/FLC777/GLAT / functions

Functions3,098 in github.com/FLC777/GLAT

↓ 6 callersFunctionsplit_exists
(split, src, tgt, lang, data_path)
fairseq/tasks/translation.py:61
↓ 6 callersMethodtokenize
(self, sent: str)
fairseq/scoring/tokenizer.py:53
↓ 5 callersFunctionEmbedding
(num_embeddings, embedding_dim, padding_idx)
fairseq/models/lstm.py:666
↓ 5 callersMethod__init__
(self, args)
fairseq/model_parallel/models/pipeline_parallel_transformer/layers.py:311
↓ 5 callersMethod__init__
(self, *args, **kwargs)
fairseq/models/fairseq_model.py:349
↓ 5 callersMethod_map_index
(self, key, index)
fairseq/data/round_robin_zip_datasets.py:46
↓ 5 callersMethod_map_index
If dataset A has length N and dataset B has length M then index 1 maps to index 1 of dataset A, and index N + 1 maps to index
fairseq/data/multi_corpus_dataset.py:110
↓ 5 callersFunction_set_legacy_defaults
Helper to set default arguments based on *add_args*.
fairseq/dataclass/utils.py:173
↓ 5 callersMethodadd_args
Add optimizer-specific arguments to the parser.
fairseq/optim/sgd.py:18
↓ 5 callersMethodbackward
(ctx, grad)
fairseq/modules/scalar_bias.py:26
↓ 5 callersFunctionbase_architecture
(args)
fairseq/models/fconv.py:700
↓ 5 callersMethodbuild_generator
( self, models, args, seq_gen_cls=None, extra_gen_cls_kwargs=None )
fairseq/tasks/fairseq_task.py:342
↓ 5 callersMethodcreate
(constraints: List[List[int]])
fairseq/token_generation_constraints.py:146
↓ 5 callersMethodencode
(x: str)
fairseq/data/encoders/bytes.py:26
↓ 5 callersMethodget_decoder_langtok
(self, tgt_lang)
fairseq/tasks/multilingual_translation.py:168
↓ 5 callersMethodget_model
Get the (non-wrapped) model instance.
fairseq/trainer.py:869
↓ 5 callersFunctionget_parser
(desc, default_task="translation")
fairseq/options.py:210
↓ 5 callersMethodload_dataset
Load a given dataset split. Args: split (str): name of the split (e.g., train, valid, test)
fairseq/tasks/masked_lm.py:129
↓ 5 callersFunctionload_indexed_dataset
A helper function for loading indexed datasets. Args: path (str): path to indexed dataset (e.g., 'data-bin/train') dictionary (~f
fairseq/data/data_utils.py:69
↓ 5 callersFunctionload_langpair_dataset
( data_path, split, src, src_dict, tgt, tgt_dict, combine, dataset_impl, u
fairseq/tasks/translation.py:39
↓ 5 callersFunctionmake_dataset
(path, impl, fix_lua_indexing=False, dictionary=None)
fairseq/data/indexed_dataset.py:70
↓ 5 callersFunctionmaybe_shorten_dataset
( dataset, split, shorten_data_split_list, shorten_method, tokens_per_sample, seed, )
fairseq/data/shorten_dataset.py:63
↓ 5 callersMethodnext_tokens
The set of child labels.
fairseq/token_generation_constraints.py:141
↓ 5 callersFunctionrename_logger
(logger, new_name)
fairseq/logging/progress_bar.py:167
↓ 5 callersMethodstate_dict
(self, destination=None, prefix="", keep_vars=False)
fairseq/modules/linearized_convolution.py:31
↓ 5 callersMethodstep
Take a single search step. Args: step: the current search step, starting at 0 lprobs: (bsz x input_beam_size x vocab_
fairseq/search.py:30
↓ 5 callersFunctiontrain_path
(lang)
fairseq_cli/preprocess.py:46
↓ 4 callersMethod__init__
(self, iterable, epoch=None, prefix=None)
fairseq/logging/progress_bar.py:118
↓ 4 callersMethod__init__
(self, encoder, decoder)
fairseq/models/lightconv.py:77
↓ 4 callersMethod__init__
(self, pad_left, pad_right)
fairseq/models/wav2vec/wav2vec.py:422
↓ 4 callersFunction_broadcast_object_slow
( obj: Any, src_rank: int, group: object, dist_device: torch.device, )
fairseq/distributed/utils.py:744
↓ 4 callersMethod_format_stats
(self, stats)
fairseq/logging/progress_bar.py:158
↓ 4 callersMethod_get_input_buffer
(self, incremental_state)
fairseq/modules/dynamic_convolution.py:286
↓ 4 callersMethod_get_meta
( self, attribute_name: str, meta: str, default: Optional[Any] = None )
fairseq/dataclass/configs.py:39
↓ 4 callersFunction_lang_token_index
Return language token index.
fairseq/tasks/multilingual_translation.py:32
↓ 4 callersMethod_map_index_to_dataset
Different underlying datasets have different lengths. In order to ensure we are not accessing an index outside the range of the curre
fairseq/data/multi_corpus_sampled_dataset.py:71
↓ 4 callersMethod_set_input_buffer
(self, incremental_state, new_buffer)
fairseq/modules/dynamic_convolution.py:289
↓ 4 callersMethod_transpose_if_training
(self, x, incremental_state)
fairseq/models/fconv.py:630
↓ 4 callersFunctionadd_dataset_args
(parser, train=False, gen=False)
fairseq/options.py:292
↓ 4 callersFunctionadd_distributed_training_args
(parser, default_world_size=None)
fairseq/options.py:299
↓ 4 callersMethodadd_item
(self, tensor)
fairseq/data/indexed_dataset.py:331
↓ 4 callersFunctionbase_architecture
(args)
fairseq/model_parallel/models/roberta/model.py:193
↓ 4 callersFunctionbase_architecture
(args)
fairseq/models/lightconv.py:906
↓ 4 callersFunctionbase_architecture
(args)
fairseq/models/speech_to_text/s2t_transformer.py:375
↓ 4 callersFunctionbleu_addngram
fairseq/clib/libbleu/libbleu.cpp:69
↓ 4 callersFunctionbuffered_arange
(max)
fairseq/utils.py:255
↓ 4 callersMethodbuild_optimizer
Args: cfg (omegaconf.DictConfig): fairseq args params (iterable): iterable of parameters to optimize
fairseq/optim/fp16_optimizer.py:280
↓ 4 callersFunctiondefault_architecture
(args)
fairseq/models/huggingface/hf_gpt2.py:135
↓ 4 callersFunctionemulate_int
(w, bits, method, scale=None, zero_point=None)
fairseq/modules/quantization/scalar/ops.py:9
↓ 4 callersFunctioneval_str_dict
(x, type=dict)
fairseq/utils.py:726
↓ 4 callersFunctionget_lang_tok
( lang: str, lang_tok_style: str, spec: str = LangTokSpec.main.value )
fairseq/data/multilingual/multilingual_utils.py:29
↓ 4 callersMethodget_normalized_probs
Get normalized probabilities (or log probs) from a net's output.
fairseq/models/roberta/model.py:202
↓ 4 callersMethodget_normalized_probs_scriptable
Get normalized probabilities (or log probs) from a net's output.
fairseq/models/fairseq_decoder.py:73
↓ 4 callersMethodget_num_updates
Get the number of parameters updates.
fairseq/optim/bmuf.py:138
↓ 4 callersMethodget_source_dictionary
(self, lang)
fairseq/data/multilingual/multilingual_data_manager.py:430
↓ 4 callersFunctionget_time_gap
(s, e)
fairseq/tasks/translation_multi_simple_epoch.py:27
↓ 4 callersFunctionlengths_to_padding_mask
(lens: torch.LongTensor)
fairseq/data/data_utils.py:520
↓ 4 callersMethodload_state_dict
Copies parameters and buffers from *state_dict* into this module and its descendants. Overrides the method in :class:`nn.Module`. Com
fairseq/models/fairseq_model.py:94
↓ 4 callersMethodmax_positions
Maximum output length supported by the encoder.
fairseq/models/roberta/model.py:493
↓ 4 callersMethodmaybe_layer_norm
(self, layer_norm, x, before=False, after=False)
fairseq/model_parallel/models/pipeline_parallel_transformer/layers.py:386
↓ 4 callersMethodmaybe_layer_norm
(self, i, x, before=False, after=False)
fairseq/models/lightconv.py:709
↓ 4 callersFunctionmerge
(key, left_pad, move_eos_to_beginning=False, pad_to_length=None)
fairseq/data/language_pair_dataset.py:29
↓ 4 callersFunctionmerge_result
(worker_result)
fairseq_cli/preprocess.py:125
↓ 4 callersFunctionmerge_with_parent
(dc: FairseqDataclass, cfg: FairseqDataclass)
fairseq/dataclass/utils.py:456
↓ 4 callersMethodnoising
(self, x, lengths, noising_prob=0.0)
fairseq/data/noising.py:36
↓ 4 callersMethodprepare_for_inference_
Prepare model for inference.
fairseq/models/fairseq_model.py:153
↓ 4 callersFunctionreadlines
(fd)
fairseq_cli/score.py:49
↓ 4 callersMethodreset
(self)
fairseq/logging/meters.py:47
↓ 4 callersMethodreset
(self, one_init=False)
fairseq/scoring/bleu.py:101
↓ 4 callersFunctionsafe_readline
(f)
fairseq/binarizer.py:15
↓ 4 callersMethodsample_negatives
(self, y, num)
fairseq/models/wav2vec/wav2vec2.py:373
↓ 4 callersMethodset_epoch
(self, epoch)
fairseq/data/list_dataset.py:31
↓ 4 callersFunctiontype_as
(a, b)
fairseq/logging/meters.py:15
↓ 4 callersMethodupdate_config
Log latest configuration.
fairseq/logging/progress_bar.py:148
↓ 4 callersMethodzero_grad
(self)
fairseq/trainer.py:839
↓ 3 callersFunctionGatedLinear
Weight-normalized Linear layer (input: B x T x C) with interspersed GLU units
fairseq/modules/downsampled_multihead_attention.py:308
↓ 3 callersFunctionLinear
(in_features, out_features, bias=True)
fairseq/models/wav2vec/wav2vec2_asr.py:601
↓ 3 callersMethod__init__
(self, models)
fairseq/sequence_generator.py:727
↓ 3 callersMethod__init__
(self, index)
fairseq/modules/downsampled_multihead_attention.py:292
↓ 3 callersMethod__init__
(self, args, encoder)
fairseq/model_parallel/models/roberta/model.py:43
↓ 3 callersMethod__init__
(self, cfg: DictConfig, params, fp32_optimizer, fp32_params, **kwargs)
fairseq/optim/fp16_optimizer.py:245
↓ 3 callersMethod__init__
(self, dictionary, bpe_cont_marker="@@", bpe_end_marker=None)
fairseq/data/noising.py:14
↓ 3 callersMethod__init__
(self, encoder, decoder)
fairseq/models/fconv.py:69
↓ 3 callersMethod__init__
( self, dictionary, embed_dim=512, max_positions=1024, convolutions=((
fairseq/models/fconv_self_att.py:176
↓ 3 callersMethod__init__
(self, encoder, decoder)
fairseq/models/lstm.py:29
↓ 3 callersMethod__init__
(self, args, encoder)
fairseq/models/roberta/model.py:43
↓ 3 callersMethod__init__
(self, encoder, decoder)
fairseq/models/speech_to_text/berard.py:37
↓ 3 callersMethod__init__
(self, cfg: Wav2Vec2CtcConfig, w2v_encoder: BaseFairseqModel)
fairseq/models/wav2vec/wav2vec2_asr.py:135
↓ 3 callersMethod__init__
(self, cfg: Wav2Vec2Config)
fairseq/models/wav2vec/wav2vec2.py:224
↓ 3 callersMethod_build_optimizer
(self)
fairseq/trainer.py:217
↓ 3 callersMethod_clean_if_not_none
(self, var_list)
fairseq/data/multilingual/sampled_multi_dataset.py:123
↓ 3 callersMethod_generate
( self, sample: Dict[str, Dict[str, Tensor]], prefix_tokens: Optional[Tensor] = None,
fairseq/sequence_generator.py:184
↓ 3 callersMethod_log_oom
(self, exc)
fairseq/trainer.py:1012
↓ 3 callersFunction_override_attr
( sub_node: str, data_class: Type[FairseqDataclass], args: Namespace )
fairseq/dataclass/utils.py:196
↓ 3 callersMethod_prepare_sample
(self, sample, is_dummy=False)
fairseq/trainer.py:944
↓ 3 callersMethod_reduce_and_log_stats
(self, logging_outputs, sample_size, grad_norm=None)
fairseq/trainer.py:1138
↓ 3 callersMethod_sync_fp16_grads_to_fp32
(self)
fairseq/optim/fp16_optimizer.py:104
↓ 3 callersMethodadd_file_to_dictionary
(filename, dict, tokenize, num_workers)
fairseq/data/dictionary.py:350
↓ 3 callersMethodadd_insertion_noise
(self, tokens, p)
fairseq/data/denoising_dataset.py:372
↓ 3 callersFunctionall_reduce
(tensor, group, op="sum")
fairseq/distributed/utils.py:486
← previousnext →101–200 of 3,098, ranked by callers