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_run_glue
(self)
examples/test_examples.py:52
Method
test_run_glue
(self)
examples/bert-loses-patience/test_run_glue_with_pabee.py:23
Method
test_run_language_modeling
(self)
examples/test_examples.py:79
Method
test_run_ner
(self)
examples/token-classification/test_ner_examples.py:15
Method
test_run_squad
(self)
examples/test_examples.py:103
Method
test_rust_and_python_full_tokenizers
(self)
tests/test_tokenization_gpt2.py:93
Method
test_rust_and_python_full_tokenizers
(self)
tests/test_tokenization_bert.py:79
Method
test_save_and_load_from_encoder_decoder_pretrained
(self)
tests/test_modeling_encoder_decoder.py:319
Method
test_save_and_load_from_pretrained
(self)
tests/test_modeling_encoder_decoder.py:315
Method
test_save_and_load_tokenizer
(self)
tests/test_tokenization_common.py:157
Method
test_save_csv_files
(self)
tests/test_benchmark.py:186
Method
test_save_csv_files
(self)
tests/test_benchmark_tf.py:137
Method
test_save_load
(self)
tests/test_modeling_common.py:76
Method
test_save_load
(self)
tests/test_modeling_tf_common.py:111
Method
test_save_load_strict
(self)
tests/test_modeling_bart.py:182
Method
test_separate_tokenizers
(self)
tests/test_tokenization_common.py:1011
Method
test_sequence_builders
(self)
tests/test_tokenization_xlnet.py:167
Method
test_sequence_builders
(self)
tests/test_tokenization_albert.py:65
Method
test_sequence_builders
(self)
tests/test_tokenization_bert.py:189
Method
test_sequence_builders
(self)
tests/test_tokenization_distilbert.py:31
Method
test_sequence_builders
(self)
tests/test_tokenization_roberta.py:101
Method
test_sequence_builders
(self)
tests/test_tokenization_xlm.py:87
Method
test_sequence_builders
(self)
tests/test_tokenization_bert_japanese.py:144
Method
test_sequence_builders
(self)
tests/test_tokenization_bert_japanese.py:214
Method
test_sequence_classification_forward
(self)
tests/test_modeling_bart.py:382
Method
test_sequence_classification_model_from_pretrained
(self)
tests/test_modeling_auto.py:145
Method
test_sequence_classification_model_from_pretrained
(self)
tests/test_modeling_tf_auto.py:89
Method
test_shift_right
(self)
tests/test_modeling_t5.py:319
Method
test_shift_tokens_right
(self)
tests/test_modeling_bart.py:468
Method
test_space_encoding
(self)
tests/test_tokenization_roberta.py:120
Method
test_special_tokens_mask
(self)
tests/test_tokenization_common.py:747
Method
test_special_tokens_mask_input_pairs
(self)
tests/test_tokenization_common.py:764
Method
test_staging_model_list
(self)
tests/test_hf_api.py:115
Method
test_step
(self, batch, batch_nb)
examples/lightning_base.py:129
Method
test_step
(self, batch, batch_idx)
examples/seq2seq/finetune.py:174
Method
test_summarization
(self)
tests/test_modeling_t5.py:358
Method
test_summarization
(self)
tests/test_modeling_tf_t5.py:259
Method
test_swap_special_token
(self)
tests/test_tokenization_common.py:718
Method
test_t5_decoder_model_past
(self)
tests/test_modeling_t5.py:331
Method
test_t5_decoder_model_past
(self)
tests/test_modeling_tf_t5.py:241
Method
test_t5_decoder_model_past_with_attn_mask
(self)
tests/test_modeling_t5.py:335
Method
test_t5_decoder_model_past_with_attn_mask
(self)
tests/test_modeling_tf_t5.py:245
Method
test_t5_generate_with_past_key_value_states
(self)
tests/test_modeling_t5.py:339
Method
test_t5_model
(self)
tests/test_modeling_t5.py:323
Method
test_t5_model
(self)
tests/test_modeling_tf_t5.py:233
Method
test_t5_model_fp16_forward
(self)
tests/test_modeling_t5.py:344
Method
test_tensor_type_from_str
(self)
tests/test_tokenization_utils.py:65
Method
test_tf_defaults
(self)
tests/test_pipelines.py:391
Method
test_tf_encode_plus_sent_to_model
(self)
tests/test_tokenization_common.py:1395
Method
test_tf_feature_extraction
(self)
tests/test_pipelines.py:209
Method
test_tf_fill_mask
(self)
tests/test_pipelines.py:226
Method
test_tf_fill_mask_results
(self)
tests/test_pipelines.py:256
Method
test_tf_ner
(self)
tests/test_pipelines.py:175
Method
test_tf_ner_grouped
(self)
tests/test_pipelines.py:182
Method
test_tf_question_answering
(self)
tests/test_pipelines.py:379
Method
test_tf_sentiment_analysis
(self)
tests/test_pipelines.py:196
Method
test_tf_summarization
(self)
tests/test_pipelines.py:293
Method
test_tf_text_generation
(self)
tests/test_pipelines.py:328
Method
test_tf_translation
(self)
tests/test_pipelines.py:314
Method
test_tie_model_weights
(self)
tests/test_modeling_common.py:597
Method
test_tiny_model
(self)
tests/test_modeling_bart.py:196
Method
test_token_classification_model_from_pretrained
(self)
tests/test_modeling_auto.py:171
Method
test_token_workflow
Test the whole token save/get/delete workflow, with the desired behavior with respect to non-existent tokens.
tests/test_hf_api.py:127
Method
test_tokenization
(self)
tests/test_modeling_bart.py:478
Method
test_tokenization_base_easy_symbols
(self)
tests/test_tokenization_xlm_roberta.py:122
Method
test_tokenization_base_hard_symbols
(self)
tests/test_tokenization_xlm_roberta.py:132
Method
test_tokenization_examples
(self)
tests/test_doc_samples.py:95
Method
test_tokenizer_equivalence_en_de
(self)
tests/test_tokenization_marian.py:63
Method
test_tokenizer_from_model_type
(self)
tests/test_tokenization_auto.py:55
Method
test_tokenizer_from_pretrained
(self)
tests/test_tokenization_auto.py:37
Method
test_tokenizer_from_pretrained_identifier
(self)
tests/test_tokenization_auto.py:50
Method
test_tokenizer_handles_empty
(self)
tests/test_modeling_marian.py:229
Method
test_tokenizer_identifier_non_existent
(self)
tests/test_tokenization_auto.py:72
Method
test_tokenizer_identifier_with_correct_config
(self)
tests/test_tokenization_auto.py:60
Method
test_tokenizer_lower
(self)
tests/test_tokenization_xlnet.py:106
Method
test_tokenizer_no_lower
(self)
tests/test_tokenization_xlnet.py:137
Method
test_tokenizers_common_properties
(self)
tests/test_tokenization_common.py:124
Method
test_top_k_top_p_filtering
(self)
tests/test_modeling_common.py:879
Method
test_top_k_top_p_filtering
(self)
tests/test_modeling_tf_common.py:693
Method
test_torch_encode_plus_sent_to_model
(self)
tests/test_tokenization_common.py:1345
Method
test_torch_feature_extraction
(self)
tests/test_pipelines.py:203
Method
test_torch_fill_mask
(self)
tests/test_pipelines.py:215
Method
test_torch_fill_mask_results
(self)
tests/test_pipelines.py:238
Method
test_torch_ner
(self)
tests/test_pipelines.py:161
Method
test_torch_question_answering
(self)
tests/test_pipelines.py:373
Method
test_torch_sentiment_analysis
(self)
tests/test_pipelines.py:189
Method
test_torch_summarization
(self)
tests/test_pipelines.py:273
Method
test_torch_text_generation
(self)
tests/test_pipelines.py:322
Method
test_torch_translation
(self)
tests/test_pipelines.py:303
Method
test_torchscript
(self)
tests/test_modeling_common.py:222
Method
test_torchscript_output_attentions
(self)
tests/test_modeling_common.py:227
Method
test_torchscript_output_hidden_state
(self)
tests/test_modeling_common.py:232
Method
test_trace_memory
(self)
tests/test_benchmark.py:211
Method
test_trace_memory
(self)
tests/test_benchmark_tf.py:157
Method
test_train_encoder_decoder_with_configs
(self)
tests/test_benchmark.py:170
Method
test_train_no_configs
(self)
tests/test_benchmark.py:90
Method
test_train_no_configs_fp16
(self)
tests/test_benchmark.py:106
Method
test_train_with_configs
(self)
tests/test_benchmark.py:154
Method
test_trainer_eval_lm
(self)
tests/test_trainer.py:136
Method
test_trainer_eval_mrpc
(self)
tests/test_trainer.py:122
← previous
next →
3,901–4,000 of 4,119, ranked by callers