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_transfo_xl_lm_head
(self)
tests/test_modeling_transfo_xl.py:207
Method
test_transfo_xl_lm_head
(self)
tests/test_modeling_tf_transfo_xl.py:187
Method
test_transfo_xl_model
(self)
tests/test_modeling_transfo_xl.py:201
Method
test_transfo_xl_model
(self)
tests/test_modeling_tf_transfo_xl.py:182
Method
test_translation_en_to_de
(self)
tests/test_modeling_t5.py:409
Method
test_translation_en_to_de
(self)
tests/test_modeling_tf_t5.py:310
Method
test_translation_en_to_fr
(self)
tests/test_modeling_t5.py:439
Method
test_translation_en_to_fr
(self)
tests/test_modeling_tf_t5.py:339
Method
test_translation_en_to_ro
(self)
tests/test_modeling_t5.py:467
Method
test_translation_en_to_ro
(self)
tests/test_modeling_tf_t5.py:366
Method
test_undoing_renaming
(self)
tests/test_modeling_marian.py:254
Method
test_unk_support
(self)
tests/test_modeling_marian.py:133
Method
test_warmup_constant_scheduler
(self)
tests/test_optimization.py:106
Method
test_warmup_cosine_hard_restart_scheduler
(self)
tests/test_optimization.py:139
Method
test_warmup_cosine_scheduler
(self)
tests/test_optimization.py:128
Method
test_warmup_linear_scheduler
(self)
tests/test_optimization.py:117
Method
test_whoami
(self)
tests/test_hf_api.py:69
Method
test_with_default
(self)
tests/test_hf_argparser.py:83
Method
test_with_default_bool
(self)
tests/test_hf_argparser.py:91
Method
test_with_enum
(self)
tests/test_hf_argparser.py:105
Method
test_with_list
(self)
tests/test_hf_argparser.py:118
Method
test_with_lm_head
(self)
tests/test_modeling_t5.py:327
Method
test_with_lm_head
(self)
tests/test_modeling_tf_t5.py:237
Method
test_with_optional
(self)
tests/test_hf_argparser.py:138
Method
test_wordpiece_tokenizer
(self)
tests/test_tokenization_bert.py:147
Method
test_wordpiece_tokenizer
(self)
tests/test_tokenization_bert_japanese.py:128
Method
test_xlm_for_token_classification
(self)
tests/test_modeling_xlm.py:385
Method
test_xlm_lm_head
(self)
tests/test_modeling_tf_xlm.py:294
Method
test_xlm_lm_head
(self)
tests/test_modeling_xlm.py:369
Method
test_xlm_model
(self)
tests/test_modeling_tf_xlm.py:290
Method
test_xlm_model
(self)
tests/test_modeling_xlm.py:365
Method
test_xlm_qa
(self)
tests/test_modeling_tf_xlm.py:298
Method
test_xlm_qa
(self)
tests/test_modeling_xlm.py:377
Method
test_xlm_roberta_base
(self)
tests/test_modeling_xlm_roberta.py:31
Method
test_xlm_roberta_large
(self)
tests/test_modeling_xlm_roberta.py:50
Method
test_xlm_sequence_classif
(self)
tests/test_modeling_tf_xlm.py:302
Method
test_xlm_sequence_classif
(self)
tests/test_modeling_xlm.py:381
Method
test_xlm_simple_qa
(self)
tests/test_modeling_xlm.py:373
Method
test_xlnet_base_model
(self)
tests/test_modeling_tf_xlnet.py:397
Method
test_xlnet_base_model
(self)
tests/test_modeling_xlnet.py:478
Method
test_xlnet_base_model_with_att_output
(self)
tests/test_modeling_xlnet.py:483
Method
test_xlnet_for_multiple_choice
(self)
tests/test_modeling_tf_xlnet.py:421
Method
test_xlnet_lm_head
(self)
tests/test_modeling_tf_xlnet.py:402
Method
test_xlnet_lm_head
(self)
tests/test_modeling_xlnet.py:488
Method
test_xlnet_qa
(self)
tests/test_modeling_tf_xlnet.py:416
Method
test_xlnet_qa
(self)
tests/test_modeling_xlnet.py:503
Method
test_xlnet_sequence_classif
(self)
tests/test_modeling_tf_xlnet.py:407
Method
test_xlnet_sequence_classif
(self)
tests/test_modeling_xlnet.py:493
Method
test_xlnet_token_classif
(self)
tests/test_modeling_xlnet.py:498
Method
test_xlnet_token_classification
(self)
tests/test_modeling_tf_xlnet.py:412
Method
test_xsum_config_generation_params
(self)
tests/test_modeling_bart.py:642
Method
test_xsum_summarization_same_as_fairseq
(self)
tests/test_modeling_bart.py:616
Method
test_xxx_model
(self)
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py:229
Method
test_xxx_model
(self)
templates/adding_a_new_model/tests/test_modeling_xxx.py:250
Method
tf_array_equals
(t1, t2)
tests/test_tokenization_utils.py:97
Function
tf_required
(func)
src/transformers/file_utils.py:799
Method
tgt_lens
(self)
examples/seq2seq/utils.py:142
Method
tie_weights
(self)
src/transformers/modeling_reformer.py:1715
Method
tie_weights
(self)
src/transformers/modeling_encoder_decoder.py:74
Method
tie_weights
Tie the weights between the input embeddings and the output embeddings. If the `torchscript` flag is set in the configuration, can't
src/transformers/modeling_mobilebert.py:875
Method
tie_weights
Tie the weights between the input embeddings and the output embeddings. If the `torchscript` flag is set in the configuration, can't
src/transformers/modeling_mobilebert.py:996
Method
to_json_string
Serializes this instance to a JSON string.
src/transformers/training_args.py:203
Method
to_json_string
Serializes this instance to a JSON string.
src/transformers/benchmark/benchmark_args_utils.py:109
Method
to_json_string
Serializes this instance to a JSON string.
src/transformers/data/processors/utils.py:50
Method
to_json_string
Serializes this instance to a JSON string.
src/transformers/data/processors/utils.py:77
Method
tokenize
(self, text: str, pair: Optional[str] = None, add_special_tokens: bool = False)
src/transformers/tokenization_utils_fast.py:240
Function
torch_distributed_zero_first
Decorator to make all processes in distributed training wait for each local_master to do something.
src/transformers/trainer.py:72
Function
torch_required
(func)
src/transformers/file_utils.py:787
Function
traceit
Tracing method executed before running each line in a module or sub-module Record memory allocated in a list with debugging information
src/transformers/benchmark/benchmark_utils.py:373
Method
train_batch_size
(self)
src/transformers/training_args.py:143
Function
train_command_factory
Factory function used to instantiate serving server from provided command line arguments. :return: ServeCommand
src/transformers/commands/train.py:18
Method
train_dataloader
(self)
examples/lightning_base.py:135
Method
train_dataloader
(self)
examples/seq2seq/finetune.py:210
Function
train_qa_retriever
(qar_model, qar_tokenizer, qar_train_dset, qar_valid_dset, qar_args)
examples/longform-qa/eli5_utils.py:301
Function
train_qa_retriever_joint_epoch
(model, dataset_list, tokenizer, optimizer, scheduler, args, e=0)
examples/longform-qa/eli5_utils.py:244
Function
train_qa_s2s
(qa_s2s_model, qa_s2s_tokenizer, s2s_train_dset, s2s_valid_dset, s2s_args)
examples/longform-qa/eli5_utils.py:465
Method
training_step
(self, batch, batch_idx)
examples/seq2seq/finetune.py:130
Method
training_step
Compute loss and log.
examples/token-classification/run_pl_ner.py:35
Method
training_step
(self, batch, batch_idx)
examples/text-classification/run_pl_glue.py:35
Method
transform
(self, X)
src/transformers/pipelines.py:312
Method
translate
Generates summaries from one batch of data.
examples/seq2seq/bertabs/modeling_bertabs.py:772
Method
unk_token
Unknown token (string). Log an error if used while not having been set.
src/transformers/tokenization_utils_base.py:734
Method
unk_token_id
Id of the unknown token in the vocabulary. Log an error if used while not having been set.
src/transformers/tokenization_utils_base.py:828
Method
unshape
group heads
src/transformers/modeling_distilbert.py:163
Method
unshape
compute context
src/transformers/modeling_xlm.py:146
Method
unshape
group heads
src/transformers/modeling_tf_distilbert.py:247
Method
unshape
compute context
src/transformers/modeling_tf_xlm.py:158
Method
unshape
compute context
src/transformers/modeling_t5.py:334
Method
unshape
compute context
src/transformers/modeling_tf_t5.py:238
Method
unshape
compute context
examples/seq2seq/bertabs/modeling_bertabs.py:453
Method
val_dataloader
(self)
examples/lightning_base.py:150
Method
val_dataloader
(self)
examples/seq2seq/finetune.py:225
Method
validation_epoch_end
(self, outputs)
examples/token-classification/run_pl_ner.py:136
Method
validation_epoch_end
(self, outputs: list)
examples/text-classification/run_pl_glue.py:130
Method
validation_step
Compute validation
examples/token-classification/run_pl_ner.py:94
Method
validation_step
(self, batch, batch_idx)
examples/text-classification/run_pl_glue.py:98
Method
vocab_size
(self)
templates/adding_a_new_model/tokenization_xxx.py:129
Method
vocab_size
(self)
src/transformers/tokenization_xlm_roberta.py:261
Method
vocab_size
(self)
src/transformers/tokenization_openai.py:125
Method
vocab_size
(self)
src/transformers/tokenization_albert.py:158
← previous
next →
4,001–4,100 of 4,119, ranked by callers