MCPcopy Create free account

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

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

↓ 2 callersFunctionhandle_agent_inputs
(*args, **kwargs)
src/transformers/src/transformers/tools/agent_types.py:220
↓ 2 callersFunctionhandle_agent_outputs
(outputs, output_types=None)
src/transformers/src/transformers/tools/agent_types.py:226
↓ 2 callersFunctionhandle_stacktraces
(test_results)
src/transformers/utils/notification_service.py:68
↓ 2 callersFunctionhandle_test_results
(test_results)
src/transformers/utils/notification_service.py:49
↓ 2 callersFunctionhans_convert_examples_to_features
Loads a data file into a list of ``InputFeatures`` Args: examples: List of ``InputExamples`` containing the examples. label_
src/transformers/examples/research_projects/adversarial/utils_hans.py:282
↓ 2 callersFunctionhf_bucket_url
(model_id: str, filename: str, use_cdn=True)
src/transformers/examples/research_projects/visual_bert/utils.py:245
↓ 2 callersFunctionhf_bucket_url
(model_id: str, filename: str, use_cdn=True)
src/transformers/examples/research_projects/lxmert/utils.py:245
↓ 2 callersMethodhp_name
(params)
src/transformers/tests/trainer/test_trainer.py:2559
↓ 2 callersFunctionhtml_progress_bar
(value, total, prefix, label, width=300)
src/transformers/src/transformers/utils/notebook.py:33
↓ 2 callersMethodhypo_add
Add a new hypothesis to the list.
src/transformers/examples/research_projects/onnx/summarization/bart_onnx/generation_onnx.py:409
↓ 2 callersFunctionid_to_rgb
Converts unique ID to RGB color.
src/transformers/src/transformers/image_transforms.py:631
↓ 2 callersFunctionids_tensor
Creates a random int32 tensor of the shape within the vocab size.
src/transformers/tests/test_modeling_flax_common.py:61
↓ 2 callersMethodids_to_clean_text
(self, generated_ids: List[int])
src/transformers/examples/research_projects/seq2seq-distillation/finetune.py:133
↓ 2 callersMethodids_to_clean_text
(self, generated_ids: List[int])
src/transformers/examples/research_projects/rag-end2end-retriever/finetune_rag.py:203
↓ 2 callersMethodids_to_clean_text
(self, generated_ids: List[int])
src/transformers/examples/research_projects/rag/finetune_rag.py:202
↓ 2 callersFunctionignore_undocumented
Rules to determine if `name` should be undocumented (returns `True` if it should not be documented).
src/transformers/utils/check_repo.py:985
↓ 2 callersFunctionimg_from_base64
(imagestring)
src/utils/image_ops.py:16
↓ 2 callersFunctionimg_tensorize
(im, input_format="RGB")
src/transformers/examples/research_projects/visual_bert/utils.py:540
↓ 2 callersFunctionimg_tensorize
(im, input_format="RGB")
src/transformers/examples/research_projects/lxmert/utils.py:540
↓ 2 callersFunctioninfer_shapes
Attempt to infer the static vs dynamic axes for each input and output tensors for a specific model Args: nlp: The pipeline object ho
src/transformers/src/transformers/convert_graph_to_onnx.py:162
↓ 2 callersFunctioninit_copy_embeddings
r""" This function aims to reduce the embeddings in case new_num_tokens < old_num_tokens or to pad with -1 in case new_num_tokens > old_num_to
src/transformers/src/transformers/modeling_tf_utils.py:1019
↓ 2 callersMethodinit_decoder_state
Init decoder state
src/transformers/examples/research_projects/bertabs/modeling_bertabs.py:253
↓ 2 callersMethodinit_hf_repo
Initializes a git repo in `self.args.hub_model_id`.
src/transformers/src/transformers/trainer.py:3435
↓ 2 callersMethodinit_highway_pooler
(self)
src/transformers/examples/research_projects/deebert/src/modeling_highway_bert.py:120
↓ 2 callersMethodinit_retrieval
Retriever initialization function, needs to be called from the training process. The function sets some common parameters and environ
src/transformers/examples/research_projects/rag/distributed_pytorch_retriever.py:44
↓ 2 callersMethodinit_retrieval
Retriever initialization function, needs to be called from the training process. This function triggers retrieval initialization
src/transformers/examples/research_projects/rag/distributed_ray_retriever.py:88
↓ 2 callersMethodinit_state
(self)
src/transformers/src/transformers/generation/beam_constraints.py:370
↓ 2 callersFunctioninit_test_examples_dependencies
The test examples do not import from the examples (which are just scripts, not modules) so we need som extra care initializing the dependency
src/transformers/utils/tests_fetcher.py:826
↓ 2 callersFunctioninstall_cuda
(version, base_path, download_path)
src/bitsandbytes/install_cuda.py:24
↓ 2 callersFunctionintermittent_save
save the perplexity differences to filename Args: contexts: Example on which the perplexity is calculated real_perps: Perple
src/transformers/examples/research_projects/information-gain-filtration/igf/igf.py:121
↓ 2 callersMethodinvert_attention_mask
Invert an attention mask (e.g., switches 0. and 1.). Args: encoder_attention_mask (`torch.Tensor`): An attention mask.
src/transformers/src/transformers/modeling_utils.py:837
↓ 2 callersFunctionisAligned
src/bitsandbytes/include/AAlloc.h:9
↓ 2 callersFunctionis_a_private_model
Returns `True` if the model should not be in the main init.
src/transformers/utils/check_repo.py:461
↓ 2 callersFunctionis_auto_gptq_available
()
src/transformers/src/transformers/utils/import_utils.py:673
↓ 2 callersFunctionis_azureml_available
()
src/transformers/src/transformers/integrations/integration_utils.py:119
↓ 2 callersFunctionis_building_block
Returns `True` if a model is a building block part of a bigger model.
src/transformers/utils/check_repo.py:447
↓ 2 callersFunctionis_chinese
(word: str)
src/transformers/examples/legacy/run_chinese_ref.py:36
↓ 2 callersFunctionis_chinese
(word: str)
src/transformers/examples/research_projects/mlm_wwm/run_chinese_ref.py:35
↓ 2 callersFunctionis_codecarbon_available
()
src/transformers/src/transformers/integrations/integration_utils.py:141
↓ 2 callersFunctionis_dagshub_available
()
src/transformers/src/transformers/integrations/integration_utils.py:133
↓ 2 callersFunctionis_decord_available
()
src/transformers/src/transformers/utils/import_utils.py:845
↓ 2 callersMethodis_done
If there are enough hypotheses and that none of the hypotheses being generated can become better than the worst one in the heap, then
src/transformers/src/transformers/generation/beam_search.py:974
↓ 2 callersFunctionis_dvclive_available
()
src/transformers/src/transformers/integrations/integration_utils.py:155
↓ 2 callersFunctionis_faiss_available
()
src/transformers/src/transformers/utils/import_utils.py:629
↓ 2 callersFunctionis_flytekit_available
()
src/transformers/src/transformers/integrations/integration_utils.py:145
↓ 2 callersFunctionis_hf_dataset
(dataset)
src/transformers/src/transformers/modelcard.py:341
↓ 2 callersFunctionis_local_dist_rank_0
()
src/transformers/src/transformers/modeling_utils.py:135
↓ 2 callersMethodis_local_process_zero
Whether or not this process is the local (e.g., on one machine if training in a distributed fashion on several machines) main process
src/transformers/src/transformers/trainer.py:2751
↓ 2 callersFunctionis_main_process
()
src/utils/comm.py:32
↓ 2 callersFunctionis_neptune_available
()
src/transformers/src/transformers/integrations/integration_utils.py:137
↓ 2 callersFunctionis_pandas_available
()
src/transformers/src/transformers/utils/import_utils.py:753
↓ 2 callersFunctionis_pil_image
(img)
src/transformers/src/transformers/image_utils.py:69
↓ 2 callersFunctionis_pyctcdecode_available
()
src/transformers/src/transformers/utils/import_utils.py:268
↓ 2 callersFunctionis_pytesseract_available
()
src/transformers/src/transformers/utils/import_utils.py:707
↓ 2 callersFunctionis_ray_tune_available
()
src/transformers/src/transformers/integrations/integration_utils.py:109
↓ 2 callersFunctionis_tensorflow_probability_available
()
src/transformers/src/transformers/utils/import_utils.py:749
↓ 2 callersFunctionis_tf_symbolic_tensor
Tests if `x` is a tensorflow symbolic tensor or not (ie. not eager). Safe to call even if tensorflow is not installed.
src/transformers/src/transformers/utils/generic.py:211
↓ 2 callersFunctionis_too_big
(strang)
src/transformers/examples/legacy/seq2seq/pack_dataset.py:37
↓ 2 callersFunctionis_torch_bf16_cpu_available
()
src/transformers/src/transformers/utils/import_utils.py:311
↓ 2 callersFunctionis_torch_device
Tests if `x` is a torch device or not. Safe to call even if torch is not installed.
src/transformers/src/transformers/utils/generic.py:164
↓ 2 callersFunctionis_torch_fx_proxy
(x)
src/transformers/src/transformers/utils/import_utils.py:1296
↓ 2 callersFunctionis_torchdynamo_available
()
src/transformers/src/transformers/utils/import_utils.py:479
↓ 2 callersFunctionis_training_run_on_sagemaker
()
src/transformers/src/transformers/utils/import_utils.py:795
↓ 2 callersFunctionkeep_doc_examples_only
Remove everything from the code content except the doc examples (used to determined if a diff should trigger doc tests or not). Args:
src/transformers/utils/tests_fetcher.py:151
↓ 2 callersMethodlength_penalty
(self)
src/transformers/examples/research_projects/bertabs/modeling_bertabs.py:736
↓ 2 callersFunctionlist_field
(default=None, metadata=None)
src/transformers/examples/research_projects/robust-speech-event/run_speech_recognition_ctc_streaming.py:61
↓ 2 callersFunctionlist_field
(default=None, metadata=None)
src/transformers/examples/research_projects/robust-speech-event/run_speech_recognition_ctc_bnb.py:62
↓ 2 callersFunctionlist_field
(default=None, metadata=None)
src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py:62
↓ 2 callersFunctionlist_field
(default=None, metadata=None)
src/transformers/examples/pytorch/speech-recognition/run_speech_recognition_ctc_adapter.py:64
↓ 2 callersFunctionlmap
list(map(f, x))
src/transformers/examples/research_projects/rag-end2end-retriever/utils_rag.py:170
↓ 2 callersFunctionlmap
list(map(f, x))
src/transformers/examples/research_projects/rag/utils_rag.py:170
↓ 2 callersFunctionload_and_cache_examples
(args, tokenizer, evaluate=False, output_examples=False)
src/transformers/examples/legacy/run_swag.py:233
↓ 2 callersFunctionload_and_cache_examples
(args, tokenizer, evaluate=False, output_examples=False)
src/transformers/examples/legacy/question-answering/run_squad.py:403
↓ 2 callersFunctionload_and_cache_examples
(args, task, tokenizer, evaluate=False)
src/transformers/examples/research_projects/deebert/run_glue_deebert.py:335
↓ 2 callersFunctionload_and_cache_examples
(args, tokenizer, evaluate=False, output_examples=False)
src/transformers/examples/research_projects/distillation/run_squad_w_distillation.py:427
↓ 2 callersFunctionload_and_cache_examples
(args, task, tokenizer, evaluate=False)
src/transformers/examples/research_projects/movement-pruning/masked_run_glue.py:506
↓ 2 callersFunctionload_and_cache_examples
(args, tokenizer, evaluate=False, output_examples=False)
src/transformers/examples/research_projects/movement-pruning/masked_run_squad.py:584
↓ 2 callersFunctionload_and_cache_examples
(args, task, tokenizer, evaluate=False)
src/transformers/examples/research_projects/bert-loses-patience/run_glue_with_pabee.py:354
↓ 2 callersFunctionload_as_tf_dataset
(dataset, image_column, image_size, mean, std, batch_size, shuffle)
src/transformers/examples/tensorflow/contrastive-image-text/run_clip.py:225
↓ 2 callersFunctionload_examples
(args, tokenizer, evaluate=False)
src/transformers/examples/research_projects/mm-imdb/run_mmimdb.py:305
↓ 2 callersFunctionload_from_pretrained
Load the pretrained model and tokenizer.
src/transformers/examples/research_projects/self-training-text-classification/finetuning.py:499
↓ 2 callersFunctionload_from_yaml_file
(yaml_file)
src/utils/tsv_file_ops.py:103
↓ 2 callersFunctionload_json
(path)
src/transformers/tests/deepspeed/test_deepspeed.py:75
↓ 2 callersFunctionload_pytorch_checkpoint_in_tf2_model
Load pytorch checkpoints in a TF 2.0 model
src/transformers/src/transformers/modeling_tf_pytorch_utils.py:156
↓ 2 callersFunctionload_pytorch_state_dict_in_tf2_model
Load a pytorch state_dict in a TF 2.0 model. pt_state_dict can be either an actual dict or a lazy-loading safetensors archive created with the saf
src/transformers/src/transformers/modeling_tf_pytorch_utils.py:247
↓ 2 callersFunctionload_pytorch_weights_in_tf2_model
Load pytorch state_dict in a TF 2.0 model.
src/transformers/src/transformers/modeling_tf_pytorch_utils.py:215
↓ 2 callersFunctionload_rocstories_dataset
Output a list of tuples(story, 1st continuation, 2nd continuation, label)
src/transformers/examples/legacy/run_openai_gpt.py:63
↓ 2 callersFunctionload_sharded_checkpoint
This is the same as [`torch.nn.Module.load_state_dict`](https://pytorch.org/docs/stable/generated/torch.nn.Module.html?highlight=load_state_d
src/transformers/src/transformers/modeling_utils.py:381
↓ 2 callersFunctionload_streaming_dataset
(split, sampling_rate, **kwargs)
src/transformers/examples/research_projects/robust-speech-event/run_speech_recognition_ctc_streaming.py:372
↓ 2 callersFunctionload_tf_weights
Detect missing and unexpected layers and load the TF weights from the shard file accordingly to their names and shapes. Args: mo
src/transformers/src/transformers/modeling_tf_utils.py:860
↓ 2 callersMethodload_yaml
(config)
src/transformers/examples/research_projects/visual_bert/utils.py:155
↓ 2 callersMethodload_yaml
(config)
src/transformers/examples/research_projects/lxmert/utils.py:155
↓ 2 callersMethodlog_stats
(self)
src/transformers/examples/research_projects/bert-loses-patience/pabee/modeling_pabee_bert.py:90
↓ 2 callersFunctionloop_post_process
(x)
src/transformers/examples/research_projects/vqgan-clip/img_processing.py:48
↓ 2 callersFunctionloss_fn
(logits, labels, z_loss=0)
src/transformers/examples/research_projects/jax-projects/model_parallel/run_clm_mp.py:519
↓ 2 callersFunctionloss_fn
The label smoothing implementation is adapted from Flax's official example: https://github.com/google/flax/blob/87a211135c6a377c8f290
src/transformers/examples/flax/image-captioning/run_image_captioning_flax.py:947
↓ 2 callersFunctionloss_fn
(logits, labels)
src/transformers/examples/flax/vision/run_image_classification.py:481
↓ 2 callersFunctionloss_fn
The label smoothing implementation is adapted from Flax's official example: https://github.com/google/flax/blob/87a211135c6a377c8f290
src/transformers/examples/flax/summarization/run_summarization_flax.py:808
↓ 2 callersFunctionloss_fn
(logits, labels)
src/transformers/examples/flax/language-modeling/run_clm_flax.py:720
↓ 2 callersFunctionloss_fn
The label smoothing implementation is adapted from Flax's official example: https://github.com/google/flax/blob/87a211135c6a377c8f290
src/transformers/examples/flax/speech-recognition/run_flax_speech_recognition_seq2seq.py:679
← previousnext →1,501–1,600 of 11,352, ranked by callers