Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/huggingface/transformers
/ functions
Functions
4,119 in github.com/huggingface/transformers
⨍
Functions
4,119
◇
Types & classes
939
↳
Endpoints
4
Method
test_config_for_model_str
(self)
tests/test_configuration_auto.py:42
Method
test_config_from_model_shortcut
(self)
tests/test_configuration_auto.py:30
Method
test_config_model_type_from_local_file
(self)
tests/test_configuration_auto.py:34
Method
test_config_model_type_from_model_identifier
(self)
tests/test_configuration_auto.py:38
Method
test_configuration_examples
(self)
tests/test_doc_samples.py:100
Method
test_constant_scheduler
(self)
tests/test_optimization.py:95
Method
test_conversion_reversible
(self)
tests/test_tokenization_common.py:1039
Method
test_correct_missing_keys
(self)
tests/test_modeling_common.py:580
Method
test_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
Method
test_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
Method
test_ctrl_lm_head
(self)
tests/test_modeling_tf_ctrl.py:175
Method
test_ctrl_lm_head_model
(self)
tests/test_modeling_ctrl.py:185
Method
test_ctrl_model
(self)
tests/test_modeling_tf_ctrl.py:171
Method
test_ctrl_model
(self)
tests/test_modeling_ctrl.py:181
Method
test_dataloader
(self)
examples/lightning_base.py:153
Method
test_dataloader
(self)
examples/seq2seq/finetune.py:228
Function
test_dataset
(tok)
examples/seq2seq/test_seq2seq_examples.py:234
Method
test_default_classification
(self)
tests/test_trainer.py:60
Method
test_default_regression
(self)
tests/test_trainer.py:71
Method
test_default_with_dict
(self)
tests/test_trainer.py:27
Method
test_default_with_no_labels
(self)
tests/test_trainer.py:48
Method
test_determinism
(self)
tests/test_modeling_common.py:115
Method
test_determinism
(self)
tests/test_modeling_tf_common.py:437
Method
test_distilbert_model
(self)
tests/test_modeling_tf_distilbert.py:215
Method
test_distilbert_model
(self)
tests/test_modeling_distilbert.py:255
Method
test_distill_checkpointing_with_teacher
(self)
examples/seq2seq/test_seq2seq_examples.py:119
Method
test_distill_no_teacher
(self)
examples/seq2seq/test_seq2seq_examples.py:115
Method
test_distill_t5
(self)
examples/seq2seq/test_seq2seq_examples.py:142
Method
test_doc_sources
(self)
tests/test_doc_samples.py:110
Method
test_dropout_random_seed_is_changing
(self)
tests/test_modeling_reformer.py:451
Method
test_dummy_inputs
(self)
tests/test_modeling_bart.py:498
Method
test_electra_model
(self)
tests/test_modeling_tf_electra.py:197
Method
test_electra_model
(self)
tests/test_modeling_electra.py:340
Method
test_encode_decode_with_spaces
(self)
tests/test_tokenization_common.py:385
Method
test_encode_plus_with_padding
(self)
tests/test_tokenization_common.py:920
Method
test_enro_forward
(self)
tests/test_modeling_bart.py:239
Method
test_enro_generate
(self)
tests/test_modeling_bart.py:264
Method
test_enro_tokenizer_batch_encode_plus
(self)
tests/test_modeling_bart.py:316
Method
test_enro_tokenizer_decode_ignores_language_codes
(self)
tests/test_modeling_bart.py:320
Method
test_enro_tokenizer_prepare_translation_batch
(self)
tests/test_modeling_bart.py:304
Method
test_enro_tokenizer_truncation
(self)
tests/test_modeling_bart.py:328
Method
test_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
Method
test_epoch_end
(self, outputs)
examples/lightning_base.py:132
Method
test_epoch_end
(self, outputs)
examples/seq2seq/finetune.py:177
Method
test_epoch_end
(self, outputs)
examples/token-classification/run_pl_ner.py:142
Method
test_epoch_end
(self, outputs)
examples/text-classification/run_pl_glue.py:135
Method
test_export_custom_bert_model
(self)
tests/test_onnx.py:38
Method
test_export_pytorch
(self)
tests/test_onnx.py:32
Method
test_export_tensorflow
(self)
tests/test_onnx.py:26
Function
test_finetune
(model)
examples/seq2seq/test_seq2seq_examples.py:211
Method
test_fit_to_block_sequence_fit_exactly
Do nothing if the sequence is the right size.
examples/seq2seq/bertabs/test_utils_summarization.py:33
Method
test_fit_to_block_sequence_too_big
Truncate the sequence if it is too long.
examples/seq2seq/bertabs/test_utils_summarization.py:39
Method
test_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
Method
test_flaubert_lm_head
(self)
tests/test_modeling_flaubert.py:339
Method
test_flaubert_model
(self)
tests/test_modeling_flaubert.py:335
Method
test_flaubert_qa
(self)
tests/test_modeling_flaubert.py:347
Method
test_flaubert_sequence_classif
(self)
tests/test_modeling_flaubert.py:351
Method
test_flaubert_simple_qa
(self)
tests/test_modeling_flaubert.py:343
Method
test_for_causal_lm
(self)
tests/test_modeling_bert.py:492
Method
test_for_causal_lm_decoder
(self)
tests/test_modeling_bert.py:500
Method
test_for_masked_lm
(self)
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py:233
Method
test_for_masked_lm
(self)
templates/adding_a_new_model/tests/test_modeling_xxx.py:254
Method
test_for_masked_lm
(self)
tests/test_modeling_roberta.py:245
Method
test_for_masked_lm
(self)
tests/test_modeling_tf_albert.py:247
Method
test_for_masked_lm
(self)
tests/test_modeling_tf_distilbert.py:219
Method
test_for_masked_lm
(self)
tests/test_modeling_tf_electra.py:201
Method
test_for_masked_lm
(self)
tests/test_modeling_albert.py:292
Method
test_for_masked_lm
(self)
tests/test_modeling_tf_mobilebert.py:288
Method
test_for_masked_lm
(self)
tests/test_modeling_bert.py:496
Method
test_for_masked_lm
(self)
tests/test_modeling_mobilebert.py:428
Method
test_for_masked_lm
(self)
tests/test_modeling_tf_bert.py:284
Method
test_for_masked_lm
(self)
tests/test_modeling_distilbert.py:259
Method
test_for_masked_lm
(self)
tests/test_modeling_tf_roberta.py:218
Method
test_for_masked_lm
(self)
tests/test_modeling_electra.py:344
Method
test_for_multiple_choice
(self)
tests/test_modeling_roberta.py:253
Method
test_for_multiple_choice
(self)
tests/test_modeling_tf_distilbert.py:231
Method
test_for_multiple_choice
(self)
tests/test_modeling_albert.py:296
Method
test_for_multiple_choice
(self)
tests/test_modeling_tf_mobilebert.py:292
Method
test_for_multiple_choice
(self)
tests/test_modeling_bert.py:504
Method
test_for_multiple_choice
(self)
tests/test_modeling_mobilebert.py:432
Method
test_for_multiple_choice
(self)
tests/test_modeling_tf_bert.py:288
Method
test_for_multiple_choice
(self)
tests/test_modeling_distilbert.py:275
Method
test_for_multiple_choice
(self)
tests/test_modeling_longformer.py:317
Method
test_for_multiple_choice
(self)
tests/test_modeling_tf_roberta.py:230
Method
test_for_multiple_choice
(self)
tests/test_modeling_electra.py:364
Method
test_for_next_sequence_prediction
(self)
tests/test_modeling_tf_mobilebert.py:296
Method
test_for_next_sequence_prediction
(self)
tests/test_modeling_bert.py:508
Method
test_for_next_sequence_prediction
(self)
tests/test_modeling_mobilebert.py:436
Method
test_for_next_sequence_prediction
(self)
tests/test_modeling_tf_bert.py:292
Method
test_for_pre_training
(self)
tests/test_modeling_electra.py:352
Method
test_for_pretraining
(self)
tests/test_modeling_tf_albert.py:243
Method
test_for_pretraining
(self)
tests/test_modeling_tf_electra.py:205
Method
test_for_pretraining
(self)
tests/test_modeling_albert.py:288
Method
test_for_pretraining
(self)
tests/test_modeling_tf_mobilebert.py:300
Method
test_for_pretraining
(self)
tests/test_modeling_bert.py:512
Method
test_for_pretraining
(self)
tests/test_modeling_mobilebert.py:440
Method
test_for_pretraining
(self)
tests/test_modeling_tf_bert.py:296
Method
test_for_question_answering
(self)
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py:237
Method
test_for_question_answering
(self)
templates/adding_a_new_model/tests/test_modeling_xxx.py:258
Method
test_for_question_answering
(self)
tests/test_modeling_roberta.py:257
← previous
next →
3,501–3,600 of 4,119, ranked by callers