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_for_question_answering
(self)
tests/test_modeling_tf_albert.py:255
Method
test_for_question_answering
(self)
tests/test_modeling_tf_distilbert.py:223
Method
test_for_question_answering
(self)
tests/test_modeling_tf_electra.py:209
Method
test_for_question_answering
(self)
tests/test_modeling_albert.py:300
Method
test_for_question_answering
(self)
tests/test_modeling_tf_mobilebert.py:304
Method
test_for_question_answering
(self)
tests/test_modeling_bert.py:516
Method
test_for_question_answering
(self)
tests/test_modeling_mobilebert.py:444
Method
test_for_question_answering
(self)
tests/test_modeling_tf_bert.py:300
Method
test_for_question_answering
(self)
tests/test_modeling_distilbert.py:263
Method
test_for_question_answering
(self)
tests/test_modeling_tf_roberta.py:226
Method
test_for_question_answering
(self)
tests/test_modeling_electra.py:360
Method
test_for_sequence_classification
(self)
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py:241
Method
test_for_sequence_classification
(self)
templates/adding_a_new_model/tests/test_modeling_xxx.py:262
Method
test_for_sequence_classification
(self)
tests/test_modeling_tf_albert.py:251
Method
test_for_sequence_classification
(self)
tests/test_modeling_tf_distilbert.py:227
Method
test_for_sequence_classification
(self)
tests/test_modeling_albert.py:304
Method
test_for_sequence_classification
(self)
tests/test_modeling_tf_mobilebert.py:308
Method
test_for_sequence_classification
(self)
tests/test_modeling_bert.py:520
Method
test_for_sequence_classification
(self)
tests/test_modeling_mobilebert.py:448
Method
test_for_sequence_classification
(self)
tests/test_modeling_tf_bert.py:304
Method
test_for_sequence_classification
(self)
tests/test_modeling_distilbert.py:267
Method
test_for_sequence_classification
(self)
tests/test_modeling_longformer.py:309
Method
test_for_sequence_classification
(self)
tests/test_modeling_electra.py:356
Method
test_for_token_classification
(self)
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py:245
Method
test_for_token_classification
(self)
templates/adding_a_new_model/tests/test_modeling_xxx.py:266
Method
test_for_token_classification
(self)
tests/test_modeling_roberta.py:249
Method
test_for_token_classification
(self)
tests/test_modeling_tf_distilbert.py:235
Method
test_for_token_classification
(self)
tests/test_modeling_tf_electra.py:213
Method
test_for_token_classification
(self)
tests/test_modeling_tf_mobilebert.py:312
Method
test_for_token_classification
(self)
tests/test_modeling_bert.py:524
Method
test_for_token_classification
(self)
tests/test_modeling_mobilebert.py:452
Method
test_for_token_classification
(self)
tests/test_modeling_tf_bert.py:308
Method
test_for_token_classification
(self)
tests/test_modeling_distilbert.py:271
Method
test_for_token_classification
(self)
tests/test_modeling_tf_xlm.py:306
Method
test_for_token_classification
(self)
tests/test_modeling_longformer.py:313
Method
test_for_token_classification
(self)
tests/test_modeling_tf_roberta.py:222
Method
test_for_token_classification
(self)
tests/test_modeling_electra.py:348
Method
test_forward
(self)
tests/test_modeling_marian.py:114
Method
test_from_identifier_from_model_type
(self)
tests/test_modeling_auto.py:188
Method
test_from_identifier_from_model_type
(self)
tests/test_modeling_tf_auto.py:118
Method
test_from_pretrained_identifier
(self)
tests/test_modeling_auto.py:182
Method
test_from_pretrained_identifier
(self)
tests/test_modeling_tf_auto.py:112
Method
test_from_pretrained_use_fast_toggle
(self)
tests/test_tokenization_auto.py:97
Method
test_full_tokenizer
(self)
templates/adding_a_new_model/tests/test_tokenization_xxx.py:59
Method
test_full_tokenizer
(self)
tests/test_tokenization_ctrl.py:54
Method
test_full_tokenizer
(self)
tests/test_tokenization_xlnet.py:40
Method
test_full_tokenizer
(self)
tests/test_tokenization_transfo_xl.py:64
Method
test_full_tokenizer
(self)
tests/test_tokenization_albert.py:44
Method
test_full_tokenizer
(self)
tests/test_tokenization_gpt2.py:82
Method
test_full_tokenizer
(self)
tests/test_tokenization_bert.py:72
Method
test_full_tokenizer
(self)
tests/test_tokenization_roberta.py:80
Method
test_full_tokenizer
(self)
tests/test_tokenization_xlm_roberta.py:41
Method
test_full_tokenizer
Adapted from Sennrich et al. 2015 and https://github.com/rsennrich/subword-nmt
tests/test_tokenization_xlm.py:73
Method
test_full_tokenizer
(self)
tests/test_tokenization_bert_japanese.py:83
Method
test_full_tokenizer
(self)
tests/test_tokenization_bert_japanese.py:189
Method
test_full_tokenizer
(self)
tests/test_tokenization_openai.py:70
Method
test_full_tokenizer
(self)
tests/test_tokenization_t5.py:40
Method
test_full_tokenizer_lower
(self)
tests/test_tokenization_transfo_xl.py:72
Method
test_full_tokenizer_no_lower
(self)
tests/test_tokenization_transfo_xl.py:79
Method
test_gelu_versions
(self)
tests/test_activations.py:15
Method
test_generate_beam_search
(self)
tests/test_modeling_bart.py:437
Method
test_generate_fp16
(self)
tests/test_modeling_bart.py:489
Method
test_generation
(self)
examples/test_examples.py:129
Method
test_get_activation
(self)
tests/test_activations.py:21
Method
test_get_vocab
(self)
tests/test_tokenization_common.py:1021
Method
test_gpt2_double_head
(self)
tests/test_modeling_tf_gpt2.py:305
Method
test_gpt2_double_lm_head_model
(self)
tests/test_modeling_gpt2.py:338
Method
test_gpt2_lm_head
(self)
tests/test_modeling_tf_gpt2.py:301
Method
test_gpt2_lm_head_model
(self)
tests/test_modeling_gpt2.py:334
Method
test_gpt2_model
(self)
tests/test_modeling_gpt2.py:322
Method
test_gpt2_model
(self)
tests/test_modeling_tf_gpt2.py:289
Method
test_gpt2_model_att_mask_past
(self)
tests/test_modeling_gpt2.py:330
Method
test_gpt2_model_att_mask_past
(self)
tests/test_modeling_tf_gpt2.py:297
Method
test_gpt2_model_past
(self)
tests/test_modeling_gpt2.py:326
Method
test_gpt2_model_past
(self)
tests/test_modeling_tf_gpt2.py:293
Method
test_head_pruning
(self)
tests/test_modeling_common.py:341
Method
test_head_pruning_integration
(self)
tests/test_modeling_common.py:434
Method
test_head_pruning_save_load_from_config_init
(self)
tests/test_modeling_common.py:403
Method
test_head_pruning_save_load_from_pretrained
(self)
tests/test_modeling_common.py:370
Method
test_headmasking
(self)
tests/test_modeling_common.py:287
Method
test_hidden_states_output
(self)
tests/test_modeling_common.py:491
Method
test_hidden_states_output
(self)
tests/test_modeling_tf_common.py:408
Method
test_infer_dynamic_axis_pytorch
Validate the dynamic axis generated for each parameters are correct
tests/test_onnx.py:68
Method
test_infer_dynamic_axis_tf
Validate the dynamic axis generated for each parameters are correct
tests/test_onnx.py:79
Method
test_inference_classification_head
(self)
tests/test_modeling_roberta.py:347
Method
test_inference_classification_head
(self)
tests/test_modeling_tf_roberta.py:270
Method
test_inference_encoder_decoder_with_configs
(self)
tests/test_benchmark.py:138
Method
test_inference_encoder_decoder_with_configs
(self)
tests/test_benchmark_tf.py:104
Method
test_inference_fp16
(self)
tests/test_benchmark.py:74
Method
test_inference_masked_lm
(self)
tests/test_modeling_roberta.py:311
Method
test_inference_masked_lm
(self)
tests/test_modeling_longformer.py:344
Method
test_inference_masked_lm
(self)
tests/test_modeling_tf_roberta.py:244
Method
test_inference_no_configs
(self)
tests/test_benchmark.py:26
Method
test_inference_no_configs_eager
(self)
tests/test_benchmark_tf.py:24
Method
test_inference_no_configs_graph
(self)
tests/test_benchmark_tf.py:56
Method
test_inference_no_configs_only_pretrain
(self)
tests/test_benchmark.py:41
Method
test_inference_no_configs_only_pretrain
(self)
tests/test_benchmark_tf.py:40
Method
test_inference_no_configs_xla
(self)
tests/test_benchmark_tf.py:121
Method
test_inference_no_head
(self)
tests/test_modeling_roberta.py:330
Method
test_inference_no_head
(self)
tests/test_modeling_bart.py:559
← previous
next →
3,601–3,700 of 4,119, ranked by callers