MCPcopy Create free account

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

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

↓ 1 callersMethod_sanitize_parameters
( self, return_full_text=None, return_tensors=None, return_text=None,
src/transformers/src/transformers/pipelines/text_generation.py:96
↓ 1 callersMethod_save_optimizer_and_scheduler
(self, output_dir)
src/transformers/src/transformers/trainer.py:2399
↓ 1 callersMethod_save_pretrained
Save a tokenizer using the slow-tokenizer/legacy format: vocabulary + added tokens. Fast tokenizers can also be saved in a unique JS
src/transformers/src/transformers/tokenization_utils_base.py:2463
↓ 1 callersMethod_save_rng_state
(self, output_dir)
src/transformers/src/transformers/trainer.py:2367
↓ 1 callersMethod_save_to_state_dict
save weight and bias, then fill state_dict with components of quant_state
src/bitsandbytes/bitsandbytes/nn/modules.py:431
↓ 1 callersMethod_save_tpu
(self, output_dir: Optional[str] = None)
src/transformers/src/transformers/trainer.py:2821
↓ 1 callersFunction_second_table_line
(col_widths)
src/transformers/src/transformers/modelcard.py:826
↓ 1 callersFunction_secs2timedelta
convert seconds to hh:mm:ss.msec, msecs rounded to 2 decimals
src/transformers/src/transformers/trainer_pt_utils.py:870
↓ 1 callersMethod_set_processor_class
Sets processor class as an attribute.
src/transformers/src/transformers/image_processing_utils.py:88
↓ 1 callersFunction_setup_default_tools
()
src/transformers/src/transformers/tools/agents.py:96
↓ 1 callersMethod_shared_roi_transform
(self, features, boxes)
src/transformers/examples/research_projects/visual_bert/modeling_frcnn.py:1330
↓ 1 callersMethod_shared_roi_transform
(self, features, boxes)
src/transformers/examples/research_projects/lxmert/modeling_frcnn.py:1330
↓ 1 callersMethod_shift_right_t5
(self, input_ids)
src/transformers/examples/legacy/seq2seq/utils.py:325
↓ 1 callersMethod_shift_right_t5
(self, input_ids)
src/transformers/examples/research_projects/seq2seq-distillation/utils.py:307
↓ 1 callersFunction_stream_subprocess
(cmd, env=None, stdin=None, timeout=None, quiet=False, echo=False)
src/transformers/src/transformers/testing_utils.py:1823
↓ 1 callersMethod_test_distiller_cli_fork
(self, updates, check_contents=True)
src/transformers/examples/research_projects/seq2seq-distillation/_test_seq2seq_examples_multi_gpu.py:110
↓ 1 callersFunction_tf_glue_convert_examples_to_features
Returns: A `tf.data.Dataset` containing the task-specific features.
src/transformers/src/transformers/data/processors/glue.py:78
↓ 1 callersMethod_tie_encoder_decoder_weights
(encoder: nn.Module, decoder: nn.Module, base_model_prefix: str)
src/transformers/src/transformers/modeling_utils.py:1425
↓ 1 callersMethod_tie_or_clone_weights
Tie or clone module weights depending of whether we are using TorchScript or not
src/transformers/src/transformers/modeling_utils.py:1499
↓ 1 callersMethod_tokenize
Converts a string in a sequence of tokens (string), using the tokenizer. Split in words for word-based vocabulary or sub-words for su
src/transformers/src/transformers/tokenization_utils.py:621
↓ 1 callersMethod_trace_modules
(self, model)
src/transformers/examples/research_projects/onnx/summarization/bart_onnx/generation_onnx.py:143
↓ 1 callersMethod_truncate
Truncate inputs to predefined length or max length in the batch Args: processed_features(`Union[Dict[str, np.ndarray], B
src/transformers/src/transformers/feature_extraction_sequence_utils.py:298
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
src/transformers/examples/legacy/run_swag.py:199
↓ 1 callersFunction_update_mtl
(mtl, filename)
src/tools/graphi_inference_damon.py:251
↓ 1 callersMethod_update_rate
(self, stack)
src/transformers/examples/research_projects/bertabs/modeling_bertabs.py:1044
↓ 1 callersMethod_update_trie
(self, unique_no_split_tokens: Optional[str] = [])
src/transformers/src/transformers/tokenization_utils.py:510
↓ 1 callersMethod_v2_get_resized_embeddings
Build a resized Embedding layer from a provided Embedding layer. Increasing the size will add newly initialized vectors at the end. R
src/transformers/src/transformers/modeling_tf_utils.py:2268
↓ 1 callersMethod_v2_get_resized_lm_head_bias
Build a resized bias from the old ones. Increasing the size will add newly initialized vectors at the end. Reducing the size will rem
src/transformers/src/transformers/modeling_tf_utils.py:2161
↓ 1 callersMethod_v2_resize_token_embeddings
(self, new_num_tokens)
src/transformers/src/transformers/modeling_tf_utils.py:2087
↓ 1 callersMethod_v2_resized_token_embeddings
Resizes input token embeddings matrix of the model if `new_num_tokens != config.vocab_size`. Arguments: new_num_tokens (
src/transformers/src/transformers/modeling_tf_utils.py:2010
↓ 1 callersMethod_validate_arguments
(self)
src/transformers/src/transformers/generation/logits_process.py:946
↓ 1 callersMethod_validate_arguments
(self)
src/transformers/src/transformers/generation/logits_process.py:1037
↓ 1 callersMethod_validate_framework_choice
Validates if the framework requested for the export is both correct and available, otherwise throws an exception.
src/transformers/src/transformers/onnx/features.py:587
↓ 1 callersMethod_validate_generated_length
Performs validation related to the resulting generated length
src/transformers/src/transformers/generation/utils.py:1348
↓ 1 callersMethod_validate_model_class
Confirms that the model class is compatible with generation. If not, raises an exception that points to the right class to use.
src/transformers/src/transformers/generation/utils.py:1269
↓ 1 callersMethod_validate_model_class
Confirms that the model class is compatible with generation. If not, raises an exception that points to the right class to use.
src/transformers/src/transformers/generation/flax_utils.py:225
↓ 1 callersMethod_validate_model_class
Confirms that the model class is compatible with generation. If not, raises an exception that points to the right class to use.
src/transformers/src/transformers/generation/tf_utils.py:597
↓ 1 callersMethod_validate_model_kwargs
Validates model kwargs for generation. Generate argument typos will also be caught here.
src/transformers/src/transformers/generation/utils.py:1295
↓ 1 callersMethod_validate_model_kwargs
Validates model kwargs for generation. Generate argument typos will also be caught here.
src/transformers/src/transformers/generation/flax_utils.py:249
↓ 1 callersMethod_validate_model_kwargs
Validates model kwargs for generation. Generate argument typos will also be caught here.
src/transformers/src/transformers/generation/tf_utils.py:622
↓ 1 callersMethod_write_logs
( self, trainer: pl.Trainer, pl_module: pl.LightningModule, type_path: str, save_generations=True
src/transformers/examples/research_projects/seq2seq-distillation/callbacks.py:28
↓ 1 callersMethod_write_logs
( self, trainer: pl.Trainer, pl_module: pl.LightningModule, type_path: str, save_generations=True
src/transformers/examples/research_projects/rag-end2end-retriever/callbacks_rag.py:64
↓ 1 callersMethod_write_logs
( self, trainer: pl.Trainer, pl_module: pl.LightningModule, type_path: str, save_generations=True
src/transformers/examples/research_projects/rag/callbacks_rag.py:61
↓ 1 callersFunctionaccuracy
(out, labels)
src/transformers/examples/legacy/run_swag.py:216
↓ 1 callersFunctionaccuracy
(out, labels)
src/transformers/examples/legacy/run_openai_gpt.py:58
↓ 1 callersFunctionaccuracy
Compute weighted accuracy for log probs and targets. Args: logits: [batch, length, num_classes] float array. targets: categorical target
src/transformers/examples/research_projects/performer/run_mlm_performer.py:345
↓ 1 callersMethodadd
(self, token_id: int)
src/transformers/src/transformers/generation/beam_constraints.py:433
↓ 1 callersMethodadd_box
(self, box, color=None)
src/transformers/examples/research_projects/visual_bert/visualizing_image.py:88
↓ 1 callersMethodadd_box
(self, box, color=None)
src/transformers/examples/research_projects/lxmert/visualizing_image.py:88
↓ 1 callersMethodadd_callback
(self, callback)
src/transformers/src/transformers/trainer_callback.py:325
↓ 1 callersMethodadd_child
Add a child progress bar displayed under the table of metrics. The child progress bar is returned (so it can be easily updated).
src/transformers/src/transformers/utils/notebook.py:262
↓ 1 callersFunctionadd_code_sample_docstrings
( *docstr, processor_class=None, checkpoint=None, output_type=None, config_class=None,
src/transformers/src/transformers/utils/doc.py:1064
↓ 1 callersMethodadd_examples_from_csv
( self, file_name, split_name="", column_label=0, column_text=1,
src/transformers/src/transformers/data/processors/utils.py:165
↓ 1 callersFunctionadd_generic_args
(parser, root_dir)
src/transformers/examples/research_projects/seq2seq-distillation/lightning_base.py:295
↓ 1 callersFunctionadd_generic_args
(parser, root_dir)
src/transformers/examples/research_projects/rag-end2end-retriever/lightning_base.py:316
↓ 1 callersFunctionadd_generic_args
(parser, root_dir)
src/transformers/examples/research_projects/rag/lightning_base.py:304
↓ 1 callersMethodadd_model_specific_args
(parser, root_dir)
src/transformers/examples/legacy/pytorch-lightning/run_glue.py:143
↓ 1 callersMethodadd_model_specific_args
(parser, root_dir)
src/transformers/examples/legacy/pytorch-lightning/run_ner.py:165
↓ 1 callersFunctionadd_model_to_auto_classes
Add a model to the relevant mappings in the auto module. Args: old_model_patterns (`ModelPatterns`): The patterns for the old model.
src/transformers/src/transformers/commands/add_new_model_like.py:1082
↓ 1 callersFunctionadd_model_to_main_init
Add a model to the main init of Transformers. Args: old_model_patterns (`ModelPatterns`): The patterns for the old model. ne
src/transformers/src/transformers/commands/add_new_model_like.py:931
↓ 1 callersMethodadd_new_param_name
(info, param_name)
src/transformers/src/transformers/utils/hp_naming.py:89
↓ 1 callersMethodadd_path
(self, path: str)
src/transformers/utils/notification_service_doc_tests.py:330
↓ 1 callersFunctionadd_pipeline_model_mapping
Add `pipeline_model_mapping` to `test_class`.
src/transformers/utils/add_pipeline_model_mapping_to_test.py:182
↓ 1 callersFunctionadd_pipeline_model_mapping_to_test_file
Add `pipeline_model_mapping` to `test_file`.
src/transformers/utils/add_pipeline_model_mapping_to_test.py:294
↓ 1 callersMethodadd_ray_specific_args
(parser)
src/transformers/examples/research_projects/rag-end2end-retriever/finetune_rag.py:665
↓ 1 callersMethodadd_ray_specific_args
(parser)
src/transformers/examples/research_projects/rag/finetune_rag.py:510
↓ 1 callersFunctionadd_start_docstrings_to_model_forward
(*docstr)
src/transformers/src/transformers/utils/doc.py:31
↓ 1 callersFunctionadd_sub_symbol
(bert_tokens: List[str], chinese_word_set: set())
src/transformers/examples/legacy/run_chinese_ref.py:56
↓ 1 callersFunctionadd_sub_symbol
(bert_tokens: List[str], chinese_word_set: set())
src/transformers/examples/research_projects/mlm_wwm/run_chinese_ref.py:55
↓ 1 callersFunctionadjmat_sparse
Create row-normalized sparse graph adjacency matrix.
src/modeling/_smpl.py:183
↓ 1 callersFunctionadjmat_sparse
Create row-normalized sparse graph adjacency matrix.
src/modeling/_mano.py:105
↓ 1 callersFunctionadjust_length_to_model
(length, max_sequence_length)
src/transformers/examples/pytorch/text-generation/run_generation.py:153
↓ 1 callersMethodadjust_logits_during_generation
(self, logits, cur_len: int, max_length: int)
src/transformers/examples/research_projects/onnx/summarization/bart_onnx/generation_onnx.py:609
↓ 1 callersMethodaggregate_overlapping_entities
(self, entities)
src/transformers/src/transformers/pipelines/token_classification.py:336
↓ 1 callersMethodaggregate_words
Override tokens from a given word that disagree to force agreement on word boundaries. Example: micro|soft| com|pany| B-ENT I-NAME I
src/transformers/src/transformers/pipelines/token_classification.py:470
↓ 1 callersMethodalign_data
(self, wav_dir, text_file, output_dir)
src/transformers/examples/research_projects/wav2vec2/alignment.py:178
↓ 1 callersMethodalign_single_sample
(self, item)
src/transformers/examples/research_projects/wav2vec2/alignment.py:38
↓ 1 callersFunctionalpha_stats
Calculates mean and max line length of file.
src/transformers/examples/research_projects/codeparrot/scripts/preprocessing.py:33
↓ 1 callersMethodanalyse_model
(self)
src/transformers/src/transformers/debug_utils.py:186
↓ 1 callersFunctionanalyze_results
Analyze the differences between _import_structure objects and TYPE_CHECKING objects found in an init. Args: import_dict_objects (`Di
src/transformers/utils/check_inits.py:235
↓ 1 callersFunctionanswer_question
( question_doc, s2s_model, s2s_tokenizer, min_len=64, max_len=256, sampling=False, n_beams=2, top_p=0.95,
src/transformers/examples/research_projects/longform-qa/eli5_app.py:116
↓ 1 callersFunctionappend_alpha
(imtmp)
src/tools/new_renderer.py:193
↓ 1 callersFunctionappend_call_sample_docstring
(model_class, checkpoint, output_type, config_class, mask=None, revision=None)
src/transformers/src/transformers/modeling_flax_utils.py:1270
↓ 1 callersFunctionappend_replace_return_docstrings
(model_class, output_type, config_class)
src/transformers/src/transformers/modeling_flax_utils.py:1281
↓ 1 callersFunctionapply_chunking_to_forward
This function chunks the `input_tensors` into smaller input tensor parts of size `chunk_size` over the dimension `chunk_dim`. It then applies
src/transformers/src/transformers/pytorch_utils.py:170
↓ 1 callersMethodas_dict
returns dict of tensors and strings to use in serialization via _save_to_state_dict() param: packed -- returns dict[str, torch.Tensor
src/bitsandbytes/bitsandbytes/functional.py:737
↓ 1 callersMethodas_target_tokenizer
Temporarily sets the tokenizer for encoding the targets. Useful for tokenizer associated to sequence-to-sequence models that need a s
src/transformers/src/transformers/tokenization_utils_base.py:3855
↓ 1 callersMethodassertListAlmostEqual
(self, list1, list2, tol, msg=None)
src/transformers/tests/optimization/test_optimization.py:118
↓ 1 callersFunctionassert_all_frozen
(model)
src/transformers/examples/legacy/seq2seq/utils.py:592
↓ 1 callersFunctionassert_all_frozen
(model)
src/transformers/examples/research_projects/seq2seq-distillation/utils.py:573
↓ 1 callersFunctionassign_boxes_to_levels
( box_lists: List[torch.Tensor], min_level: int, max_level: int, canonical_box_size: int,
src/transformers/examples/research_projects/visual_bert/modeling_frcnn.py:385
↓ 1 callersFunctionassign_boxes_to_levels
( box_lists: List[torch.Tensor], min_level: int, max_level: int, canonical_box_size: int,
src/transformers/examples/research_projects/lxmert/modeling_frcnn.py:385
↓ 1 callersMethodassisted_decoding
r""" Generates sequences of token ids for models with a language modeling head using **greedy decoding** or **sample** (depending on `
src/transformers/src/transformers/generation/utils.py:4345
↓ 1 callersMethodaugm_params
Get augmentation parameters.
src/datasets/human_mesh_tsv.py:79
↓ 1 callersMethodaugm_params
Get augmentation parameters.
src/datasets/hand_mesh_tsv.py:79
↓ 1 callersMethodautocast_smart_context_manager
A helper wrapper that creates an appropriate context manager for `autocast` while feeding it the desired arguments, depending on the
src/transformers/src/transformers/trainer.py:2663
↓ 1 callersFunctionaverage_state_dicts
(state_dicts: List[Dict[str, torch.Tensor]])
src/transformers/examples/research_projects/seq2seq-distillation/convert_pl_checkpoint_to_hf.py:27
↓ 1 callersMethodbackward
(ctx, grad_output)
src/bitsandbytes/bitsandbytes/autograd/_functions.py:134
↓ 1 callersMethodbackward
(ctx, grad)
src/transformers/examples/research_projects/visual_bert/modeling_frcnn.py:409
↓ 1 callersMethodbatch_inference
(self, **inputs)
src/transformers/src/transformers/pipelines/table_question_answering.py:138
← previousnext →2,101–2,200 of 11,352, ranked by callers