MCPcopy Create free account

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

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

↓ 1 callersMethoddecode
Converts a sequence of ids in a string, using the tokenizer and vocabulary with options to remove special tokens and clean up tokeniz
src/transformers/src/transformers/tokenization_utils_base.py:3720
↓ 1 callersFunctiondecode_spans
Take the output of any `ModelForQuestionAnswering` and will generate probabilities for each span to be the actual answer. In addition, i
src/transformers/src/transformers/pipelines/question_answering.py:46
↓ 1 callersFunctiondeepspeed_optim_sched
A convenience wrapper that deals with optimizer and lr scheduler configuration.
src/transformers/src/transformers/integrations/deepspeed.py:270
↓ 1 callersFunctiondefault_hp_search_backend
()
src/transformers/src/transformers/hyperparameter_search.py:126
↓ 1 callersFunctiondefault_hp_space_optuna
(trial)
src/transformers/src/transformers/trainer_utils.py:274
↓ 1 callersFunctiondefault_hp_space_ray
(trial)
src/transformers/src/transformers/trainer_utils.py:286
↓ 1 callersFunctiondefault_hp_space_sigopt
(trial)
src/transformers/src/transformers/trainer_utils.py:300
↓ 1 callersFunctiondefault_hp_space_wandb
(trial)
src/transformers/src/transformers/trainer_utils.py:313
↓ 1 callersFunctiondefault_logdir
Same default as PyTorch
src/transformers/src/transformers/training_args.py:104
↓ 1 callersFunctiondefine_sagemaker_information
()
src/transformers/src/transformers/utils/hub.py:197
↓ 1 callersMethoddelete
Need to delete before creating the renderer next time
src/common/renderer_pyrd.py:108
↓ 1 callersFunctiondequantize
( A: Tensor, state: Optional[Tuple[Tensor, Tensor]] = None, absmax: Optional[torch.Tensor] = None,
src/bitsandbytes/bitsandbytes/functional.py:1446
↓ 1 callersFunctiondequantizeBlockwise_bf16
src/bitsandbytes/csrc/pythonInterface.cpp:137
↓ 1 callersFunctiondequantizeBlockwise_bf16_fp4
src/bitsandbytes/csrc/pythonInterface.cpp:138
↓ 1 callersFunctiondequantizeBlockwise_bf16_nf4
src/bitsandbytes/csrc/pythonInterface.cpp:139
↓ 1 callersFunctiondequantizeBlockwise_fp16
src/bitsandbytes/csrc/pythonInterface.cpp:129
↓ 1 callersFunctiondequantizeBlockwise_fp16_fp4
src/bitsandbytes/csrc/pythonInterface.cpp:130
↓ 1 callersFunctiondequantizeBlockwise_fp16_nf4
src/bitsandbytes/csrc/pythonInterface.cpp:131
↓ 1 callersFunctiondequantizeBlockwise_fp32
src/bitsandbytes/csrc/pythonInterface.cpp:133
↓ 1 callersFunctiondequantizeBlockwise_fp32_fp4
src/bitsandbytes/csrc/pythonInterface.cpp:134
↓ 1 callersFunctiondequantizeBlockwise_fp32_nf4
src/bitsandbytes/csrc/pythonInterface.cpp:135
↓ 1 callersFunctiondequantize_cpu
src/bitsandbytes/csrc/cpu_ops.cpp:7
↓ 1 callersFunctiondequantize_no_absmax
Dequantizes the 8-bit tensor to 32-bit. Dequantizes the 8-bit tensor `A` to the 32-bit tensor `out` via the quantization map `code`.
src/bitsandbytes/bitsandbytes/functional.py:1496
↓ 1 callersFunctiondequantize_rowwise
(x: torch.Tensor, state_x: torch.Tensor)
src/bitsandbytes/bitsandbytes/triton/dequantize_rowwise.py:9
↓ 1 callersFunctiondetect_overflow
Report whether the tensor contains any `nan` or `inf` entries. This is useful for detecting overflows/underflows and best to call right afte
src/transformers/src/transformers/debug_utils.py:298
↓ 1 callersMethoddetermine_framework
Determines the framework to use for the export. The priority is in the following order: 1. User input via `framework`.
src/transformers/src/transformers/onnx/features.py:629
↓ 1 callersFunctiondiff_contains_doc_examples
Check if the diff is only in code examples of the doc in a filename. Args: repo (`git.Repo`): A git repository (for instance the Tra
src/transformers/utils/tests_fetcher.py:233
↓ 1 callersMethoddisable_adapters
r""" If you are not familiar with adapters and PEFT methods, we invite you to read more about them on the PEFT official documentation:
src/transformers/src/transformers/integrations/peft.py:313
↓ 1 callersFunctiondisable_fx_test
(filename: Path)
src/transformers/src/transformers/commands/add_new_model_like.py:1420
↓ 1 callersMethoddisable_input_require_grads
Removes the `_require_grads_hook`.
src/transformers/src/transformers/modeling_utils.py:1347
↓ 1 callersFunctiondisable_progress_bar
Disable tqdm progress bar.
src/transformers/src/transformers/utils/logging.py:392
↓ 1 callersMethoddisplay
(self)
src/transformers/src/transformers/utils/notebook.py:220
↓ 1 callersFunctiondistributed_broadcast_scalars
( scalars: List[Union[int, float]], num_total_examples: Optional[int] = None, device: Optional[tor
src/transformers/src/transformers/trainer_pt_utils.py:215
↓ 1 callersMethoddistributed_prediction_steps
(self, batch)
src/transformers/src/transformers/trainer_tf.py:467
↓ 1 callersMethoddistributed_training_steps
(self, batch)
src/transformers/src/transformers/trainer_tf.py:705
↓ 1 callersMethoddo_checks
(self, output_dir)
src/transformers/examples/research_projects/wav2vec2/test_wav2vec2_deepspeed.py:114
↓ 1 callersFunctiondo_nms
(boxes, scores, image_shape, score_thresh, nms_thresh, mind, maxd)
src/transformers/examples/research_projects/visual_bert/modeling_frcnn.py:115
↓ 1 callersFunctiondo_nms
(boxes, scores, image_shape, score_thresh, nms_thresh, mind, maxd)
src/transformers/examples/research_projects/lxmert/modeling_frcnn.py:115
↓ 1 callersFunctiondocuments_dir_is_valid
(path)
src/transformers/examples/research_projects/bertabs/run_summarization.py:335
↓ 1 callersMethoddoes_advance
(self, token_id: int)
src/transformers/src/transformers/generation/beam_constraints.py:157
↓ 1 callersMethoddoes_advance
(self, token_id: int)
src/transformers/src/transformers/generation/beam_constraints.py:301
↓ 1 callersMethoddomain_map
(cls, loc: torch.Tensor, scale: torch.Tensor)
src/transformers/src/transformers/time_series_utils.py:188
↓ 1 callersFunctiondownload_and_extract
(task, data_dir)
src/transformers/utils/download_glue_data.py:47
↓ 1 callersFunctiondownload_diagnostic
(data_dir)
src/transformers/utils/download_glue_data.py:106
↓ 1 callersMethoddraw_labels
(self, label, box, color)
src/transformers/examples/research_projects/visual_bert/visualizing_image.py:140
↓ 1 callersMethoddraw_labels
(self, label, box, color)
src/transformers/examples/research_projects/lxmert/visualizing_image.py:140
↓ 1 callersMethoddraw_text
( self, text, position, color="g", ha="left", )
src/transformers/examples/research_projects/visual_bert/visualizing_image.py:162
↓ 1 callersMethoddraw_text
( self, text, position, color="g", ha="left", )
src/transformers/examples/research_projects/lxmert/visualizing_image.py:162
↓ 1 callersFunctiondtype_byte_size
Returns the size (in bytes) occupied by one parameter of type `dtype`. Example: ```py >>> dtype_byte_size(torch.float32) 4
src/transformers/src/transformers/modeling_utils.py:278
↓ 1 callersFunctiondtype_byte_size
Returns the size (in bytes) occupied by one parameter of type `dtype`. Example: ```py >>> dtype_byte_size(tf.float32) 4 ```
src/transformers/src/transformers/modeling_tf_utils.py:609
↓ 1 callersFunctiondtype_byte_size
Returns the size (in bytes) occupied by one parameter of type `dtype`. Example: ```py >>> dtype_byte_size(np.float32) 4 ```
src/transformers/src/transformers/modeling_flax_utils.py:84
↓ 1 callersMethoddump_saved_frames
(self)
src/transformers/src/transformers/debug_utils.py:178
↓ 1 callersMethodenable_input_require_grads
Enables the gradients for the input embeddings. This is useful for fine-tuning adapter weights while keeping the model weights fixed.
src/transformers/src/transformers/modeling_utils.py:1336
↓ 1 callersFunctionenable_progress_bar
Enable tqdm progress bar.
src/transformers/src/transformers/utils/logging.py:385
↓ 1 callersMethodencode
Converts a string to a sequence of ids (integer), using the tokenizer and vocabulary. Same as doing `self.convert_tokens_to_ids(self
src/transformers/src/transformers/tokenization_utils_base.py:2546
↓ 1 callersFunctionencode_for_summarization
Encode the story and summary lines, and join them as specified in [1] by using `[SEP] [CLS]` tokens to separate sentences.
src/transformers/examples/research_projects/bertabs/utils_summarization.py:130
↓ 1 callersMethodend_epoch
Finally arrived at the end of epoch (full pass on dataset). Do some tensorboard logging and checkpoint saving.
src/transformers/examples/research_projects/distillation/distiller.py:573
↓ 1 callersMethodensure_available
(self)
src/transformers/src/transformers/hyperparameter_search.py:53
↓ 1 callersMethodensure_exactly_one_mask_token
(self, model_inputs: GenericTensor)
src/transformers/src/transformers/pipelines/fill_mask.py:106
↓ 1 callersFunctionensure_valid_input
Ensure inputs are presented in the correct order, without any Non Args: model: The model used to forward the input data toke
src/transformers/src/transformers/convert_graph_to_onnx.py:134
↓ 1 callersFunctionentropy
Compute the entropy of a probability distribution
src/transformers/examples/research_projects/bertology/run_bertology.py:52
↓ 1 callersFunctionentropy
Compute the entropy of a probability distribution
src/transformers/examples/research_projects/bertology/run_prune_gpt.py:39
↓ 1 callersFunctionestimateQuantiles_fp16
src/bitsandbytes/csrc/pythonInterface.cpp:23
↓ 1 callersFunctionestimateQuantiles_fp32
src/bitsandbytes/csrc/pythonInterface.cpp:22
↓ 1 callersFunctionestimate_quantiles
Estimates 256 equidistant quantiles on the input tensor eCDF. Uses SRAM-Quantiles algorithm to quickly estimate 256 equidistant quantiles
src/bitsandbytes/bitsandbytes/functional.py:559
↓ 1 callersMethodestimate_tokens
Helper function to estimate the total number of tokens from the model inputs. Args: inputs (`dict`): The model inputs.
src/transformers/src/transformers/modeling_utils.py:1026
↓ 1 callersFunctioneval_data_dir
Run evaluation on part of the data for one gpu and save to {save_dir}/rank_{rank}_output.json
src/transformers/examples/legacy/seq2seq/run_distributed_eval.py:46
↓ 1 callersFunctioneval_math_expression
Evaluate (safely) a mathematial expression and returns its value. Args: expression (`str`): The expression to evaluate. Returns
src/transformers/utils/check_docstrings.py:850
↓ 1 callersFunctioneval_node
(node)
src/transformers/utils/check_docstrings.py:879
↓ 1 callersFunctioneval_qa_s2s_epoch
(model, dataset, tokenizer, args)
src/transformers/examples/research_projects/longform-qa/eli5_utils.py:459
↓ 1 callersFunctionevaluate
(args)
src/transformers/examples/research_projects/bertabs/run_summarization.py:31
↓ 1 callersFunctionevaluate
(args)
src/transformers/examples/research_projects/codeparrot/scripts/validation_loss.py:53
↓ 1 callersMethodevaluate
(self, eval_dataset=None, eval_examples=None, ignore_keys=None, metric_key_prefix: str = "eval")
src/transformers/examples/research_projects/quantization-qdqbert/trainer_quant_qa.py:91
↓ 1 callersMethodevaluate
( self, eval_dataset: Optional[Dataset] = None, eval_examples=None, ignore_key
src/transformers/examples/pytorch/question-answering/trainer_seq2seq_qa.py:40
↓ 1 callersFunctionevaluate_assign
(assign, state, tools)
src/transformers/src/transformers/tools/python_interpreter.py:140
↓ 1 callersFunctionevaluate_call
(call, state, tools)
src/transformers/src/transformers/tools/python_interpreter.py:154
↓ 1 callersFunctionevaluate_condition
(condition, state, tools)
src/transformers/src/transformers/tools/python_interpreter.py:197
↓ 1 callersFunctionevaluate_example
(predict_str: str, ground_str: str)
src/transformers/examples/research_projects/tapex/run_wikisql_with_tapex.py:536
↓ 1 callersFunctionevaluate_example
(predict_str: str, ground_str: str)
src/transformers/examples/research_projects/tapex/run_wikitablequestions_with_tapex.py:512
↓ 1 callersFunctionevaluate_for
(for_loop, state, tools)
src/transformers/src/transformers/tools/python_interpreter.py:244
↓ 1 callersFunctionevaluate_if
(if_statement, state, tools)
src/transformers/src/transformers/tools/python_interpreter.py:229
↓ 1 callersFunctionevaluate_name
(name, state, tools)
src/transformers/src/transformers/tools/python_interpreter.py:188
↓ 1 callersFunctionevaluate_performance
(data_loader, discriminator, device="cpu")
src/transformers/examples/research_projects/pplm/run_pplm_discrim_train.py:161
↓ 1 callersFunctionevaluate_qa_retriever
(model, dataset, tokenizer, args)
src/transformers/examples/research_projects/longform-qa/eli5_utils.py:300
↓ 1 callersFunctionevaluate_subscript
(subscript, state, tools)
src/transformers/src/transformers/tools/python_interpreter.py:173
↓ 1 callersFunctionexact_match_score
(prediction, ground_truth)
src/transformers/examples/research_projects/rag-end2end-retriever/utils_rag.py:213
↓ 1 callersFunctionexact_match_score
(prediction, ground_truth)
src/transformers/examples/research_projects/rag/utils_rag.py:213
↓ 1 callersFunctionexecute_and_return_decoded_std_streams
(command_string)
src/bitsandbytes/bitsandbytes/utils.py:111
↓ 1 callersFunctionexpand_device_map
Expand a device map to return the correspondance parameter name to device.
src/transformers/src/transformers/modeling_utils.py:4620
↓ 1 callersFunctionexpand_like
Expand the `arrays` so that the second dimension grows to `new_seq_length`. Uses `padding_index` for padding.
src/transformers/src/transformers/trainer_pt_utils.py:354
↓ 1 callersFunctionexport_and_validate_model
(model, tokenizer, onnx_file_path, num_beams, max_length)
src/transformers/examples/research_projects/onnx/summarization/run_onnx_exporter.py:104
↓ 1 callersFunctionexport_pytorch
Export a PyTorch model to an ONNX Intermediate Representation (IR) Args: preprocessor: ([`PreTrainedTokenizer`], [`FeatureExtraction
src/transformers/src/transformers/onnx/convert.py:83
↓ 1 callersFunctionexport_tensorflow
Export a TensorFlow model to an ONNX Intermediate Representation (IR) Args: preprocessor: ([`PreTrainedTokenizer`] or [`FeatureExtra
src/transformers/src/transformers/onnx/convert.py:219
↓ 1 callersFunctionexport_with_optimum
(args)
src/transformers/src/transformers/onnx/__main__.py:35
↓ 1 callersFunctionexport_with_transformers
(args)
src/transformers/src/transformers/onnx/__main__.py:69
↓ 1 callersMethodextractLo32s
src/bitsandbytes/include/SIMD.h:212
↓ 1 callersFunctionextractOutliers_ampere
src/bitsandbytes/csrc/pythonInterface.cpp:165
↓ 1 callersFunctionextractOutliers_turing
src/bitsandbytes/csrc/pythonInterface.cpp:164
↓ 1 callersFunctionextract_block
Return the first block in `content` with the indent level `indent_level`. The first line in `content` should be indented at `indent_level` level,
src/transformers/src/transformers/commands/add_new_model_like.py:178
↓ 1 callersFunctionextract_first_line_failure
(failures_short_lines)
src/transformers/utils/notification_service_doc_tests.py:50
← previousnext →2,401–2,500 of 11,352, ranked by callers