MCPcopy Create free account

hub / github.com/huggingface/transformers / functions

Functions4,119 in github.com/huggingface/transformers

Methodforward
r""" Return: :obj:`tuple(torch.FloatTensor)` comprising various elements depending on the configuration (:class:`~transformers.BertConfig`
examples/bert-loses-patience/pabee/modeling_pabee_bert.py:96
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size,)`, `optional`, defaults to :obj:`None`): Labels for computing the
examples/bert-loses-patience/pabee/modeling_pabee_bert.py:258
Methodforward_chunk
(self, hidden_states)
src/transformers/modeling_reformer.py:1074
Methodforward_chunk
(self, hidden_states)
src/transformers/modeling_reformer.py:1407
Methodframework_version
(self)
src/transformers/benchmark/benchmark.py:62
Methodframework_version
(self)
src/transformers/benchmark/benchmark_utils.py:601
Methodframework_version
(self)
src/transformers/benchmark/benchmark_tf.py:85
Methodfreeze_embeds
(self)
examples/seq2seq/distillation.py:300
Methodfrom_config
r""" Instantiates one of the base model classes of the library from a configuration. Note: Loading a model from its confi
src/transformers/modeling_auto.py:521
Methodfrom_config
r""" Instantiates one of the base model classes of the library from a configuration. Note: Loading a model from its confi
src/transformers/modeling_auto.py:669
Methodfrom_config
r""" Instantiates one of the base model classes of the library from a configuration. Note: Loading a model from its confi
src/transformers/modeling_auto.py:826
Methodfrom_config
r""" Instantiates one of the base model classes of the library from a configuration. Note: Loading a model from its confi
src/transformers/modeling_auto.py:961
Methodfrom_config
r""" Instantiates one of the base model classes of the library from a configuration. Note: Loading a model from its confi
src/transformers/modeling_auto.py:1102
Methodfrom_config
r""" Instantiates one of the base model classes of the library from a configuration. Note: Loading a model from its confi
src/transformers/modeling_auto.py:1235
Methodfrom_config
r""" Instantiates one of the base model classes of the library from a configuration. Note: Loading a model from its confi
src/transformers/modeling_auto.py:1385
Methodfrom_config
r""" Instantiates one of the base model classes of the library from a configuration. Note: Loading a model from its confi
src/transformers/modeling_auto.py:1528
Methodfrom_config
(cls, config)
src/transformers/modeling_auto.py:1676
Methodfrom_config
Creates an optimizer from its config with WarmUp custom object.
src/transformers/optimization_tf.py:127
Methodfrom_config
r""" Instantiates one of the base model classes of the library from a configuration. Note: Loading a model from its confi
src/transformers/modeling_tf_auto.py:300
Methodfrom_config
r""" Instantiates one of the base model classes of the library from a configuration. Note: Loading a model from its confi
src/transformers/modeling_tf_auto.py:449
Methodfrom_config
r""" Instantiates one of the base model classes of the library from a configuration. Note: Loading a model from its confi
src/transformers/modeling_tf_auto.py:616
Methodfrom_config
r""" Instantiates one of the base model classes of the library from a configuration. Note: Loading a model from its confi
src/transformers/modeling_tf_auto.py:775
Methodfrom_config
r""" Instantiates one of the base model classes of the library from a configuration. Note: Loading a model from its confi
src/transformers/modeling_tf_auto.py:927
Methodfrom_config
r""" Instantiates one of the base model classes of the library from a configuration. Note: Loading a model from its confi
src/transformers/modeling_tf_auto.py:1087
Methodfrom_config
r""" Instantiates one of the base model classes of the library from a configuration. Note: Loading a model from its confi
src/transformers/modeling_tf_auto.py:1229
Methodfrom_json_file
Constructs a `Config` from the path to a json file of parameters. Args: json_file (:obj:`string`): Path
src/transformers/configuration_utils.py:307
Methodfrom_pretrained
r"""Instantiate a pretrained pytorch model from a pre-trained model configuration. The model is set in evaluation mode by default using ``mod
src/transformers/modeling_utils.py:509
Methodfrom_pretrained
r""" Instantiates one of the model classes of the library -with the architecture used for pretraining this model– from a pre-trained model configurati
src/transformers/modeling_auto.py:563
Methodfrom_pretrained
r""" Instantiates one of the language modeling model classes of the library from a pre-trained model configuration. The `from_pretrai
src/transformers/modeling_auto.py:715
Methodfrom_pretrained
r""" Instantiates one of the language modeling model classes of the library from a pre-trained model configuration. The `from_pretrai
src/transformers/modeling_auto.py:863
Methodfrom_pretrained
r""" Instantiates one of the language modeling model classes of the library from a pre-trained model configuration. The `from_pretrai
src/transformers/modeling_auto.py:1001
Methodfrom_pretrained
r""" Instantiates one of the language modeling model classes of the library from a pre-trained model configuration. The `from_pretrai
src/transformers/modeling_auto.py:1138
Methodfrom_pretrained
r""" Instantiates one of the sequence classification model classes of the library from a pre-trained model configuration. The `from_p
src/transformers/modeling_auto.py:1277
Methodfrom_pretrained
r""" Instantiates one of the question answering model classes of the library from a pre-trained model configuration. The `from_pretra
src/transformers/modeling_auto.py:1424
Methodfrom_pretrained
r""" Instantiates one of the question answering model classes of the library from a pre-trained model configuration. The `from_pretra
src/transformers/modeling_auto.py:1570
Methodfrom_pretrained
(cls, pretrained_model_name_or_path, *model_args, **kwargs)
src/transformers/modeling_auto.py:1691
Methodfrom_pretrained
r"""Instantiate a pretrained TF 2.0 model from a pre-trained model configuration. The warning ``Weights from XXX not initialized from pretrai
src/transformers/modeling_tf_utils.py:332
Methodfrom_pretrained
r""" Instantiates one of the configuration classes of the library from a pre-trained model configuration. The configuration class to
src/transformers/configuration_auto.py:133
Methodfrom_pretrained
r""" Instantiates one of the model classes of the library -with the architecture used for pretraining this model– from a pre-trained model configurati
src/transformers/modeling_tf_auto.py:488
Methodfrom_pretrained
r""" Instantiates one of the language modeling model classes of the library from a pre-trained model configuration. The `from_pretrai
src/transformers/modeling_tf_auto.py:655
Methodfrom_pretrained
r""" Instantiates one of the multiple choice model classes of the library from a pre-trained model configuration. The `from_pretraine
src/transformers/modeling_tf_auto.py:808
Methodfrom_pretrained
r""" Instantiates one of the sequence classification model classes of the library from a pre-trained model configuration. The `from_p
src/transformers/modeling_tf_auto.py:964
Methodfrom_pretrained
r""" Instantiates one of the question answering model classes of the library from a pre-trained model configuration. The `from_pretra
src/transformers/modeling_tf_auto.py:1125
Methodfrom_pretrained
r""" Instantiates one of the question answering model classes of the library from a pre-trained model configuration. The `from_pretra
src/transformers/modeling_tf_auto.py:1265
Methodfrom_pretrained
Instantiate a pre-processed corpus.
src/transformers/tokenization_transfo_xl.py:665
Methodfrom_pretrained
r""" Instantiate one of the tokenizer classes of the library from a pre-trained model vocabulary. The tokenizer class to instantiate
src/transformers/tokenization_auto.py:139
Methodfrom_pretrained
r""" Instantiate a :class:`~transformers.PreTrainedTokenizer` (or a derived class) from a predefined tokenizer. Args: pre
src/transformers/tokenization_utils_base.py:1088
Methodfrom_pretrained
r""" Instantiate a :class:`~transformers.PretrainedConfig` (or a derived class) from a pre-trained model configuration. Args:
src/transformers/configuration_utils.py:145
Functiongelu
Gaussian Error Linear Unit. This is a smoother version of the RELU. Original paper: https://arxiv.org/abs/1606.08415 Args: x: floa
src/transformers/modeling_tf_openai.py:49
Functiongelu
Gaussian Error Linear Unit. Original Implementation of the gelu activation function in Google Bert repo when initially created. For infor
src/transformers/modeling_tf_bert.py:74
Functiongelu
Gaussian Error Linear Unit. Original Implementation of the gelu activation function in Google Bert repo when initially created. For infor
src/transformers/modeling_tf_distilbert.py:63
Functiongelu
Gaussian Error Linear Unit. This is a smoother version of the RELU. Original paper: https://arxiv.org/abs/1606.08415 Args: x: floa
src/transformers/modeling_tf_gpt2.py:53
Functiongelu
Implementation of the gelu activation function. XLNet is using OpenAI GPT's gelu Also see https://arxiv.org/abs/1606.08415
src/transformers/modeling_tf_xlnet.py:59
Functiongelu
(x)
examples/seq2seq/bertabs/modeling_bertabs.py:626
Functiongelu_fast
(x)
src/transformers/activations.py:38
Functiongelu_new
Gaussian Error Linear Unit. This is a smoother version of the RELU. Original paper: https://arxiv.org/abs/1606.08415 Args: x: floa
src/transformers/modeling_tf_bert.py:85
Functiongelu_new
Gaussian Error Linear Unit. This is a smoother version of the RELU. Original paper: https://arxiv.org/abs/1606.08415 Args: x: floa
src/transformers/modeling_tf_distilbert.py:74
Functiongen
()
src/transformers/data/processors/glue.py:82
Functiongen
()
src/transformers/data/processors/squad.py:390
Methodgen
()
src/transformers/data/processors/utils.py:321
Methodgen
()
examples/multiple-choice/utils_multiple_choice.py:169
Methodgen
()
examples/token-classification/utils_ner.py:183
Methodgen
()
examples/adversarial/utils_hans.py:196
Methodgenerate
r""" Generates sequences for models with a LM head. The method currently supports greedy or penalized greedy decoding, sampling with top-k or nucleus
src/transformers/modeling_tf_utils.py:552
FunctiongetFrameworkSpans
docs/source/_static/js/custom.js:165
Methodget_added_vocab
(self)
src/transformers/tokenization_utils_fast.py:126
Functionget_clean_model_id_mapping
(multiling_model_ids)
src/transformers/convert_marian_to_pytorch.py:185
Methodget_clean_sequence
(self, tokenizer)
tests/test_tokenization_bert_japanese.py:68
Functionget_config
(self)
src/transformers/modeling_tf_utils.py:95
Methodget_config
(self)
src/transformers/optimization_tf.py:176
Methodget_dataset
(self, type_path)
examples/seq2seq/distillation.py:118
Methodget_dataset
(self)
examples/adversarial/utils_hans.py:233
Methodget_decoder
(self)
src/transformers/modeling_encoder_decoder.py:81
Methodget_decoder
(self)
src/transformers/modeling_t5.py:1019
Methodget_decoder
(self)
src/transformers/modeling_tf_t5.py:907
Methodget_decoder
(self)
src/transformers/modeling_tf_t5.py:1049
Methodget_dev_examples
Gets a collection of :class:`InputExample` for the dev set.
src/transformers/data/processors/utils.py:98
Methodget_dev_examples
See base class.
src/transformers/data/processors/glue.py:184
Methodget_dev_examples
See base class.
src/transformers/data/processors/glue.py:226
Methodget_dev_examples
See base class.
src/transformers/data/processors/glue.py:255
Methodget_dev_examples
See base class.
src/transformers/data/processors/glue.py:280
Methodget_dev_examples
See base class.
src/transformers/data/processors/glue.py:323
Methodget_dev_examples
See base class.
src/transformers/data/processors/glue.py:365
Methodget_dev_examples
See base class.
src/transformers/data/processors/glue.py:455
Methodget_dev_examples
See base class.
src/transformers/data/processors/glue.py:497
Methodget_dev_examples
See base class.
src/transformers/data/processors/glue.py:539
Methodget_dev_examples
Returns the evaluation example from the data directory. Args: data_dir: Directory containing the data files used for tra
src/transformers/data/processors/squad.py:535
Methodget_dev_examples
Gets a collection of `InputExample`s for the dev set.
examples/multiple-choice/utils_multiple_choice.py:223
Methodget_dev_examples
See base class.
examples/multiple-choice/utils_multiple_choice.py:248
Methodget_dev_examples
See base class.
examples/multiple-choice/utils_multiple_choice.py:311
Methodget_dev_examples
See base class.
examples/multiple-choice/utils_multiple_choice.py:357
Methodget_emb
(self, emb)
examples/seq2seq/bertabs/modeling_bertabs.py:278
Methodget_encoder
(self)
src/transformers/modeling_bart.py:1064
Methodget_encoder
(self)
src/transformers/modeling_encoder_decoder.py:78
Methodget_encoder
(self)
src/transformers/modeling_t5.py:1016
Methodget_encoder
(self)
src/transformers/modeling_tf_t5.py:904
Methodget_encoder
(self)
src/transformers/modeling_tf_t5.py:1046
Methodget_example_from_tensor_dict
Gets an example from a dict with tensorflow tensors. Args: tensor_dict: Keys and values should match the corresponding Glue
src/transformers/data/processors/utils.py:85
Methodget_example_from_tensor_dict
See base class.
src/transformers/data/processors/glue.py:170
Methodget_example_from_tensor_dict
See base class.
src/transformers/data/processors/glue.py:213
← previousnext →2,801–2,900 of 4,119, ranked by callers