MCPcopy Create free account

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

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

↓ 6 callersMethodget_labels
(self, path: str)
src/transformers/examples/legacy/token-classification/tasks.py:58
↓ 6 callersMethodget_position_embeddings
(self)
src/transformers/src/transformers/modeling_utils.py:1824
↓ 6 callersFunctionget_some_linear_layer
(model)
src/transformers/tests/quantization/bnb/test_mixed_int8.py:44
↓ 6 callersMethodget_state_buffer
(self, p, dtype=torch.float32)
src/bitsandbytes/bitsandbytes/optim/optimizer.py:319
↓ 6 callersMethodhyperparameter_search
Launch an hyperparameter search using `optuna` or `Ray Tune` or `SigOpt`. The optimized quantity is determined by `compute_objective`
src/transformers/src/transformers/trainer.py:2525
↓ 6 callersMethodinit_retrieval
(self)
src/transformers/examples/research_projects/rag/distributed_ray_retriever.py:28
↓ 6 callersFunctionis_key_or_prefix_key_in_dict
Checks if `key` of `(prefix,) + key` is in random_flax_state_dict
src/transformers/src/transformers/modeling_flax_pytorch_utils.py:89
↓ 6 callersFunctionis_optimum_available
()
src/transformers/src/transformers/utils/import_utils.py:665
↓ 6 callersFunctionis_psutil_available
()
src/transformers/src/transformers/utils/import_utils.py:530
↓ 6 callersFunctionload
(module: nn.Module, state_dict, prefix="")
src/transformers/src/transformers/modeling_utils.py:547
↓ 6 callersMethodload_from_json
Create an instance from the content of `json_path`.
src/transformers/src/transformers/trainer_callback.py:114
↓ 6 callersMethodlog
(self, logs)
src/transformers/tests/trainer/test_trainer.py:700
↓ 6 callersFunctionmain
(args, model=None)
src/transformers/examples/research_projects/seq2seq-distillation/finetune.py:387
↓ 6 callersFunctionmake_test_data_dir
(tmp_dir)
src/transformers/examples/legacy/seq2seq/old_test_datasets.py:46
↓ 6 callersFunctionprecision_recall_f1score
Compute precision, recall, and f1
src/utils/metrics.py:19
↓ 6 callersMethodprepare_beam_scorer
(self, **kwargs)
src/transformers/tests/generation/test_beam_search.py:65
↓ 6 callersMethodprepare_inputs
(self)
src/transformers/tests/generation/test_beam_search.py:75
↓ 6 callersFunctionprint_dedented
(text)
src/bitsandbytes/bitsandbytes/diagnostics/utils.py:11
↓ 6 callersMethodprune_heads
Prunes heads of the base model. Arguments: heads_to_prune (`Dict[int, List[int]]`): Dictionary with keys
src/transformers/src/transformers/modeling_utils.py:1847
↓ 6 callersFunctionretrieve_info_for_model
Retrieves all the information from a given model_type. Args: model_type (`str`): A valid model type (like "bert" or "gpt2")
src/transformers/src/transformers/commands/add_new_model_like.py:767
↓ 6 callersFunctionrotateY
(points, angle)
src/utils/renderer.py:23
↓ 6 callersMethodrun_and_check
( self, stage, dtype, model_name: str = T5_SMALL, eval_steps: int = 10
src/transformers/tests/deepspeed/test_deepspeed.py:1005
↓ 6 callersMethodrun_seq2seq_quick
( self, distributed=False, extra_args_str=None, predict_with_generate=True,
src/transformers/tests/extended/test_trainer_ext.py:57
↓ 6 callersFunctionstrtobool
Convert a string representation of truth to true (1) or false (0). True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values are 'n',
src/transformers/src/transformers/utils/generic.py:60
↓ 6 callersMethodtest
Tests whether this constraint has been properly defined.
src/transformers/src/transformers/generation/beam_constraints.py:24
↓ 6 callersMethodto_dict
Serializes this instance to a Python dictionary. Returns: `Dict[str, Any]`: Dictionary of all the attributes that make u
src/transformers/src/transformers/configuration_utils.py:869
↓ 6 callersMethodto_json_file
Save this instance to a json file.
src/transformers/src/transformers/modelcard.py:249
↓ 6 callersFunctiontolist
(x)
src/transformers/src/transformers/data/data_collator.py:508
↓ 6 callersMethodtrain_new_from_iterator
Trains a tokenizer on a new corpus with the same defaults (in terms of special tokens or tokenization pipeline) as the current one.
src/transformers/src/transformers/tokenization_utils_fast.py:687
↓ 6 callersMethodwords
Return a list mapping the tokens to their actual word in the initial sentence for a fast tokenizer. Args: batch_index (`
src/transformers/src/transformers/tokenization_utils_base.py:343
↓ 5 callersMethod__init__
(self, config)
src/modeling/bert/modeling_graphormer.py:299
↓ 5 callersMethod__init__
Base Lion optimizer. Arguments: params (`torch.tensor`): The input parameters to optimize. l
src/bitsandbytes/bitsandbytes/optim/lion.py:9
↓ 5 callersMethod__init__
Base AdamW optimizer. Arguments: params (`torch.tensor`): The input parameters to optimize.
src/bitsandbytes/bitsandbytes/optim/adamw.py:9
↓ 5 callersMethod__init__
(self, config)
src/transformers/src/transformers/modeling_utils.py:4400
↓ 5 callersMethod_create_examples
Creates examples for the training, dev and test sets.
src/transformers/src/transformers/data/processors/glue.py:449
↓ 5 callersMethod_get_word_embedding_weight
(model, embedding_layer)
src/transformers/src/transformers/modeling_tf_utils.py:2033
↓ 5 callersFunction_listify
(obj)
src/transformers/src/transformers/modelcard.py:301
↓ 5 callersMethod_load_datasamples
(self, num_samples)
src/transformers/tests/utils/test_audio_utils.py:253
↓ 5 callersFunction_print_list
Pretty print a list of elements with one line per element and a - starting each line.
src/transformers/utils/tests_fetcher.py:977
↓ 5 callersMethod_save
(self, output_dir: Optional[str] = None, state_dict=None)
src/transformers/src/transformers/trainer.py:2849
↓ 5 callersFunction_split_model_outputs
Given the (decoder/cross attentions)/(decoder hidden states) for multiple generated tokens, splits it into a tuple where each member correspo
src/transformers/src/transformers/generation/utils.py:4820
↓ 5 callersMethod_test_distiller_cli
(self, updates, check_contents=True)
src/transformers/examples/research_projects/seq2seq-distillation/_test_seq2seq_examples.py:239
↓ 5 callersFunction_torch_collate_batch
Collate `examples` into a batch, using the information in `tokenizer` for padding if necessary.
src/transformers/src/transformers/data/data_collator.py:402
↓ 5 callersMethod_update_model_kwargs_for_generation
( self, outputs: ModelOutput, model_kwargs: Dict[str, Any], is_encoder_decoder: bool = False )
src/transformers/src/transformers/generation/tf_utils.py:1278
↓ 5 callersMethod_update_model_kwargs_for_xla_generation
( self, model_outputs: ModelOutput, model_kwargs: Dict[str, Any], cur_len: int
src/transformers/src/transformers/generation/tf_utils.py:1294
↓ 5 callersMethodactive_adapters
If you are not familiar with adapters and PEFT methods, we invite you to read more about them on the PEFT official documentation: htt
src/transformers/src/transformers/integrations/peft.py:358
↓ 5 callersMethodanalyze_directory
Runs through the specific directory, looking for the files identified with `identifier`. Executes the doctests in those files
src/transformers/tests/utils/test_doc_samples.py:35
↓ 5 callersMethodassertListAlmostEqual
(self, list1, list2, tol)
src/transformers/tests/optimization/test_optimization_tf.py:31
↓ 5 callersFunctionassert_most_approx_close
(a, b, rtol=1e-3, atol=1e-3, max_error_count=0)
src/bitsandbytes/tests/test_optim.py:20
↓ 5 callersMethodassert_outputs_same
(self, after_outputs, outputs)
src/transformers/tests/test_modeling_tf_common.py:407
↓ 5 callersMethodbeam_search
r""" Generates sequences of token ids for models with a language modeling head using **beam search decoding** and can be used for text
src/transformers/src/transformers/generation/utils.py:2955
↓ 5 callersMethodbuild
(self, input_shape=None)
src/transformers/src/transformers/modeling_tf_utils.py:1132
↓ 5 callersFunctioncached_path
Given something that might be a URL (or might be a local path), determine which. If it's a URL, download the file and cache it, and retur
src/modeling/bert/file_utils.py:93
↓ 5 callersMethodcall
( self, input_ids=None, past_key_values=None,
src/transformers/tests/test_modeling_tf_utils.py:136
↓ 5 callersFunctioncenter_crop
Crops the `image` to the specified `size` using a center crop. Note that if the image is too small to be cropped to the size given, it will b
src/transformers/src/transformers/image_transforms.py:407
↓ 5 callersMethodcheck_best_model_has_been_loaded
( self, output_dir, freq, total, trainer, metric, greater_is_better=False, is_pretrained=True, safe_we
src/transformers/tests/trainer/test_trainer.py:418
↓ 5 callersMethodcheck_inference_correctness
r""" Test the generation quality of the quantized model and see that we are matching the expected output. Given that we are operating
src/transformers/tests/quantization/gptq/test_gptq.py:186
↓ 5 callersFunctioncheckout_commit
Context manager that checks out a given commit when entered, but gets back to the reference it was at on exit. Args: repo (`git.Repo
src/transformers/utils/tests_fetcher.py:101
↓ 5 callersFunctioncompute_heads_importance
This method shows how to compute: - head attention entropy - head importance scores according to http://arxiv.org/abs/1905.10650
src/transformers/examples/research_projects/bertology/run_bertology.py:69
↓ 5 callersFunctioncompute_heads_importance
This method shows how to compute: - head attention entropy - head importance scores according to http://arxiv.org/abs/1905.10650
src/transformers/examples/research_projects/bertology/run_prune_gpt.py:59
↓ 5 callersFunctioncompute_perplexity
Computes perplexity of the transformer model on data in test_data Args: model: Pre-trained GPT2 model test_data: Data on whi
src/transformers/examples/research_projects/information-gain-filtration/igf/igf.py:35
↓ 5 callersFunctionconvert_tf_checkpoint_to_pytorch
(tf_hub_path, pytorch_dump_path, is_encoder_named_decoder, vocab_size, is_encoder)
src/transformers/src/transformers/convert_tf_hub_seq_to_seq_bert_to_pytorch.py:33
↓ 5 callersFunctionduplicate_doc_file
Duplicate a documentation file and adapts it for a new model. Args: module_file (`str` or `os.PathLike`): Path to the doc file to du
src/transformers/src/transformers/commands/add_new_model_like.py:1175
↓ 5 callersFunctionevaluate
Evaluate a model checkpoint on the given evaluation data.
src/transformers/examples/research_projects/self-training-text-classification/finetuning.py:420
↓ 5 callersFunctionevaluate
(example)
src/transformers/examples/research_projects/jax-projects/big_bird/evaluate.py:108
↓ 5 callersFunctionexport
Export a Pytorch or TensorFlow model to an ONNX Intermediate Representation (IR) Args: preprocessor: ([`PreTrainedTokenizer`], [`Fea
src/transformers/src/transformers/onnx/convert.py:285
↓ 5 callersFunctionfind_indent
Returns the number of spaces that start a line indent.
src/transformers/utils/check_docstrings.py:810
↓ 5 callersFunctionflip_channel_order
Flips the channel order of the image. If the image is in RGB format, it will be converted to BGR and vice versa. Args: image (`
src/transformers/src/transformers/image_transforms.py:766
↓ 5 callersFunctionfn
(*args, **kwargs)
src/transformers/src/transformers/tools/base.py:588
↓ 5 callersMethodfrom_model_config
Instantiate a OnnxConfig for a specific model Args: config: The model's configuration to use when exporting to ONNX
src/transformers/src/transformers/onnx/config.py:128
↓ 5 callersMethodget2
src/bitsandbytes/include/SIMD.h:176
↓ 5 callersMethodget3
src/bitsandbytes/include/SIMD.h:177
↓ 5 callersMethodget_clean_sequence
(self, tokenizer, with_prefix_space=False, max_length=20, min_length=5)
src/transformers/tests/test_tokenization_common.py:230
↓ 5 callersFunctionget_cuda_bnb_library_path
Get the disk path to the CUDA BNB native library specified by the given CUDA specs, taking into account the `BNB_CUDA_VERSION` override envir
src/bitsandbytes/bitsandbytes/cextension.py:32
↓ 5 callersFunctionget_image_size
Returns the (height, width) dimensions of the image. Args: image (`np.ndarray`): The image to get the dimensions of.
src/transformers/src/transformers/image_utils.py:216
↓ 5 callersMethodget_instance
(cls)
src/bitsandbytes/bitsandbytes/utils.py:78
↓ 5 callersMethodget_instance
(cls)
src/bitsandbytes/bitsandbytes/functional.py:145
↓ 5 callersMethodget_iterator
( self, inputs, num_workers: int, batch_size: int, preprocess_params, forward_params, postprocess_para
src/transformers/src/transformers/pipelines/base.py:1052
↓ 5 callersMethodget_key
(self, idx)
src/utils/tsv_file.py:84
↓ 5 callersFunctionget_norm
(norm, out_channels)
src/transformers/examples/research_projects/visual_bert/modeling_frcnn.py:158
↓ 5 callersFunctionget_norm
(norm, out_channels)
src/transformers/examples/research_projects/lxmert/modeling_frcnn.py:158
↓ 5 callersMethodget_output_embeddings
Returns the model's output embeddings Returns: `tf.Variable`: The new weights mapping vocabulary to hidden states.
src/transformers/src/transformers/modeling_tf_utils.py:1875
↓ 5 callersFunctionget_torch_dist_unique_port
Returns a port number that can be fed to `torch.distributed.launch`'s `--master_port` argument. Under `pytest-xdist` it adds a delta number
src/transformers/src/transformers/testing_utils.py:1896
↓ 5 callersFunctionget_world_size
()
src/utils/comm.py:16
↓ 5 callersMethodhp_space
(trial)
src/transformers/tests/trainer/test_trainer.py:2540
↓ 5 callersFunctionid_tensor_storage
Unique identifier to a tensor storage. Multiple different tensors can share the same underlying storage. For example, "meta" tensors all shar
src/transformers/src/transformers/pytorch_utils.py:283
↓ 5 callersFunctionint8_matmul_rowwise_dequantize
(a, b, state_x, state_w, bias)
src/bitsandbytes/bitsandbytes/triton/int8_matmul_rowwise_dequantize.py:7
↓ 5 callersFunctionis_deepspeed_available
()
src/transformers/src/transformers/integrations/deepspeed.py:35
↓ 5 callersFunctionis_sentencepiece_available
()
src/transformers/src/transformers/utils/import_utils.py:641
↓ 5 callersFunctionis_tensorflow_text_available
()
src/transformers/src/transformers/utils/import_utils.py:719
↓ 5 callersFunctionload_json
(path)
src/transformers/examples/research_projects/seq2seq-distillation/utils.py:454
↓ 5 callersFunctionmake_choice_type_function
Creates a mapping function from each choices string representation to the actual value. Used to support multiple value types for a single arg
src/transformers/src/transformers/hf_argparser.py:47
↓ 5 callersMethodnum_examples
Helper to get number of samples in a [`~torch.utils.data.DataLoader`] by accessing its dataset. When dataloader.dataset does not exis
src/transformers/src/transformers/trainer.py:1119
↓ 5 callersMethodnum_special_tokens_to_add
(self, pair: bool = False)
src/transformers/src/transformers/tokenization_utils_base.py:2587
↓ 5 callersFunctionpadding_tensor
(sequences, padding_value, padding_side, sequence_length)
src/transformers/examples/research_projects/luke/luke_utils.py:12
↓ 5 callersMethodpredict
Run prediction and returns predictions and potential metrics. Depending on the dataset and your use case, your test dataset may cont
src/transformers/src/transformers/trainer_seq2seq.py:168
↓ 5 callersMethodprepare_for_model
Prepares a sequence of input id, or a pair of sequences of inputs ids so that it can be used by the model. It adds special tokens, tr
src/transformers/src/transformers/tokenization_utils_base.py:3342
↓ 5 callersMethodprepare_inputs_for_generation
(self, *args, **kwargs)
src/transformers/src/transformers/generation/tf_utils.py:472
↓ 5 callersFunctionprint_2d_tensor
Print a 2D tensor
src/transformers/examples/research_projects/bertology/run_bertology.py:59
↓ 5 callersFunctionprint_2d_tensor
Print a 2D tensor
src/transformers/examples/research_projects/bertology/run_prune_gpt.py:49
← previousnext →501–600 of 11,352, ranked by callers