MCPcopy Create free account

hub / github.com/huggingface/transformers / functions

Functions4,119 in github.com/huggingface/transformers

Methodtest_config_for_model_str
(self)
tests/test_configuration_auto.py:42
Methodtest_config_from_model_shortcut
(self)
tests/test_configuration_auto.py:30
Methodtest_config_model_type_from_local_file
(self)
tests/test_configuration_auto.py:34
Methodtest_config_model_type_from_model_identifier
(self)
tests/test_configuration_auto.py:38
Methodtest_configuration_examples
(self)
tests/test_doc_samples.py:100
Methodtest_constant_scheduler
(self)
tests/test_optimization.py:95
Methodtest_conversion_reversible
(self)
tests/test_tokenization_common.py:1039
Methodtest_correct_missing_keys
(self)
tests/test_modeling_common.py:580
Methodtest_create_position_ids_from_inputs_embeds
Ensure that the default position ids only assign a sequential . This is a regression test for https://github.com/huggingface/transformers/iss
tests/test_modeling_roberta.py:286
Methodtest_create_position_ids_respects_padding_index
Ensure that the default position ids only assign a sequential . This is a regression test for https://github.com/huggingface/transformers/iss
tests/test_modeling_roberta.py:267
Methodtest_ctrl_lm_head
(self)
tests/test_modeling_tf_ctrl.py:175
Methodtest_ctrl_lm_head_model
(self)
tests/test_modeling_ctrl.py:185
Methodtest_ctrl_model
(self)
tests/test_modeling_tf_ctrl.py:171
Methodtest_ctrl_model
(self)
tests/test_modeling_ctrl.py:181
Methodtest_dataloader
(self)
examples/lightning_base.py:153
Methodtest_dataloader
(self)
examples/seq2seq/finetune.py:228
Functiontest_dataset
(tok)
examples/seq2seq/test_seq2seq_examples.py:234
Methodtest_default_classification
(self)
tests/test_trainer.py:60
Methodtest_default_regression
(self)
tests/test_trainer.py:71
Methodtest_default_with_dict
(self)
tests/test_trainer.py:27
Methodtest_default_with_no_labels
(self)
tests/test_trainer.py:48
Methodtest_determinism
(self)
tests/test_modeling_common.py:115
Methodtest_determinism
(self)
tests/test_modeling_tf_common.py:437
Methodtest_distilbert_model
(self)
tests/test_modeling_tf_distilbert.py:215
Methodtest_distilbert_model
(self)
tests/test_modeling_distilbert.py:255
Methodtest_distill_checkpointing_with_teacher
(self)
examples/seq2seq/test_seq2seq_examples.py:119
Methodtest_distill_no_teacher
(self)
examples/seq2seq/test_seq2seq_examples.py:115
Methodtest_distill_t5
(self)
examples/seq2seq/test_seq2seq_examples.py:142
Methodtest_doc_sources
(self)
tests/test_doc_samples.py:110
Methodtest_dropout_random_seed_is_changing
(self)
tests/test_modeling_reformer.py:451
Methodtest_dummy_inputs
(self)
tests/test_modeling_bart.py:498
Methodtest_electra_model
(self)
tests/test_modeling_tf_electra.py:197
Methodtest_electra_model
(self)
tests/test_modeling_electra.py:340
Methodtest_encode_decode_with_spaces
(self)
tests/test_tokenization_common.py:385
Methodtest_encode_plus_with_padding
(self)
tests/test_tokenization_common.py:920
Methodtest_enro_forward
(self)
tests/test_modeling_bart.py:239
Methodtest_enro_generate
(self)
tests/test_modeling_bart.py:264
Methodtest_enro_tokenizer_batch_encode_plus
(self)
tests/test_modeling_bart.py:316
Methodtest_enro_tokenizer_decode_ignores_language_codes
(self)
tests/test_modeling_bart.py:320
Methodtest_enro_tokenizer_prepare_translation_batch
(self)
tests/test_modeling_bart.py:304
Methodtest_enro_tokenizer_truncation
(self)
tests/test_modeling_bart.py:328
Methodtest_ensure_valid_input
Validate parameters are correctly exported GPT2 has "past" parameter in the middle of input_ids, token_type_ids and attention_mask.
tests/test_onnx.py:109
Methodtest_epoch_end
(self, outputs)
examples/lightning_base.py:132
Methodtest_epoch_end
(self, outputs)
examples/seq2seq/finetune.py:177
Methodtest_epoch_end
(self, outputs)
examples/token-classification/run_pl_ner.py:142
Methodtest_epoch_end
(self, outputs)
examples/text-classification/run_pl_glue.py:135
Methodtest_export_custom_bert_model
(self)
tests/test_onnx.py:38
Methodtest_export_pytorch
(self)
tests/test_onnx.py:32
Methodtest_export_tensorflow
(self)
tests/test_onnx.py:26
Functiontest_finetune
(model)
examples/seq2seq/test_seq2seq_examples.py:211
Methodtest_fit_to_block_sequence_fit_exactly
Do nothing if the sequence is the right size.
examples/seq2seq/bertabs/test_utils_summarization.py:33
Methodtest_fit_to_block_sequence_too_big
Truncate the sequence if it is too long.
examples/seq2seq/bertabs/test_utils_summarization.py:39
Methodtest_fit_to_block_sequence_too_small
Pad the sequence with 0 if the sequence is smaller than the block size.
examples/seq2seq/bertabs/test_utils_summarization.py:27
Methodtest_flaubert_lm_head
(self)
tests/test_modeling_flaubert.py:339
Methodtest_flaubert_model
(self)
tests/test_modeling_flaubert.py:335
Methodtest_flaubert_qa
(self)
tests/test_modeling_flaubert.py:347
Methodtest_flaubert_sequence_classif
(self)
tests/test_modeling_flaubert.py:351
Methodtest_flaubert_simple_qa
(self)
tests/test_modeling_flaubert.py:343
Methodtest_for_causal_lm
(self)
tests/test_modeling_bert.py:492
Methodtest_for_causal_lm_decoder
(self)
tests/test_modeling_bert.py:500
Methodtest_for_masked_lm
(self)
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py:233
Methodtest_for_masked_lm
(self)
templates/adding_a_new_model/tests/test_modeling_xxx.py:254
Methodtest_for_masked_lm
(self)
tests/test_modeling_roberta.py:245
Methodtest_for_masked_lm
(self)
tests/test_modeling_tf_albert.py:247
Methodtest_for_masked_lm
(self)
tests/test_modeling_tf_distilbert.py:219
Methodtest_for_masked_lm
(self)
tests/test_modeling_tf_electra.py:201
Methodtest_for_masked_lm
(self)
tests/test_modeling_albert.py:292
Methodtest_for_masked_lm
(self)
tests/test_modeling_tf_mobilebert.py:288
Methodtest_for_masked_lm
(self)
tests/test_modeling_bert.py:496
Methodtest_for_masked_lm
(self)
tests/test_modeling_mobilebert.py:428
Methodtest_for_masked_lm
(self)
tests/test_modeling_tf_bert.py:284
Methodtest_for_masked_lm
(self)
tests/test_modeling_distilbert.py:259
Methodtest_for_masked_lm
(self)
tests/test_modeling_tf_roberta.py:218
Methodtest_for_masked_lm
(self)
tests/test_modeling_electra.py:344
Methodtest_for_multiple_choice
(self)
tests/test_modeling_roberta.py:253
Methodtest_for_multiple_choice
(self)
tests/test_modeling_tf_distilbert.py:231
Methodtest_for_multiple_choice
(self)
tests/test_modeling_albert.py:296
Methodtest_for_multiple_choice
(self)
tests/test_modeling_tf_mobilebert.py:292
Methodtest_for_multiple_choice
(self)
tests/test_modeling_bert.py:504
Methodtest_for_multiple_choice
(self)
tests/test_modeling_mobilebert.py:432
Methodtest_for_multiple_choice
(self)
tests/test_modeling_tf_bert.py:288
Methodtest_for_multiple_choice
(self)
tests/test_modeling_distilbert.py:275
Methodtest_for_multiple_choice
(self)
tests/test_modeling_longformer.py:317
Methodtest_for_multiple_choice
(self)
tests/test_modeling_tf_roberta.py:230
Methodtest_for_multiple_choice
(self)
tests/test_modeling_electra.py:364
Methodtest_for_next_sequence_prediction
(self)
tests/test_modeling_tf_mobilebert.py:296
Methodtest_for_next_sequence_prediction
(self)
tests/test_modeling_bert.py:508
Methodtest_for_next_sequence_prediction
(self)
tests/test_modeling_mobilebert.py:436
Methodtest_for_next_sequence_prediction
(self)
tests/test_modeling_tf_bert.py:292
Methodtest_for_pre_training
(self)
tests/test_modeling_electra.py:352
Methodtest_for_pretraining
(self)
tests/test_modeling_tf_albert.py:243
Methodtest_for_pretraining
(self)
tests/test_modeling_tf_electra.py:205
Methodtest_for_pretraining
(self)
tests/test_modeling_albert.py:288
Methodtest_for_pretraining
(self)
tests/test_modeling_tf_mobilebert.py:300
Methodtest_for_pretraining
(self)
tests/test_modeling_bert.py:512
Methodtest_for_pretraining
(self)
tests/test_modeling_mobilebert.py:440
Methodtest_for_pretraining
(self)
tests/test_modeling_tf_bert.py:296
Methodtest_for_question_answering
(self)
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py:237
Methodtest_for_question_answering
(self)
templates/adding_a_new_model/tests/test_modeling_xxx.py:258
Methodtest_for_question_answering
(self)
tests/test_modeling_roberta.py:257
← previousnext →3,501–3,600 of 4,119, ranked by callers