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_model_from_pretrained
(self)
tests/test_modeling_tf_electra.py:218
Method
test_model_from_pretrained
(self)
tests/test_modeling_albert.py:309
Method
test_model_from_pretrained
(self)
tests/test_modeling_gpt2.py:343
Method
test_model_from_pretrained
(self)
tests/test_modeling_tf_mobilebert.py:317
Method
test_model_from_pretrained
(self)
tests/test_modeling_bert.py:529
Method
test_model_from_pretrained
(self)
tests/test_modeling_tf_bert.py:313
Method
test_model_from_pretrained
(self)
tests/test_modeling_tf_ctrl.py:180
Method
test_model_from_pretrained
(self)
tests/test_modeling_tf_gpt2.py:310
Method
test_model_from_pretrained
(self)
tests/test_modeling_tf_xlnet.py:426
Method
test_model_from_pretrained
(self)
tests/test_modeling_openai.py:200
Method
test_model_from_pretrained
(self)
tests/test_modeling_t5.py:349
Method
test_model_from_pretrained
(self)
tests/test_modeling_tf_auto.py:45
Method
test_model_from_pretrained
(self)
tests/test_modeling_ctrl.py:190
Method
test_model_from_pretrained
(self)
tests/test_modeling_tf_xlm.py:311
Method
test_model_from_pretrained
(self)
tests/test_modeling_tf_t5.py:250
Method
test_model_from_pretrained
(self)
tests/test_modeling_tf_roberta.py:235
Method
test_model_from_pretrained
(self)
tests/test_modeling_tf_openai_gpt.py:215
Method
test_model_from_pretrained
(self)
tests/test_modeling_xlm.py:390
Method
test_model_from_pretrained
(self)
tests/test_modeling_xlnet.py:509
Method
test_model_from_pretrained
(self)
tests/test_modeling_reformer.py:519
Method
test_model_from_pretrained
(self)
tests/test_modeling_flaubert.py:356
Method
test_model_from_pretrained
(self)
tests/test_modeling_electra.py:369
Method
test_model_list
(self)
tests/test_hf_api.py:119
Method
test_model_names
(self)
tests/test_modeling_marian.py:46
Method
test_modeling_examples
(self)
tests/test_doc_samples.py:86
Method
test_move_added_token
(self)
tests/test_tokenization_transfo_xl.py:86
Method
test_multi_kwargs
(self)
tests/test_pipelines.py:75
Method
test_multigpu
(self)
examples/seq2seq/test_seq2seq_examples.py:111
Method
test_multigpu_data_parallel_forward
(self)
tests/test_modeling_common.py:793
Method
test_multigpu_data_parallel_forward
(self)
tests/test_modeling_transfo_xl.py:214
Method
test_multigpu_data_parallel_forward
(self)
tests/test_modeling_reformer.py:466
Method
test_ner_grouped
(self)
tests/test_pipelines.py:168
Method
test_np_encode_plus_sent_to_model
(self)
tests/test_tokenization_common.py:1430
Method
test_number_of_added_tokens
(self)
tests/test_tokenization_common.py:421
Method
test_odd_embed_dim
(self)
tests/test_modeling_bart.py:720
Method
test_openai_gpt_double_head
(self)
tests/test_modeling_tf_openai_gpt.py:210
Method
test_openai_gpt_double_lm_head_model
(self)
tests/test_modeling_openai.py:195
Method
test_openai_gpt_lm_head
(self)
tests/test_modeling_tf_openai_gpt.py:206
Method
test_openai_gpt_lm_head_model
(self)
tests/test_modeling_openai.py:191
Method
test_openai_gpt_model
(self)
tests/test_modeling_openai.py:187
Method
test_openai_gpt_model
(self)
tests/test_modeling_tf_openai_gpt.py:202
Method
test_output_embeds_base_model
(self)
tests/test_modeling_tf_flaubert.py:32
Method
test_output_embeds_base_model
(self)
tests/test_modeling_camembert.py:31
Method
test_output_embeds_base_model
(self)
tests/test_modeling_tf_camembert.py:32
Method
test_output_embeds_base_model
(self)
tests/test_modeling_tf_xlm_roberta.py:32
Method
test_pad_not_split
(self)
tests/test_modeling_marian.py:139
Method
test_padding_to_max_length
We keep this test for backward compatibility but it should be remove when `pad_to_max_length` will e deprecated
tests/test_tokenization_common.py:851
Method
test_padding_to_multiple_of
(self)
tests/test_tokenization_common.py:886
Method
test_parents_and_children_in_mappings
(self)
tests/test_modeling_auto.py:194
Method
test_parents_and_children_in_mappings
(self)
tests/test_tokenization_auto.py:77
Method
test_pattern_matching_fallback
In cases where config.json doesn't include a model_type, perform a few safety checks on the config mapping's order.
tests/test_configuration_auto.py:46
Method
test_pickle_tokenizer
Google pickle __getstate__ __setstate__ if you are struggling with this.
tests/test_tokenization_common.py:215
Method
test_pipeline
(self)
tests/test_modeling_marian.py:235
Method
test_positional_emb_cache_logic
(self)
tests/test_modeling_bart.py:711
Method
test_positional_emb_weights_against_marian
(self)
tests/test_modeling_bart.py:727
Method
test_prepare_bart_decoder_inputs
(self)
tests/test_modeling_bart.py:503
Method
test_presign
(self)
tests/test_hf_api.py:91
Method
test_presign_and_upload
(self)
tests/test_hf_api.py:97
Method
test_presign_invalid
(self)
tests/test_hf_api.py:82
Method
test_presign_invalid_org
(self)
tests/test_hf_api.py:74
Method
test_presign_valid_org
(self)
tests/test_hf_api.py:78
Method
test_pretokenized_inputs
(self)
tests/test_tokenization_common.py:1190
Method
test_pretokenized_inputs
(self, *args, **kwargs)
tests/test_tokenization_gpt2.py:123
Method
test_pretokenized_inputs
(self)
tests/test_tokenization_bert_japanese.py:74
Method
test_pretokenized_inputs
(self)
tests/test_tokenization_bert_japanese.py:180
Method
test_pretokenized_tokenizers
(self)
tests/test_tokenization_fast.py:876
Method
test_pretrained_generate_crime_and_punish
(self)
tests/test_modeling_reformer.py:965
Method
test_pretrained_model_lists
(self)
tests/test_tokenization_common.py:397
Method
test_pretrained_tokenizers
(self)
tests/test_tokenization_utils.py:62
Method
test_process_empty_story
An empty story returns an empty collection of lines.
examples/seq2seq/bertabs/test_utils_summarization.py:54
Method
test_process_story_no_highlights
Processing a story with no highlights returns an empty list for the summary.
examples/seq2seq/bertabs/test_utils_summarization.py:45
Method
test_process_story_with_missing_period
(self)
examples/seq2seq/bertabs/test_utils_summarization.py:62
Method
test_pt_defaults
(self)
tests/test_pipelines.py:399
Method
test_pt_tf_model_equivalence
(self)
tests/test_modeling_tf_common.py:187
Method
test_question_answering_forward
(self)
tests/test_modeling_bart.py:394
Method
test_question_answering_model_from_pretrained
(self)
tests/test_modeling_auto.py:159
Method
test_question_answering_model_from_pretrained
(self)
tests/test_modeling_tf_auto.py:101
Method
test_real_bert_model_from_pretrained
(self)
tests/test_modeling_encoder_decoder.py:332
Method
test_real_bert_model_from_pretrained_has_cross_attention
(self)
tests/test_modeling_encoder_decoder.py:337
Method
test_real_bert_model_save_load_from_pretrained
(self)
tests/test_modeling_encoder_decoder.py:342
Method
test_reformer_chunking_backward_equality
(self)
tests/test_modeling_reformer.py:442
Method
test_reformer_chunking_forward_equality
(self)
tests/test_modeling_reformer.py:438
Method
test_reformer_layer_training_dropout
(self)
tests/test_modeling_reformer.py:433
Method
test_reformer_lm_model_backward
(self)
tests/test_modeling_reformer.py:420
Method
test_reformer_model
(self)
tests/test_modeling_reformer.py:416
Method
test_reformer_model_attn_masking
(self)
tests/test_modeling_reformer.py:424
Method
test_reformer_model_fp16_forward
(self)
tests/test_modeling_reformer.py:456
Method
test_reformer_model_fp16_generate
(self)
tests/test_modeling_reformer.py:461
Method
test_reformer_no_chunking
(self)
tests/test_modeling_reformer.py:446
Method
test_reformer_with_lm
(self)
tests/test_modeling_reformer.py:429
Method
test_remaining_examples
(self)
tests/test_doc_samples.py:105
Method
test_renaming_multilingual
(self)
tests/test_modeling_marian.py:244
Method
test_resize_token_embeddings
(self)
tests/test_modeling_tf_common.py:497
Method
test_resize_tokens_embeddings
(self)
tests/test_modeling_common.py:525
Method
test_resize_tokens_embeddings
(self)
tests/test_modeling_transfo_xl.py:224
Method
test_resize_tokens_embeddings_more
(self)
tests/test_modeling_bart.py:517
Method
test_right_and_left_padding
(self)
tests/test_tokenization_common.py:789
Method
test_roberta_model
(self)
tests/test_modeling_roberta.py:241
Method
test_roberta_model
(self)
tests/test_modeling_tf_roberta.py:214
Function
test_run_eval_bart
(model)
examples/seq2seq/test_seq2seq_examples.py:195
← previous
next →
3,801–3,900 of 4,119, ranked by callers