MCPcopy Create free account

hub / github.com/Aveiro-Lin/GraphiContact / functions

Functions11,352 in github.com/Aveiro-Lin/GraphiContact

↓ 1 callersFunctionbatch_iterator
(batch_size=10)
src/transformers/examples/research_projects/codeparrot/scripts/bpe_training.py:10
↓ 1 callersFunctionbatch_iterator
()
src/transformers/examples/tensorflow/language-modeling-tpu/train_unigram.py:79
↓ 1 callersFunctionbatched_igemm
( A: Tensor, B: Tensor, out: Optional[torch.Tensor] = None, transposed_A=False, transposed
src/bitsandbytes/bitsandbytes/functional.py:2164
↓ 1 callersMethodbeam_search
( self, input_ids, encoder_output, attention_mask, num_beams, max_length, pad_token_id: int, eos_token
src/transformers/examples/research_projects/onnx/summarization/bart_onnx/generation_onnx.py:631
↓ 1 callersFunctionbinding_nbytes
(binding)
src/transformers/examples/research_projects/quantization-qdqbert/evaluate-hf-trt-qa.py:403
↓ 1 callersFunctionbooleans_processing
Process the input booleans of each model. Args: config ([`PretrainedConfig`]): The config of the running model.
src/transformers/src/transformers/modeling_tf_utils.py:359
↓ 1 callersFunctionbuild_backbone
(cfg)
src/transformers/examples/research_projects/visual_bert/modeling_frcnn.py:194
↓ 1 callersFunctionbuild_backbone
(cfg)
src/transformers/examples/research_projects/lxmert/modeling_frcnn.py:194
↓ 1 callersFunctionbuild_bows_one_hot_vectors
(bow_indices, tokenizer, device="cuda")
src/transformers/examples/research_projects/pplm/run_pplm.py:308
↓ 1 callersFunctionbuild_composite_models
(config_class, output_dir)
src/transformers/utils/create_dummy_models.py:841
↓ 1 callersFunctionbuild_compute_metrics_fn
(task_name: str, tokenizer: PreTrainedTokenizer)
src/transformers/examples/legacy/seq2seq/utils.py:80
↓ 1 callersFunctionbuild_data_iterator
(args, tokenizer)
src/transformers/examples/research_projects/bertabs/run_summarization.py:185
↓ 1 callersFunctionbuild_dataset
(yaml_file, args, is_train=True, scale_factor=1)
src/datasets/build.py:17
↓ 1 callersFunctionbuild_failed_report
(results, include_warning=True)
src/transformers/utils/create_dummy_models.py:1307
↓ 1 callersFunctionbuild_hand_dataset
(yaml_file, args, is_train=True, scale_factor=1)
src/datasets/build.py:109
↓ 1 callersFunctionbuild_predictor
(args, tokenizer, symbols, model, logger=None)
src/transformers/examples/research_projects/bertabs/modeling_bertabs.py:694
↓ 1 callersFunctionbuild_processor
Create a processor for `processor_class`. If a processor is not able to be built with the original arguments, this method tries to change the arg
src/transformers/utils/create_dummy_models.py:246
↓ 1 callersFunctionbuild_simple_report
(results)
src/transformers/utils/create_dummy_models.py:1337
↓ 1 callersFunctionbuild_tiny_model_summary
Build a summary: a dictionary of the form { model architecture name: { "tokenizer_classes": [...], "processor_cl
src/transformers/utils/create_dummy_models.py:1252
↓ 1 callersMethodcalc_banned_ngram_tokens
(self, input_ids, num_hypos, cur_len)
src/transformers/src/transformers/generation/tf_logits_process.py:403
↓ 1 callersMethodcalc_ce_loss
Copy pasted from distillbert (transformers/examples/distillation/)
src/transformers/examples/research_projects/seq2seq-distillation/distillation.py:114
↓ 1 callersMethodcalc_generative_metrics
(self, preds, target)
src/transformers/examples/research_projects/seq2seq-distillation/finetune.py:209
↓ 1 callersMethodcalc_generative_metrics
(self, preds, target)
src/transformers/examples/research_projects/rag-end2end-retriever/finetune_rag.py:418
↓ 1 callersMethodcalc_generative_metrics
(self, preds, target)
src/transformers/examples/research_projects/rag/finetune_rag.py:305
↓ 1 callersFunctioncalculate_exact_match
(output_lns: List[str], reference_lns: List[str])
src/transformers/examples/research_projects/rag-end2end-retriever/utils_rag.py:217
↓ 1 callersFunctioncalculate_exact_match
(output_lns: List[str], reference_lns: List[str])
src/transformers/examples/research_projects/rag/utils_rag.py:217
↓ 1 callersMethodcalibrate
(self, calib_dataset=None)
src/transformers/examples/research_projects/quantization-qdqbert/trainer_quant_qa.py:69
↓ 1 callersMethodcall
(self, x)
src/transformers/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/modeling_tf_{{cookiecutter.lowercase_modelname}}.py:2662
↓ 1 callersMethodcall
(self, input_ids, foo=None, **kwargs)
src/transformers/tests/generation/test_tf_utils.py:321
↓ 1 callersFunctioncamel_case_split
Split a camel-cased name into words. Args: identifier (`str`): The camel-cased name to parse. Returns: `List[str]`: The
src/transformers/utils/check_table.py:96
↓ 1 callersFunctioncamel_case_split
Split a camel-cased name into words. Args: identifier (`str`): The camel-cased name to parse. Returns: `List[str]`: The
src/transformers/utils/update_metadata.py:124
↓ 1 callersFunctioncan_convert_to_float
(string)
src/transformers/examples/legacy/benchmarking/plot_csv_file.py:75
↓ 1 callersFunctioncan_convert_to_float
(string)
src/transformers/examples/tensorflow/benchmarking/plot_csv_file.py:75
↓ 1 callersFunctioncan_convert_to_int
(string)
src/transformers/examples/legacy/benchmarking/plot_csv_file.py:67
↓ 1 callersFunctioncan_convert_to_int
(string)
src/transformers/examples/tensorflow/benchmarking/plot_csv_file.py:67
↓ 1 callersFunctioncan_return_loss
Check if a given model can return loss. Args: model_class (`type`): The class of the model.
src/transformers/src/transformers/utils/generic.py:501
↓ 1 callersFunctioncenter_crop
(image, size)
src/transformers/examples/tensorflow/image-classification/run_image_classification.py:192
↓ 1 callersFunctionchar_token_ratio
Compute character/token ratio of the file with tokenizer.
src/transformers/examples/research_projects/codeparrot/scripts/preprocessing.py:108
↓ 1 callersFunctioncheck_LTR_mark
(line, idx, fast)
src/transformers/scripts/check_tokenizers.py:45
↓ 1 callersFunctioncheck_all_auto_mapping_names_in_config_mapping_names
Check all keys defined in auto mappings (mappings of names) appear in `CONFIG_MAPPING_NAMES`.
src/transformers/utils/check_repo.py:726
↓ 1 callersFunctioncheck_all_auto_mappings_importable
Check all auto mappings can be imported.
src/transformers/utils/check_repo.py:759
↓ 1 callersFunctioncheck_all_auto_object_names_being_defined
Check all names defined in auto (name) mappings exist in the library.
src/transformers/utils/check_repo.py:684
↓ 1 callersFunctioncheck_all_decorator_order
Check that in all test files, the slow decorator is always last.
src/transformers/utils/check_repo.py:857
↓ 1 callersFunctioncheck_all_inits
Check all inits in the transformers repo and raise an error if at least one does not define the same objects in both halves.
src/transformers/utils/check_inits.py:282
↓ 1 callersFunctioncheck_all_models_are_auto_configured
Check all models are each in an auto class.
src/transformers/utils/check_repo.py:669
↓ 1 callersFunctioncheck_all_models_are_tested
Check all models are properly tested.
src/transformers/utils/check_repo.py:594
↓ 1 callersFunctioncheck_all_objects_are_documented
Check all models are properly documented.
src/transformers/utils/check_repo.py:1023
↓ 1 callersFunctioncheck_attribute_being_used
Check if any name in `attributes` is used in one of the strings in `source_strings` Args: config_class (`type`): The configur
src/transformers/utils/check_config_attributes.py:145
↓ 1 callersMethodcheck_beam_scorer_update
(self, input_ids, next_tokens, next_indices, next_scores)
src/transformers/tests/generation/test_beam_search.py:119
↓ 1 callersMethodcheck_beam_scores_finalize
(self, input_ids, next_tokens, next_indices, next_scores)
src/transformers/tests/generation/test_beam_search.py:184
↓ 1 callersFunctioncheck_codes_match
Checks if two version of a code match with the exception of the class/function name. Args: observed_code (`str`): The code found.
src/transformers/utils/check_copies.py:252
↓ 1 callersMethodcheck_config_arguments_init
(self)
src/transformers/tests/test_configuration_common.py:130
↓ 1 callersFunctioncheck_config_attributes
Check the arguments in `__init__` of all configuration classes are used in python files
src/transformers/utils/check_config_attributes.py:280
↓ 1 callersFunctioncheck_config_attributes_being_used
Check the arguments in `__init__` of `config_class` are used in the modeling files in the same directory Args: config_class (`type`):
src/transformers/utils/check_config_attributes.py:234
↓ 1 callersMethodcheck_config_can_be_init_without_params
(self)
src/transformers/tests/test_configuration_common.py:122
↓ 1 callersFunctioncheck_config_docstrings_have_checkpoints
()
src/transformers/utils/check_config_docstrings.py:73
↓ 1 callersMethodcheck_constrained_beam_scorer_finalize
( self, input_ids, next_tokens, next_indices, next_scores, scores_for_all_vocab )
src/transformers/tests/generation/test_beam_search.py:418
↓ 1 callersMethodcheck_constrained_beam_scorer_update
( self, input_ids, next_tokens, next_indices, next_scores, scores_for_all_vocab )
src/transformers/tests/generation/test_beam_search.py:347
↓ 1 callersFunctioncheck_copies
Check every file is copy-consistent with the original. Also check the model list in the main README and other READMEs are consistent. Ar
src/transformers/utils/check_copies.py:376
↓ 1 callersFunctioncheck_decorator_order
Check that in a given test file, the slow decorator is always last. Args: filename (`str`): The path to a test file to check. R
src/transformers/utils/check_repo.py:831
↓ 1 callersFunctioncheck_deprecated_constant_is_up_to_date
Check if the constant `DEPRECATED_MODELS` in `models/auto/configuration_auto.py` is up to date.
src/transformers/utils/check_repo.py:1109
↓ 1 callersFunctioncheck_details
(line, spm_ids, tok_ids, slow, fast)
src/transformers/scripts/check_tokenizers.py:55
↓ 1 callersFunctioncheck_docstrings
Check docstrings of all public objects that are callables and are documented. Args: overwrite (`bool`, *optional*, defaults to `Fals
src/transformers/utils/check_docstrings.py:1163
↓ 1 callersFunctioncheck_docstrings_are_in_md
Check all docstrings are written in md and nor rst.
src/transformers/utils/check_repo.py:1086
↓ 1 callersFunctioncheck_dummies
Check if the dummy files are up to date and maybe `overwrite` with the right content. Args: overwrite (`bool`, *optional*, default t
src/transformers/utils/check_dummies.py:185
↓ 1 callersFunctioncheck_full_copies
Check the files that are full copies of others (as indicated in `FULL_COPIES`) are copy-consistent. Args: overwrite (`bool`, *option
src/transformers/utils/check_copies.py:403
↓ 1 callersFunctioncheck_if_model_is_supported
(model: PreTrainedModel)
src/transformers/src/transformers/utils/fx.py:1202
↓ 1 callersFunctioncheck_imports
Check if the current Python environment contains all the libraries that are imported in a file. Will raise if a library is missing. Args
src/transformers/src/transformers/dynamic_module_utils.py:160
↓ 1 callersMethodcheck_inference_correctness
Test the generation quality of the quantized model and see that we are matching the expected output. Given that we are operating on s
src/transformers/tests/quantization/gptq/test_gptq.py:302
↓ 1 callersMethodcheck_inference_correctness
Test the generation quality of the quantized model and see that we are matching the expected output. Given that we are operating on s
src/transformers/tests/quantization/gptq/test_gptq.py:381
↓ 1 callersMethodcheck_inputs
Checks whether there might be something wrong with given input with regard to the model.
src/transformers/src/transformers/pipelines/text2text_generation.py:111
↓ 1 callersMethodcheck_keras_fit_results
(self, val_loss1, val_loss2, atol=1e-2, rtol=1e-3)
src/transformers/tests/test_modeling_tf_common.py:1427
↓ 1 callersMethodcheck_metric_value
(self, args, state, control, metric_value)
src/transformers/src/transformers/trainer_callback.py:562
↓ 1 callersFunctioncheck_model_doc
Check that the content of the table of content in `_toctree.yml` is clean (no duplicates and sorted for the model API doc) and potentially au
src/transformers/utils/check_doc_toc.py:81
↓ 1 callersFunctioncheck_model_list
Checks the model listed as subfolders of `models` match the models available in `transformers.models`.
src/transformers/utils/check_repo.py:357
↓ 1 callersFunctioncheck_model_list_copy
Check the model lists in the README is consistent with the ones in the other READMES and also with `index.nmd`. Args: overwrite (`bo
src/transformers/utils/check_copies.py:583
↓ 1 callersFunctioncheck_model_list_for_task
For a given task guide, checks the model list in the generated tip for consistency with the state of the lib and updates it if needed. A
src/transformers/utils/check_task_guides.py:132
↓ 1 callersFunctioncheck_model_table
Check the model table in the index.md is consistent with the state of the lib and potentially fix it. Args: overwrite (`bool`, *opti
src/transformers/utils/check_table.py:260
↓ 1 callersFunctioncheck_model_type_doc_match
Check all doc pages have a corresponding model type.
src/transformers/utils/check_repo.py:1038
↓ 1 callersFunctioncheck_models_are_auto_configured
Check models defined in module are each in an auto class. Args: module (`types.ModuleType`): The module in which we get
src/transformers/utils/check_repo.py:644
↓ 1 callersFunctioncheck_models_are_in_init
Checks all models defined in the library are in the main init.
src/transformers/utils/check_repo.py:468
↓ 1 callersFunctioncheck_models_are_tested
Check models defined in a module are all tested in a given file. Args: module (`types.ModuleType`): The module in which we get the models
src/transformers/utils/check_repo.py:561
↓ 1 callersFunctioncheck_objects_being_equally_in_main_init
Check if a (TensorFlow or Flax) object is in the main __init__ iif its counterpart in PyTorch is.
src/transformers/utils/check_repo.py:783
↓ 1 callersFunctioncheck_onnxruntime_requirements
Check onnxruntime is installed and if the installed version match is recent enough Raises: ImportError: If onnxruntime is not instal
src/transformers/src/transformers/convert_graph_to_onnx.py:105
↓ 1 callersFunctioncheck_output_dir
Checks whether to bail out if output_dir already exists and has more than expected_items in it `args`: needs to have the following attribute
src/transformers/examples/legacy/seq2seq/utils.py:643
↓ 1 callersMethodcheck_overrides
(self)
src/bitsandbytes/bitsandbytes/optim/optimizer.py:238
↓ 1 callersFunctioncheck_pipeline_tags
Check all pipeline tags are properly defined in the `PIPELINE_TAGS_AND_AUTO_MODELS` constant of this script.
src/transformers/utils/update_metadata.py:305
↓ 1 callersMethodcheck_pt_tf_outputs
Check the outputs from PyTorch and TensorFlow models are close enough. Checks are done in a recursive way. Args: model_class: The
src/transformers/tests/test_modeling_common.py:1947
↓ 1 callersMethodcheck_pt_tf_outputs
Check the outputs from PyTorch and TensorFlow models are close enough. Checks are done in a recursive way. Args: model_class: The
src/transformers/tests/test_modeling_tf_common.py:484
↓ 1 callersFunctioncheck_readme
Check if the main README contains all the models in the library or not. Args: overwrite (`bool`, *optional*, defaults to `False`):
src/transformers/utils/check_copies.py:685
↓ 1 callersFunctioncheck_repo_quality
Check all models are properly tested and documented.
src/transformers/utils/check_repo.py:1138
↓ 1 callersMethodcheck_saved_checkpoints_deepspeed
(self, output_dir, freq, total, stage, dtype)
src/transformers/tests/deepspeed/test_deepspeed.py:567
↓ 1 callersFunctioncheck_submodules
Check all submodules of Transformers are properly registered in the main init. Error otherwise.
src/transformers/utils/check_inits.py:336
↓ 1 callersFunctioncheck_subword_sampling
Check if the tokenizer generates different results when subword regularization is enabled. Subword regularization augments training data wit
src/transformers/tests/test_tokenization_common.py:139
↓ 1 callersMethodcheck_supported_model_or_raise
Check whether or not the model has the requested features. Args: model: The model to export. feature: The na
src/transformers/src/transformers/onnx/features.py:712
↓ 1 callersFunctioncheck_task
Checks an incoming task string, to validate it's correct and return the default Pipeline and Model classes, and default models if they exist.
src/transformers/src/transformers/pipelines/__init__.py:468
↓ 1 callersMethodcheck_tokenizer_from_pretrained
(self, tokenizer_class)
src/transformers/tests/tokenization/test_tokenization_utils.py:46
↓ 1 callersFunctioncheck_uniques
Check if current hash is still in set of unique hashes and remove if true.
src/transformers/examples/research_projects/codeparrot/scripts/preprocessing.py:39
↓ 1 callersFunctionchunks
Yield successive n-sized chunks from lst.
src/transformers/examples/research_projects/seq2seq-distillation/utils.py:618
↓ 1 callersFunctionclean_custom_task
(task_info)
src/transformers/src/transformers/pipelines/__init__.py:515
← previousnext →2,201–2,300 of 11,352, ranked by callers