Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Aveiro-Lin/GraphiContact
/ functions
Functions
11,352 in github.com/Aveiro-Lin/GraphiContact
⨍
Functions
11,352
◇
Types & classes
3,603
↳
Endpoints
52
↓ 1 callers
Function
get_label_list
(labels)
src/transformers/examples/pytorch/token-classification/run_ner.py:346
↓ 1 callers
Function
get_label_list
(labels)
src/transformers/examples/flax/token-classification/run_flax_ner.py:493
↓ 1 callers
Function
get_labels
(y_pred, y_true)
src/transformers/examples/tensorflow/token-classification/run_ner.py:516
↓ 1 callers
Function
get_labels
(predictions, references)
src/transformers/examples/pytorch/token-classification/run_ner_no_trainer.py:613
↓ 1 callers
Method
get_labels
See base class.
src/transformers/src/transformers/data/processors/glue.py:445
↓ 1 callers
Function
get_last_daily_ci_artifacts
Get the artifacts of last completed workflow run id of the scheduled (daily) CI.
src/transformers/utils/get_previous_daily_ci.py:41
↓ 1 callers
Function
get_last_daily_ci_reports
Get the artifacts' content of the last completed workflow run id of the scheduled (daily) CI.
src/transformers/utils/get_previous_daily_ci.py:54
↓ 1 callers
Function
get_last_daily_ci_runs
Get the last completed workflow run id of the scheduled (daily) CI.
src/transformers/utils/get_previous_daily_ci.py:29
↓ 1 callers
Function
get_launcher
(distributed=False)
src/transformers/tests/deepspeed/test_model_zoo.py:141
↓ 1 callers
Method
get_launcher
(self, distributed=False)
src/transformers/examples/research_projects/wav2vec2/test_wav2vec2_deepspeed.py:193
↓ 1 callers
Method
get_layer
(self)
src/modeling/_mano.py:48
↓ 1 callers
Method
get_loading_attributes
(self)
src/transformers/src/transformers/utils/quantization_config.py:429
↓ 1 callers
Function
get_lr
()
src/transformers/examples/research_projects/codeparrot/scripts/codeparrot_training.py:239
↓ 1 callers
Method
get_lr_scheduler
(self)
src/transformers/examples/legacy/pytorch-lightning/lightning_base.py:121
↓ 1 callers
Method
get_lr_scheduler
(self)
src/transformers/examples/research_projects/seq2seq-distillation/lightning_base.py:121
↓ 1 callers
Method
get_lr_scheduler
(self)
src/transformers/examples/research_projects/rag-end2end-retriever/lightning_base.py:121
↓ 1 callers
Method
get_lr_scheduler
(self)
src/transformers/examples/research_projects/rag/lightning_base.py:121
↓ 1 callers
Function
get_luke_labels
(outputs, ner_tags, original_entity_spans)
src/transformers/examples/research_projects/luke/run_luke_ner_no_trainer.py:597
↓ 1 callers
Function
get_mapping_for_task
Get mappings defined in `XXXPipelineTests` for the task `task`.
src/transformers/utils/add_pipeline_model_mapping_to_test.py:64
↓ 1 callers
Method
get_masked_index
(self, input_ids: GenericTensor)
src/transformers/src/transformers/pipelines/fill_mask.py:87
↓ 1 callers
Function
get_min_hash
Compute the MinHash of a code snippet.
src/transformers/examples/research_projects/codeparrot/scripts/minhash_deduplication.py:20
↓ 1 callers
Function
get_model
Get the model name from a test method
src/transformers/utils/get_ci_error_statistics.py:158
↓ 1 callers
Method
get_model
(self, mname)
src/transformers/examples/legacy/seq2seq/old_test_fsmt_bleu_score.py:37
↓ 1 callers
Function
get_model_and_tokenizer
(config)
src/bitsandbytes/tests/test_generation.py:24
↓ 1 callers
Method
get_model_class_for_feature
Attempts to retrieve an AutoModel class from a feature name. Args: feature (`str`): The feature required
src/transformers/src/transformers/onnx/features.py:602
↓ 1 callers
Function
get_model_for_pipeline_test
Get the model architecture(s) related to the test class `test_class` for a pipeline `task`.
src/transformers/utils/add_pipeline_model_mapping_to_test.py:86
↓ 1 callers
Method
get_model_from_feature
Attempts to retrieve a model from a model's name and the feature to be enabled. Args: feature (`str`): T
src/transformers/src/transformers/onnx/features.py:679
↓ 1 callers
Function
get_model_list_for_task
Return the list of models supporting a given task. Args: task_guide (`str`): The name of the task guide to check. Returns:
src/transformers/utils/check_task_guides.py:112
↓ 1 callers
Function
get_model_param_count
Calculate model's total param count. If trainable_only is True then count only those requiring grads
src/transformers/src/transformers/trainer_pt_utils.py:1046
↓ 1 callers
Function
get_model_table_from_auto_modules
Generates an up-to-date model table from the content of the auto modules.
src/transformers/utils/check_table.py:176
↓ 1 callers
Function
get_model_test_files
Get the model test files. Returns: `List[str]`: The list of test files. The returned files will NOT contain the `tests` (i.e. `PATH_
src/transformers/utils/check_repo.py:485
↓ 1 callers
Function
get_modified_python_files
Return a list of python files that have been modified between: - the current head and the main branch if `diff_with_last_commit=False` (defa
src/transformers/utils/tests_fetcher.py:417
↓ 1 callers
Function
get_module_class_from_name
Gets a class from a module by its name. Args: module (`torch.nn.Module`): The module to get the class from. name (`str`): Th
src/transformers/src/transformers/trainer_pt_utils.py:1079
↓ 1 callers
Function
get_module_path
Return the module path of a model test file.
src/transformers/utils/get_test_info.py:31
↓ 1 callers
Function
get_native_library
()
src/bitsandbytes/bitsandbytes/cextension.py:86
↓ 1 callers
Function
get_new_doctest_files
Get the list of files that were removed from "utils/not_doctested.txt", between `base_commit` and `branching_commit`. Returns: `
src/transformers/utils/tests_fetcher.py:516
↓ 1 callers
Function
get_new_path
(suffix="")
src/transformers/tests/tools/test_agent_types.py:36
↓ 1 callers
Method
get_num_inchannels
(self)
src/modeling/bert/hrnet.py:239
↓ 1 callers
Method
get_num_inchannels
(self)
src/modeling/hrnet/hrnet_cls_net_gridfeat.py:228
↓ 1 callers
Method
get_num_inchannels
(self)
src/modeling/hrnet/hrnet_cls_net.py:228
↓ 1 callers
Function
get_obj_from_str
(string, reload=False)
src/transformers/examples/research_projects/vqgan-clip/loaders.py:39
↓ 1 callers
Function
get_original_command
Return the original command line string that can be replayed nicely and wrapped for 80 char width. Args: max_width (`int`, `optional
src/transformers/scripts/benchmark/trainer-benchmark.py:145
↓ 1 callers
Method
get_outliers
(self, weight)
src/bitsandbytes/bitsandbytes/utils.py:67
↓ 1 callers
Function
get_parameter_device
(parameter: Union[nn.Module, GenerationMixin, "ModuleUtilsMixin"])
src/transformers/src/transformers/modeling_utils.py:172
↓ 1 callers
Function
get_pipeline_model_mapping
Get `pipeline_model_mapping` for `test_class`.
src/transformers/utils/add_pipeline_model_mapping_to_test.py:107
↓ 1 callers
Function
get_pipeline_model_mapping_string
Get `pipeline_model_mapping` for `test_class` as a string (to be added to the test file). This will be a 1-line string. After this is added to a
src/transformers/utils/add_pipeline_model_mapping_to_test.py:115
↓ 1 callers
Function
get_polynomial_decay_schedule_with_warmup
Create a schedule with a learning rate that decreases as a polynomial decay from the initial lr set in the optimizer to end lr defined by *lr
src/transformers/src/transformers/optimization.py:239
↓ 1 callers
Function
get_posed_mesh
(betas, pose, transl, debug=False)
src/tools/graphi_inference_damon.py:152
↓ 1 callers
Function
get_potentially_lib_path_containing_env_vars
()
src/bitsandbytes/bitsandbytes/diagnostics/cuda.py:79
↓ 1 callers
Function
get_premise_hypothesis_pairs
(examples, class_names, hypothesis_template)
src/transformers/examples/research_projects/zero-shot-distillation/distill_classifier.py:141
↓ 1 callers
Function
get_preprocessor
Gets a preprocessor (tokenizer, feature extractor or processor) that is available for `model_name`. Args: model_name (`str`): Name o
src/transformers/src/transformers/onnx/utils.py:71
↓ 1 callers
Function
get_raw_scores
Computes the exact and f1 scores from the examples and the model predictions
src/transformers/src/transformers/data/metrics/squad_metrics.py:83
↓ 1 callers
Function
get_relative_import_files
Get the list of all files that are needed for a given module. Note that this function recurses through the relative imports (if a imports b a
src/transformers/src/transformers/dynamic_module_utils.py:102
↓ 1 callers
Function
get_remote_tools
(organization="huggingface-tools")
src/transformers/src/transformers/tools/agents.py:77
↓ 1 callers
Method
get_reply_blocks
(self, job_name, job_link, failures, text)
src/transformers/utils/notification_service_doc_tests.py:225
↓ 1 callers
Function
get_repo_type
(repo_id, repo_type=None, **hub_kwargs)
src/transformers/src/transformers/tools/base.py:55
↓ 1 callers
Function
get_reporting_integration_callbacks
(report_to)
src/transformers/src/transformers/integrations/integration_utils.py:1730
↓ 1 callers
Function
get_results
(output_dir)
src/transformers/examples/pytorch/old_test_xla_examples.py:32
↓ 1 callers
Function
get_runner_status
(target_runners, token)
src/transformers/utils/check_self_hosted_runner.py:6
↓ 1 callers
Function
get_scheduler
(*args, **kwargs)
src/transformers/src/transformers/utils/dummy_pt_objects.py:9092
↓ 1 callers
Function
get_serialized_examples
(tokenized_data)
src/transformers/examples/tensorflow/language-modeling-tpu/prepare_tfrecord_shards.py:91
↓ 1 callers
Function
get_some_linear_layer
(model)
src/transformers/tests/quantization/bnb/test_4bit.py:42
↓ 1 callers
Method
get_special_tokens_mask
Retrieves sequence ids from a token list that has no special tokens added. This method is called when adding special tokens using the
src/transformers/src/transformers/tokenization_utils_base.py:3766
↓ 1 callers
Function
get_strided_contexts_and_ans
(example, tokenizer, doc_stride=2048, max_length=4096, assertion=True)
src/transformers/examples/research_projects/jax-projects/big_bird/prepare_natural_questions.py:137
↓ 1 callers
Method
get_supported_features_for_model_type
Tries to retrieve the feature -> OnnxConfig constructor map from the model type. Args: model_type (`str`):
src/transformers/src/transformers/onnx/features.py:557
↓ 1 callers
Method
get_target_ids
(self, targets, top_k=None)
src/transformers/src/transformers/pipelines/fill_mask.py:186
↓ 1 callers
Method
get_task_cmd
(self, task, stage)
src/transformers/tests/deepspeed/test_model_zoo.py:330
↓ 1 callers
Function
get_tasks
(task_names)
src/transformers/utils/download_glue_data.py:116
↓ 1 callers
Function
get_teacher_predictions
Gets predictions by the same method as the zero-shot pipeline but with DataParallel & more efficient batching
src/transformers/examples/research_projects/zero-shot-distillation/distill_classifier.py:159
↓ 1 callers
Function
get_tenet_texture
(mode='smplpix')
src/modeling/bert/diff_renderer.py:22
↓ 1 callers
Function
get_test_dims
(min: int, max: int, *, n: int)
src/bitsandbytes/tests/helpers.py:30
↓ 1 callers
Method
get_test_examples
See base class.
src/transformers/src/transformers/data/processors/glue.py:441
↓ 1 callers
Method
get_test_pipeline
(self, model, tokenizer, processor)
src/transformers/tests/pipelines/test_pipelines_fill_mask.py:245
↓ 1 callers
Method
get_test_tfdataset
Returns a test [`~tf.data.Dataset`]. Args: test_dataset ([`~tf.data.Dataset`]): The dataset to use. The
src/transformers/src/transformers/trainer_tf.py:206
↓ 1 callers
Function
get_tester_classes
Get all classes in a model test file whose names ends with `ModelTester`.
src/transformers/utils/get_test_info.py:61
↓ 1 callers
Function
get_tfds
( train_file: str, eval_file: str, test_file: str, tokenizer: PreTrainedTokenizer, label_c
src/transformers/examples/legacy/text-classification/run_tf_text_classification.py:46
↓ 1 callers
Function
get_theoretical_tools
(agent_answer, theoretical_answer, code_answer)
src/transformers/src/transformers/tools/evaluate_agent.py:400
↓ 1 callers
Function
get_timestamp
()
src/transformers/examples/research_projects/vqgan-clip/utils.py:32
↓ 1 callers
Function
get_tiny_model_names_from_repo
()
src/transformers/utils/update_tiny_models.py:65
↓ 1 callers
Function
get_token_id_from_tokenizer
Use `tokenizer` to get the values of `bos_token_id`, `eos_token_ids`, etc. The argument `token_id_name` should be a string ending with `_token_id
src/transformers/utils/create_dummy_models.py:982
↓ 1 callers
Method
get_tokenizer
(self, mname)
src/transformers/examples/legacy/seq2seq/old_test_fsmt_bleu_score.py:34
↓ 1 callers
Function
get_tpu_sampler
(dataset: torch.utils.data.Dataset, batch_size: int)
src/transformers/src/transformers/trainer_pt_utils.py:341
↓ 1 callers
Method
get_train_tfdataset
Returns the training [`~tf.data.Dataset`]. Subclass and override this method if you want to inject some custom behavior.
src/transformers/src/transformers/trainer_tf.py:149
↓ 1 callers
Function
get_transform
Generate transformation matrix.
src/utils/image_ops.py:59
↓ 1 callers
Function
get_transform_func
(dtype, orderA, orderOut, transpose=False)
src/bitsandbytes/bitsandbytes/functional.py:471
↓ 1 callers
Function
get_transformers_submodules
Returns the list of Transformers submodules.
src/transformers/utils/check_inits.py:301
↓ 1 callers
Method
get_unconditional_logits
(self, input_ids)
src/transformers/src/transformers/generation/logits_process.py:1736
↓ 1 callers
Function
get_user_input
Ask the user for the necessary inputs to add the new model.
src/transformers/src/transformers/commands/add_new_model_like.py:1617
↓ 1 callers
Function
get_versions
()
src/transformers/scripts/benchmark/trainer-benchmark.py:282
↓ 1 callers
Function
git_log
Log commit info.
src/transformers/examples/research_projects/distillation/utils.py:36
↓ 1 callers
Function
glue_eval_data_collator
Returns batches of size `batch_size` from `eval dataset`. Sharding handled by `pad_shard_unpad` in the eval loop.
src/transformers/examples/flax/text-classification/run_flax_glue.py:318
↓ 1 callers
Function
glue_train_data_collator
Returns shuffled batches of size `batch_size` from truncated `train dataset`, sharded over all local devices.
src/transformers/examples/flax/text-classification/run_flax_glue.py:303
↓ 1 callers
Method
gradient_checkpointing_disable
Deactivates gradient checkpointing for the current model. Note that in other frameworks this feature can be referred to as "activati
src/transformers/src/transformers/modeling_utils.py:1928
↓ 1 callers
Method
greedy_search
r""" Generates sequences for models with a language modeling head using greedy decoding. Parameters: input_ids (`tf.Tenso
src/transformers/src/transformers/generation/tf_utils.py:1527
↓ 1 callers
Method
greedy_search
( self, input_ids, encoder_output, attention_mask, max_length, pad_token_id: int, eos_token_id: int
src/transformers/examples/research_projects/onnx/summarization/bart_onnx/generation_onnx.py:257
↓ 1 callers
Method
grid_anchors
(self, grid_sizes)
src/transformers/examples/research_projects/visual_bert/modeling_frcnn.py:1400
↓ 1 callers
Method
grid_anchors
(self, grid_sizes)
src/transformers/examples/research_projects/lxmert/modeling_frcnn.py:1400
↓ 1 callers
Method
group_entities
Find and group together the adjacent tokens with the same entity predicted. Args: entities (`dict`): The entities predic
src/transformers/src/transformers/pipelines/token_classification.py:533
↓ 1 callers
Function
group_texts
(examples)
src/transformers/examples/research_projects/jax-projects/dataset-streaming/run_mlm_flax_stream.py:298
↓ 1 callers
Function
handle_test_results
(test_results)
src/transformers/utils/notification_service_doc_tests.py:31
← previous
next →
2,701–2,800 of 11,352, ranked by callers