MCPcopy Create free account

hub / github.com/huggingface/transformers / functions

Functions4,119 in github.com/huggingface/transformers

↓ 1 callersFunctionconvert_tf_checkpoint_to_pytorch
(tf_checkpoint_path, config_file, pytorch_dump_path)
templates/adding_a_new_model/convert_xxx_original_tf_checkpoint_to_pytorch.py:29
↓ 1 callersFunctionconvert_tf_checkpoint_to_pytorch
(tf_checkpoint_path, config_file, pytorch_dump_path, discriminator_or_generator)
src/transformers/convert_electra_original_tf_checkpoint_to_pytorch.py:29
↓ 1 callersFunctionconvert_tf_checkpoint_to_pytorch
(tf_checkpoint_path, albert_config_file, pytorch_dump_path)
src/transformers/convert_albert_original_tf_checkpoint_to_pytorch.py:29
↓ 1 callersFunctionconvert_tf_checkpoint_to_pytorch
(tf_checkpoint_path, config_file, pytorch_dump_path)
src/transformers/convert_t5_original_tf_checkpoint_to_pytorch.py:29
↓ 1 callersFunctionconvert_tf_checkpoint_to_pytorch
(tf_checkpoint_path, mobilebert_config_file, pytorch_dump_path)
src/transformers/convert_mobilebert_original_tf_checkpoint_to_pytorch.py:12
↓ 1 callersMethodconvert_to_tensors
(self, tensor_type: Union[None, str, TensorType], prepend_batch_axis: bool = False)
src/transformers/tokenization_utils_base.py:476
↓ 1 callersFunctionconvert_to_unicode
Converts `text` to Unicode (if it's not already), assuming UTF-8 input.
src/transformers/tokenization_flaubert.py:63
↓ 1 callersMethodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
templates/adding_a_new_model/tokenization_xxx.py:152
↓ 1 callersMethodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string. The most simple way to do it is ' '.join(self.convert_ids_to_tokens(token_ids)
src/transformers/tokenization_utils.py:865
↓ 1 callersFunctionconvert_trax_checkpoint_to_pytorch
(trax_model_pkl_path, config_file, pytorch_dump_path)
src/transformers/convert_reformer_trax_checkpoint_to_pytorch.py:174
↓ 1 callersMethodcopy_t5_to_student
(self, d_layers_to_copy, e_layers_to_copy, hparams, student, teacher)
examples/seq2seq/distillation.py:110
↓ 1 callersMethodcount_file
(self, path, verbose=False, add_eos=False)
src/transformers/tokenization_transfo_xl.py:147
↓ 1 callersFunctioncount_trainable_parameters
(model)
examples/seq2seq/callbacks.py:12
↓ 1 callersMethodcreate_and_check_albert_for_masked_lm
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_albert.py:164
↓ 1 callersMethodcreate_and_check_albert_for_masked_lm
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_albert.py:151
↓ 1 callersMethodcreate_and_check_albert_for_multiple_choice
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_albert.py:223
↓ 1 callersMethodcreate_and_check_albert_for_pretraining
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_albert.py:148
↓ 1 callersMethodcreate_and_check_albert_for_pretraining
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_albert.py:127
↓ 1 callersMethodcreate_and_check_albert_for_question_answering
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_albert.py:189
↓ 1 callersMethodcreate_and_check_albert_for_question_answering
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_albert.py:169
↓ 1 callersMethodcreate_and_check_albert_for_sequence_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_albert.py:177
↓ 1 callersMethodcreate_and_check_albert_for_sequence_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_albert.py:191
↓ 1 callersMethodcreate_and_check_albert_model
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_albert.py:123
↓ 1 callersMethodcreate_and_check_albert_model
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_albert.py:108
↓ 1 callersMethodcreate_and_check_bert_encoder_decoder_model
( self, config, input_ids, attention_mask, encoder_hidden_states,
tests/test_modeling_encoder_decoder.py:107
↓ 1 callersMethodcreate_and_check_bert_encoder_decoder_model_from_pretrained
( self, config, input_ids, attention_mask, encoder_hidden_states,
tests/test_modeling_encoder_decoder.py:144
↓ 1 callersMethodcreate_and_check_bert_encoder_decoder_model_from_pretrained_configs
( self, config, input_ids, attention_mask, encoder_hidden_states,
tests/test_modeling_encoder_decoder.py:77
↓ 1 callersMethodcreate_and_check_bert_encoder_decoder_model_generate
(self, input_ids, config, decoder_config, **kwargs)
tests/test_modeling_encoder_decoder.py:291
↓ 1 callersMethodcreate_and_check_bert_encoder_decoder_model_labels
( self, config, input_ids, attention_mask, encoder_hidden_states,
tests/test_modeling_encoder_decoder.py:259
↓ 1 callersMethodcreate_and_check_bert_for_causal_lm
( self, config, input_ids, token_type_ids, input_mask, sequenc
tests/test_modeling_bert.py:215
↓ 1 callersMethodcreate_and_check_bert_for_masked_lm
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_bert.py:242
↓ 1 callersMethodcreate_and_check_bert_for_masked_lm
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_bert.py:145
↓ 1 callersMethodcreate_and_check_bert_for_multiple_choice
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_bert.py:393
↓ 1 callersMethodcreate_and_check_bert_for_multiple_choice
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_bert.py:196
↓ 1 callersMethodcreate_and_check_bert_for_next_sequence_prediction
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_bert.py:299
↓ 1 callersMethodcreate_and_check_bert_for_next_sequence_prediction
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_bert.py:158
↓ 1 callersMethodcreate_and_check_bert_for_pretraining
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_bert.py:315
↓ 1 callersMethodcreate_and_check_bert_for_pretraining
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_bert.py:169
↓ 1 callersMethodcreate_and_check_bert_for_question_answering
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_bert.py:339
↓ 1 callersMethodcreate_and_check_bert_for_question_answering
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_bert.py:227
↓ 1 callersMethodcreate_and_check_bert_for_sequence_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_bert.py:361
↓ 1 callersMethodcreate_and_check_bert_for_sequence_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_bert.py:184
↓ 1 callersMethodcreate_and_check_bert_for_token_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_bert.py:378
↓ 1 callersMethodcreate_and_check_bert_for_token_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_bert.py:215
↓ 1 callersMethodcreate_and_check_bert_model
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_bert.py:157
↓ 1 callersMethodcreate_and_check_bert_model
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_bert.py:124
↓ 1 callersMethodcreate_and_check_bert_model_for_causal_lm_as_decoder
( self, config, input_ids, token_type_ids, input_mask, sequenc
tests/test_modeling_bert.py:260
↓ 1 callersMethodcreate_and_check_ctrl_lm_head
(self, config, input_ids, input_mask, head_mask, token_type_ids, *args)
tests/test_modeling_tf_ctrl.py:128
↓ 1 callersMethodcreate_and_check_ctrl_model
(self, config, input_ids, input_mask, head_mask, token_type_ids, *args)
tests/test_modeling_tf_ctrl.py:111
↓ 1 callersMethodcreate_and_check_ctrl_model
(self, config, input_ids, input_mask, head_mask, token_type_ids, *args)
tests/test_modeling_ctrl.py:113
↓ 1 callersMethodcreate_and_check_distilbert_for_masked_lm
( self, config, input_ids, input_mask, sequence_labels, token_labels, choice_labels )
tests/test_modeling_tf_distilbert.py:115
↓ 1 callersMethodcreate_and_check_distilbert_for_masked_lm
( self, config, input_ids, input_mask, sequence_labels, token_labels, choice_labels )
tests/test_modeling_distilbert.py:135
↓ 1 callersMethodcreate_and_check_distilbert_for_multiple_choice
( self, config, input_ids, input_mask, sequence_labels, token_labels, choice_labels )
tests/test_modeling_tf_distilbert.py:153
↓ 1 callersMethodcreate_and_check_distilbert_for_multiple_choice
( self, config, input_ids, input_mask, sequence_labels, token_labels, choice_labels )
tests/test_modeling_distilbert.py:202
↓ 1 callersMethodcreate_and_check_distilbert_for_question_answering
( self, config, input_ids, input_mask, sequence_labels, token_labels, choice_labels )
tests/test_modeling_tf_distilbert.py:128
↓ 1 callersMethodcreate_and_check_distilbert_for_question_answering
( self, config, input_ids, input_mask, sequence_labels, token_labels, choice_labels )
tests/test_modeling_distilbert.py:151
↓ 1 callersMethodcreate_and_check_distilbert_for_sequence_classification
( self, config, input_ids, input_mask, sequence_labels, token_labels, choice_labels )
tests/test_modeling_tf_distilbert.py:141
↓ 1 callersMethodcreate_and_check_distilbert_for_sequence_classification
( self, config, input_ids, input_mask, sequence_labels, token_labels, choice_labels )
tests/test_modeling_distilbert.py:169
↓ 1 callersMethodcreate_and_check_distilbert_for_token_classification
( self, config, input_ids, input_mask, sequence_labels, token_labels, choice_labels )
tests/test_modeling_tf_distilbert.py:170
↓ 1 callersMethodcreate_and_check_distilbert_for_token_classification
( self, config, input_ids, input_mask, sequence_labels, token_labels, choice_labels )
tests/test_modeling_distilbert.py:184
↓ 1 callersMethodcreate_and_check_distilbert_model
( self, config, input_ids, input_mask, sequence_labels, token_labels, choice_labels )
tests/test_modeling_tf_distilbert.py:95
↓ 1 callersMethodcreate_and_check_distilbert_model
( self, config, input_ids, input_mask, sequence_labels, token_labels, choice_labels )
tests/test_modeling_distilbert.py:119
↓ 1 callersMethodcreate_and_check_double_lm_head_model
( self, config, input_ids, input_mask, head_mask, token_type_ids, mc_token_ids, *args )
tests/test_modeling_gpt2.py:254
↓ 1 callersMethodcreate_and_check_double_lm_head_model
(self, config, input_ids, head_mask, token_type_ids, *args)
tests/test_modeling_openai.py:136
↓ 1 callersMethodcreate_and_check_electra_for_masked_lm
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_electra.py:117
↓ 1 callersMethodcreate_and_check_electra_for_masked_lm
( self, config, input_ids, token_type_ids, input_mask, sequenc
tests/test_modeling_electra.py:141
↓ 1 callersMethodcreate_and_check_electra_for_multiple_choice
( self, config, input_ids, token_type_ids, input_mask, sequenc
tests/test_modeling_electra.py:270
↓ 1 callersMethodcreate_and_check_electra_for_pretraining
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_electra.py:130
↓ 1 callersMethodcreate_and_check_electra_for_pretraining
( self, config, input_ids, token_type_ids, input_mask, sequenc
tests/test_modeling_electra.py:190
↓ 1 callersMethodcreate_and_check_electra_for_question_answering
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_electra.py:141
↓ 1 callersMethodcreate_and_check_electra_for_question_answering
( self, config, input_ids, token_type_ids, input_mask, sequenc
tests/test_modeling_electra.py:240
↓ 1 callersMethodcreate_and_check_electra_for_sequence_classification
( self, config, input_ids, token_type_ids, input_mask, sequenc
tests/test_modeling_electra.py:215
↓ 1 callersMethodcreate_and_check_electra_for_token_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_electra.py:154
↓ 1 callersMethodcreate_and_check_electra_for_token_classification
( self, config, input_ids, token_type_ids, input_mask, sequenc
tests/test_modeling_electra.py:167
↓ 1 callersMethodcreate_and_check_electra_model
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_tf_electra.py:98
↓ 1 callersMethodcreate_and_check_electra_model
( self, config, input_ids, token_type_ids, input_mask, sequenc
tests/test_modeling_electra.py:116
↓ 1 callersMethodcreate_and_check_flaubert_lm_head
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_flaubert.py:151
↓ 1 callersMethodcreate_and_check_flaubert_model
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_flaubert.py:126
↓ 1 callersMethodcreate_and_check_flaubert_qa
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_flaubert.py:205
↓ 1 callersMethodcreate_and_check_flaubert_sequence_classif
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_flaubert.py:271
↓ 1 callersMethodcreate_and_check_flaubert_simple_qa
( self, config, input_ids, token_type_ids, input_lengths, sequ
tests/test_modeling_flaubert.py:176
↓ 1 callersMethodcreate_and_check_gpt2_double_head
( self, config, input_ids, input_mask, head_mask, token_type_ids, mc_token_ids, *args )
tests/test_modeling_tf_gpt2.py:231
↓ 1 callersMethodcreate_and_check_gpt2_lm_head
(self, config, input_ids, input_mask, head_mask, token_type_ids, *args)
tests/test_modeling_tf_gpt2.py:216
↓ 1 callersMethodcreate_and_check_gpt2_model
(self, config, input_ids, input_mask, head_mask, token_type_ids, *args)
tests/test_modeling_gpt2.py:147
↓ 1 callersMethodcreate_and_check_gpt2_model
(self, config, input_ids, input_mask, head_mask, token_type_ids, *args)
tests/test_modeling_tf_gpt2.py:121
↓ 1 callersMethodcreate_and_check_gpt2_model_attention_mask_past
( self, config, input_ids, input_mask, head_mask, token_type_ids, *args )
tests/test_modeling_gpt2.py:199
↓ 1 callersMethodcreate_and_check_gpt2_model_attention_mask_past
( self, config, input_ids, input_mask, head_mask, token_type_ids, *args )
tests/test_modeling_tf_gpt2.py:174
↓ 1 callersMethodcreate_and_check_gpt2_model_past
(self, config, input_ids, input_mask, head_mask, token_type_ids, *args)
tests/test_modeling_gpt2.py:165
↓ 1 callersMethodcreate_and_check_gpt2_model_past
(self, config, input_ids, input_mask, head_mask, token_type_ids, *args)
tests/test_modeling_tf_gpt2.py:142
↓ 1 callersMethodcreate_and_check_lm_head_model
(self, config, input_ids, input_mask, head_mask, token_type_ids, *args)
tests/test_modeling_gpt2.py:240
↓ 1 callersMethodcreate_and_check_lm_head_model
(self, config, input_ids, head_mask, token_type_ids, *args)
tests/test_modeling_openai.py:122
↓ 1 callersMethodcreate_and_check_lm_head_model
(self, config, input_ids, input_mask, head_mask, token_type_ids, *args)
tests/test_modeling_ctrl.py:131
↓ 1 callersMethodcreate_and_check_longformer_for_masked_lm
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_longformer.py:137
↓ 1 callersMethodcreate_and_check_longformer_for_multiple_choice
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_longformer.py:210
↓ 1 callersMethodcreate_and_check_longformer_for_question_answering
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_longformer.py:155
↓ 1 callersMethodcreate_and_check_longformer_for_sequence_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_longformer.py:178
↓ 1 callersMethodcreate_and_check_longformer_for_token_classification
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_longformer.py:195
↓ 1 callersMethodcreate_and_check_longformer_model
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_longformer.py:118
↓ 1 callersMethodcreate_and_check_mobilebert_for_masked_lm
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_label
tests/test_modeling_tf_mobilebert.py:166
↓ 1 callersMethodcreate_and_check_mobilebert_for_masked_lm
( self, config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels
tests/test_modeling_mobilebert.py:217
← previousnext →801–900 of 4,119, ranked by callers