MCPcopy Create free account

hub / github.com/huggingface/transformers / functions

Functions4,119 in github.com/huggingface/transformers

Methodtest_transfo_xl_lm_head
(self)
tests/test_modeling_transfo_xl.py:207
Methodtest_transfo_xl_lm_head
(self)
tests/test_modeling_tf_transfo_xl.py:187
Methodtest_transfo_xl_model
(self)
tests/test_modeling_transfo_xl.py:201
Methodtest_transfo_xl_model
(self)
tests/test_modeling_tf_transfo_xl.py:182
Methodtest_translation_en_to_de
(self)
tests/test_modeling_t5.py:409
Methodtest_translation_en_to_de
(self)
tests/test_modeling_tf_t5.py:310
Methodtest_translation_en_to_fr
(self)
tests/test_modeling_t5.py:439
Methodtest_translation_en_to_fr
(self)
tests/test_modeling_tf_t5.py:339
Methodtest_translation_en_to_ro
(self)
tests/test_modeling_t5.py:467
Methodtest_translation_en_to_ro
(self)
tests/test_modeling_tf_t5.py:366
Methodtest_undoing_renaming
(self)
tests/test_modeling_marian.py:254
Methodtest_unk_support
(self)
tests/test_modeling_marian.py:133
Methodtest_warmup_constant_scheduler
(self)
tests/test_optimization.py:106
Methodtest_warmup_cosine_hard_restart_scheduler
(self)
tests/test_optimization.py:139
Methodtest_warmup_cosine_scheduler
(self)
tests/test_optimization.py:128
Methodtest_warmup_linear_scheduler
(self)
tests/test_optimization.py:117
Methodtest_whoami
(self)
tests/test_hf_api.py:69
Methodtest_with_default
(self)
tests/test_hf_argparser.py:83
Methodtest_with_default_bool
(self)
tests/test_hf_argparser.py:91
Methodtest_with_enum
(self)
tests/test_hf_argparser.py:105
Methodtest_with_list
(self)
tests/test_hf_argparser.py:118
Methodtest_with_lm_head
(self)
tests/test_modeling_t5.py:327
Methodtest_with_lm_head
(self)
tests/test_modeling_tf_t5.py:237
Methodtest_with_optional
(self)
tests/test_hf_argparser.py:138
Methodtest_wordpiece_tokenizer
(self)
tests/test_tokenization_bert.py:147
Methodtest_wordpiece_tokenizer
(self)
tests/test_tokenization_bert_japanese.py:128
Methodtest_xlm_for_token_classification
(self)
tests/test_modeling_xlm.py:385
Methodtest_xlm_lm_head
(self)
tests/test_modeling_tf_xlm.py:294
Methodtest_xlm_lm_head
(self)
tests/test_modeling_xlm.py:369
Methodtest_xlm_model
(self)
tests/test_modeling_tf_xlm.py:290
Methodtest_xlm_model
(self)
tests/test_modeling_xlm.py:365
Methodtest_xlm_qa
(self)
tests/test_modeling_tf_xlm.py:298
Methodtest_xlm_qa
(self)
tests/test_modeling_xlm.py:377
Methodtest_xlm_roberta_base
(self)
tests/test_modeling_xlm_roberta.py:31
Methodtest_xlm_roberta_large
(self)
tests/test_modeling_xlm_roberta.py:50
Methodtest_xlm_sequence_classif
(self)
tests/test_modeling_tf_xlm.py:302
Methodtest_xlm_sequence_classif
(self)
tests/test_modeling_xlm.py:381
Methodtest_xlm_simple_qa
(self)
tests/test_modeling_xlm.py:373
Methodtest_xlnet_base_model
(self)
tests/test_modeling_tf_xlnet.py:397
Methodtest_xlnet_base_model
(self)
tests/test_modeling_xlnet.py:478
Methodtest_xlnet_base_model_with_att_output
(self)
tests/test_modeling_xlnet.py:483
Methodtest_xlnet_for_multiple_choice
(self)
tests/test_modeling_tf_xlnet.py:421
Methodtest_xlnet_lm_head
(self)
tests/test_modeling_tf_xlnet.py:402
Methodtest_xlnet_lm_head
(self)
tests/test_modeling_xlnet.py:488
Methodtest_xlnet_qa
(self)
tests/test_modeling_tf_xlnet.py:416
Methodtest_xlnet_qa
(self)
tests/test_modeling_xlnet.py:503
Methodtest_xlnet_sequence_classif
(self)
tests/test_modeling_tf_xlnet.py:407
Methodtest_xlnet_sequence_classif
(self)
tests/test_modeling_xlnet.py:493
Methodtest_xlnet_token_classif
(self)
tests/test_modeling_xlnet.py:498
Methodtest_xlnet_token_classification
(self)
tests/test_modeling_tf_xlnet.py:412
Methodtest_xsum_config_generation_params
(self)
tests/test_modeling_bart.py:642
Methodtest_xsum_summarization_same_as_fairseq
(self)
tests/test_modeling_bart.py:616
Methodtest_xxx_model
(self)
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py:229
Methodtest_xxx_model
(self)
templates/adding_a_new_model/tests/test_modeling_xxx.py:250
Methodtf_array_equals
(t1, t2)
tests/test_tokenization_utils.py:97
Functiontf_required
(func)
src/transformers/file_utils.py:799
Methodtgt_lens
(self)
examples/seq2seq/utils.py:142
Methodtie_weights
(self)
src/transformers/modeling_reformer.py:1715
Methodtie_weights
(self)
src/transformers/modeling_encoder_decoder.py:74
Methodtie_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
Methodtie_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
Methodto_json_string
Serializes this instance to a JSON string.
src/transformers/training_args.py:203
Methodto_json_string
Serializes this instance to a JSON string.
src/transformers/benchmark/benchmark_args_utils.py:109
Methodto_json_string
Serializes this instance to a JSON string.
src/transformers/data/processors/utils.py:50
Methodto_json_string
Serializes this instance to a JSON string.
src/transformers/data/processors/utils.py:77
Methodtokenize
(self, text: str, pair: Optional[str] = None, add_special_tokens: bool = False)
src/transformers/tokenization_utils_fast.py:240
Functiontorch_distributed_zero_first
Decorator to make all processes in distributed training wait for each local_master to do something.
src/transformers/trainer.py:72
Functiontorch_required
(func)
src/transformers/file_utils.py:787
Functiontraceit
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
Methodtrain_batch_size
(self)
src/transformers/training_args.py:143
Functiontrain_command_factory
Factory function used to instantiate serving server from provided command line arguments. :return: ServeCommand
src/transformers/commands/train.py:18
Methodtrain_dataloader
(self)
examples/lightning_base.py:135
Methodtrain_dataloader
(self)
examples/seq2seq/finetune.py:210
Functiontrain_qa_retriever
(qar_model, qar_tokenizer, qar_train_dset, qar_valid_dset, qar_args)
examples/longform-qa/eli5_utils.py:301
Functiontrain_qa_retriever_joint_epoch
(model, dataset_list, tokenizer, optimizer, scheduler, args, e=0)
examples/longform-qa/eli5_utils.py:244
Functiontrain_qa_s2s
(qa_s2s_model, qa_s2s_tokenizer, s2s_train_dset, s2s_valid_dset, s2s_args)
examples/longform-qa/eli5_utils.py:465
Methodtraining_step
(self, batch, batch_idx)
examples/seq2seq/finetune.py:130
Methodtraining_step
Compute loss and log.
examples/token-classification/run_pl_ner.py:35
Methodtraining_step
(self, batch, batch_idx)
examples/text-classification/run_pl_glue.py:35
Methodtransform
(self, X)
src/transformers/pipelines.py:312
Methodtranslate
Generates summaries from one batch of data.
examples/seq2seq/bertabs/modeling_bertabs.py:772
Methodunk_token
Unknown token (string). Log an error if used while not having been set.
src/transformers/tokenization_utils_base.py:734
Methodunk_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
Methodunshape
group heads
src/transformers/modeling_distilbert.py:163
Methodunshape
compute context
src/transformers/modeling_xlm.py:146
Methodunshape
group heads
src/transformers/modeling_tf_distilbert.py:247
Methodunshape
compute context
src/transformers/modeling_tf_xlm.py:158
Methodunshape
compute context
src/transformers/modeling_t5.py:334
Methodunshape
compute context
src/transformers/modeling_tf_t5.py:238
Methodunshape
compute context
examples/seq2seq/bertabs/modeling_bertabs.py:453
Methodval_dataloader
(self)
examples/lightning_base.py:150
Methodval_dataloader
(self)
examples/seq2seq/finetune.py:225
Methodvalidation_epoch_end
(self, outputs)
examples/token-classification/run_pl_ner.py:136
Methodvalidation_epoch_end
(self, outputs: list)
examples/text-classification/run_pl_glue.py:130
Methodvalidation_step
Compute validation
examples/token-classification/run_pl_ner.py:94
Methodvalidation_step
(self, batch, batch_idx)
examples/text-classification/run_pl_glue.py:98
Methodvocab_size
(self)
templates/adding_a_new_model/tokenization_xxx.py:129
Methodvocab_size
(self)
src/transformers/tokenization_xlm_roberta.py:261
Methodvocab_size
(self)
src/transformers/tokenization_openai.py:125
Methodvocab_size
(self)
src/transformers/tokenization_albert.py:158
← previousnext →4,001–4,100 of 4,119, ranked by callers