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
↓ 2 callers
Function
find_duplicates
(seq)
src/transformers/utils/check_inits.py:251
↓ 2 callers
Function
find_outlier_dims
(weight, reduction_dim=0, zscore=4.0, topk=None, rdm=False)
src/bitsandbytes/bitsandbytes/utils.py:84
↓ 2 callers
Method
find_pt_tf_differences
Compares the TensorFlow and PyTorch outputs, returning a dictionary with all tensor differences.
src/transformers/src/transformers/commands/pt_to_tf.py:140
↓ 2 callers
Function
finetune
Fine-tuning a pre-trained model on a downstream task. Args: accelerator: An instance of an accelerator for distributed training (on
src/transformers/examples/research_projects/self-training-text-classification/finetuning.py:524
↓ 2 callers
Function
flip_img
Flip rgb images or masks. channels come last, e.g. (256,256,3).
src/utils/image_ops.py:173
↓ 2 callers
Function
flip_pose
Flip pose. The flipping is based on SMPL parameters.
src/utils/image_ops.py:187
↓ 2 callers
Function
fn
(examples)
src/transformers/examples/tensorflow/language-modeling-tpu/prepare_tfrecord_shards.py:85
↓ 2 callers
Function
format_log
(loss, split)
src/transformers/examples/legacy/run_transfo_xl.py:129
↓ 2 callers
Method
forward
(self, model_inputs, **forward_params)
src/transformers/src/transformers/pipelines/base.py:1037
↓ 2 callers
Method
from_batch
(self, translation_batch)
src/transformers/examples/research_projects/bertabs/modeling_bertabs.py:960
↓ 2 callers
Method
from_dict_optimum
Get compatible class with optimum gptq config dict
src/transformers/src/transformers/utils/quantization_config.py:513
↓ 2 callers
Function
fuse3
(qq, qk, qv)
src/transformers/examples/research_projects/quantization-qdqbert/quant_trainer.py:156
↓ 2 callers
Function
fwd
(qs, ks, vs)
src/transformers/examples/research_projects/performer/modeling_flax_performer_utils.py:404
↓ 2 callers
Function
gelu
(x)
src/transformers/examples/research_projects/bertabs/modeling_bertabs.py:658
↓ 2 callers
Function
generate_batch_splits
(samples_idx: np.ndarray, batch_size: int)
src/transformers/examples/research_projects/performer/run_mlm_performer.py:436
↓ 2 callers
Function
generate_batch_splits
(samples_idx: np.ndarray, batch_size: int)
src/transformers/examples/research_projects/jax-projects/wav2vec2/run_wav2vec2_pretrain_flax.py:240
↓ 2 callers
Function
generate_datasets
Generate objective set and training set Args: context_len: The maximum total input sequence length after tokenization. Sequences lon
src/transformers/examples/research_projects/information-gain-filtration/igf/igf.py:222
↓ 2 callers
Function
generate_identified_filename
Append a string-identifier at the end (before the extension, if any) to the provided filepath Args: filename: pathlib.Path The actua
src/transformers/src/transformers/convert_graph_to_onnx.py:92
↓ 2 callers
Function
generate_past_key_values
(model, batch_size, seq_len)
src/transformers/examples/pytorch/text-generation/run_generation.py:192
↓ 2 callers
Function
generate_summaries_or_translations
Save model.generate results to <out_file>, and return how long it took.
src/transformers/examples/research_projects/seq2seq-distillation/run_eval.py:25
↓ 2 callers
Function
generate_text_pplm
( model, tokenizer, context=None, past=None, device="cuda", perturb=True, bow_indi
src/transformers/examples/research_projects/pplm/run_pplm.py:423
↓ 2 callers
Function
generic_train
( model: BaseTransformer, args: argparse.Namespace, early_stopping_callback=None, logger=True,
src/transformers/examples/legacy/pytorch-lightning/lightning_base.py:341
↓ 2 callers
Method
get4
src/bitsandbytes/include/SIMD.h:412
↓ 2 callers
Method
get5
src/bitsandbytes/include/SIMD.h:413
↓ 2 callers
Method
get6
src/bitsandbytes/include/SIMD.h:414
↓ 2 callers
Method
get7
src/bitsandbytes/include/SIMD.h:415
↓ 2 callers
Function
get_all_model_names
()
src/transformers/utils/update_tiny_models.py:39
↓ 2 callers
Function
get_architectures_from_config_class
Return a tuple of all possible architectures attributed to a configuration class `config_class`. For example, BertConfig -> [BertModel, BertForMa
src/transformers/utils/create_dummy_models.py:192
↓ 2 callers
Function
get_bag_of_words_indices
(bag_of_words_ids_or_paths: List[str], tokenizer)
src/transformers/examples/research_projects/pplm/run_pplm.py:295
↓ 2 callers
Function
get_batched_dataset
(dataset, batch_size, seed=None)
src/transformers/examples/research_projects/jax-projects/big_bird/bigbird_flax.py:132
↓ 2 callers
Function
get_block_sizes
(input_matrix, weight_matrix)
src/bitsandbytes/bitsandbytes/research/autograd/_functions.py:365
↓ 2 callers
Function
get_cached_data_loader
(dataset, batch_size, discriminator, shuffle=False, device="cpu")
src/transformers/examples/research_projects/pplm/run_pplm_discrim_train.py:198
↓ 2 callers
Function
get_cfg_defaults
(pretrained, width=32, downsample=False, use_conv=False)
src/modeling/bert/hrnet.py:566
↓ 2 callers
Method
get_char_lens
(data_file)
src/transformers/examples/legacy/seq2seq/utils.py:163
↓ 2 callers
Method
get_char_lens
(data_file)
src/transformers/examples/research_projects/seq2seq-distillation/utils.py:146
↓ 2 callers
Function
get_class_from_dynamic_module
Extracts a class from a module file, present in the local folder or repository of a model. <Tip warning={true}> Calling this function w
src/transformers/src/transformers/dynamic_module_utils.py:380
↓ 2 callers
Method
get_config
(self)
src/transformers/src/transformers/modeling_tf_utils.py:1156
↓ 2 callers
Function
get_config_class_from_processor_class
Get the config class from a processor class. Some config/model classes use tokenizers/feature_extractors from other models. For example, `GPT-J`
src/transformers/utils/create_dummy_models.py:222
↓ 2 callers
Function
get_cpu_memory
measures current cpu memory usage of a given `process_id` Args: - `process_id`: (`int`) process_id for which to measure
src/transformers/src/transformers/benchmark/benchmark_utils.py:224
↓ 2 callers
Function
get_cuda_specs
()
src/bitsandbytes/bitsandbytes/cuda_specs.py:33
↓ 2 callers
Function
get_cuda_version_tuple
()
src/bitsandbytes/bitsandbytes/cuda_specs.py:22
↓ 2 callers
Function
get_dataset
()
src/transformers/examples/research_projects/codeparrot/scripts/tests/test_deduplicate.py:7
↓ 2 callers
Method
get_dev_examples
See base class.
src/transformers/src/transformers/data/processors/glue.py:437
↓ 2 callers
Function
get_diff_for_doctesting
Get the diff in doc examples between a base commit and one or several commits. Args: repo (`git.Repo`): A git repository
src/transformers/utils/tests_fetcher.py:447
↓ 2 callers
Method
get_dummy_custom_hf_index_pytorch_retriever
(self, init_retrieval: bool, from_disk: bool, port=12345)
src/transformers/examples/research_projects/rag/test_distributed_retriever.py:183
↓ 2 callers
Method
get_dummy_custom_hf_index_ray_retriever
(self, init_retrieval: bool, from_disk: bool)
src/transformers/examples/research_projects/rag/test_distributed_retriever.py:214
↓ 2 callers
Method
get_duplicate_clusters
Export the duplicate clusters. For each cluster, the first element is the base element of the cluster. The base element has an estimat
src/transformers/examples/research_projects/codeparrot/scripts/minhash_deduplication.py:72
↓ 2 callers
Method
get_examples_from_dataset
Creates a list of [`~data.processors.squad.SquadExample`] using a TFDS dataset. Args: dataset: The tfds dataset loaded f
src/transformers/src/transformers/data/processors/squad.py:574
↓ 2 callers
Function
get_final_text
Project the tokenized prediction back to the original text.
src/transformers/src/transformers/data/metrics/squad_metrics.py:255
↓ 2 callers
Function
get_framework
Infer the framework from the test class `test_class`.
src/transformers/utils/add_pipeline_model_mapping_to_test.py:51
↓ 2 callers
Function
get_git_info
()
src/transformers/examples/research_projects/seq2seq-distillation/utils.py:459
↓ 2 callers
Function
get_git_info
()
src/transformers/examples/research_projects/rag-end2end-retriever/utils_rag.py:159
↓ 2 callers
Function
get_git_info
()
src/transformers/examples/research_projects/rag/utils_rag.py:159
↓ 2 callers
Function
get_grad_norm
Compute grad norm given a gradient scale.
src/transformers/examples/pytorch/speech-pretraining/run_wav2vec2_pretraining_no_trainer.py:377
↓ 2 callers
Method
get_hvalue
(self, weight)
src/bitsandbytes/bitsandbytes/utils.py:64
↓ 2 callers
Method
get_inference_context
(self)
src/transformers/src/transformers/pipelines/base.py:1034
↓ 2 callers
Method
get_input_output_texts
(self, tokenizer)
src/transformers/tests/test_tokenization_common.py:226
↓ 2 callers
Function
get_inverse_transform_indices
Compute a permutation of indices that invert the specified (tiled) matrix transformation :param transform_tile: a function that applies forw
src/bitsandbytes/bitsandbytes/autograd/_functions.py:58
↓ 2 callers
Function
get_job_links
Extract job names and their job links in a GitHub Actions workflow run
src/transformers/utils/get_ci_error_statistics.py:13
↓ 2 callers
Function
get_label_list
Get the list of labels from a mutli-label dataset
src/transformers/examples/pytorch/text-classification/run_classification.py:262
↓ 2 callers
Method
get_label_to_output_name_mapping
(self)
src/transformers/src/transformers/modeling_tf_utils.py:1568
↓ 2 callers
Function
get_labels
(y_pred, y_true)
src/transformers/examples/flax/token-classification/run_flax_ner.py:681
↓ 2 callers
Method
get_labels
Gets the list of labels for this data set.
src/transformers/src/transformers/data/processors/utils.py:105
↓ 2 callers
Function
get_layers_to_supervise
Used or the --supervise_forward kwarg
src/transformers/examples/research_projects/seq2seq-distillation/make_student.py:67
↓ 2 callers
Function
get_length_grouped_indices
Return a list of indices so that each slice of `batch_size` consecutive indices correspond to elements of similar lengths. To do this, the in
src/transformers/src/transformers/trainer_pt_utils.py:522
↓ 2 callers
Function
get_lens
(ds)
src/transformers/examples/legacy/seq2seq/save_len_file.py:32
↓ 2 callers
Function
get_major_and_minor_from_version
(full_version)
src/transformers/src/transformers/utils/import_utils.py:560
↓ 2 callers
Function
get_master_port
When using a single gpu launcher emulation (i.e. not deepspeed or python -m torch.distributed) the issue is that once the port is tied it can
src/transformers/tests/fsdp/test_fsdp.py:58
↓ 2 callers
Function
get_matching_parameters
Returns parameters matching regular expression
src/utils/miscellaneous.py:50
↓ 2 callers
Function
get_mmimdb_labels
()
src/transformers/examples/research_projects/mm-imdb/utils_mmimdb.py:107
↓ 2 callers
Function
get_model_classes
Get all model classes that appear in `all_model_classes` attributes in a model test file.
src/transformers/utils/get_test_info.py:94
↓ 2 callers
Function
get_model_list
Extracts the model list from a README. Args: filename (`str`): The name of the README file to check. start_prompt (`str`): T
src/transformers/utils/check_copies.py:434
↓ 2 callers
Function
get_model_tester_from_test_class
Get the model tester class of a model test class.
src/transformers/utils/get_test_info.py:105
↓ 2 callers
Function
get_model_to_test_mapping
Get a mapping from model classes to test classes in `test_file`.
src/transformers/utils/get_test_info.py:157
↓ 2 callers
Function
get_pose_net
(cfg, is_train)
src/modeling/bert/hrnet.py:557
↓ 2 callers
Function
get_processor_types_from_config_class
Return a tuple of processors for `config_class`. We use `tuple` here to include (potentially) both slow & fast tokenizers.
src/transformers/utils/create_dummy_models.py:150
↓ 2 callers
Function
get_relative_imports
Get the list of modules that are relatively imported in a module file. Args: module_file (`str` or `os.PathLike`): The module file t
src/transformers/src/transformers/dynamic_module_utils.py:81
↓ 2 callers
Method
get_reply_blocks
failures: A list with elements of the form {"line": full test name, "trace": error trace}
src/transformers/utils/notification_service.py:586
↓ 2 callers
Function
get_state_dict_dtype
Returns the first found floating dtype in `state_dict` if there is one, otherwise returns the first dtype.
src/transformers/src/transformers/modeling_utils.py:265
↓ 2 callers
Function
get_sub_answers
(answers, begin=0, end=None)
src/transformers/examples/research_projects/jax-projects/big_bird/evaluate.py:13
↓ 2 callers
Function
get_supported_tasks
Returns a list of supported task strings.
src/transformers/src/transformers/pipelines/__init__.py:434
↓ 2 callers
Method
get_tag
(self, entity_name: str)
src/transformers/src/transformers/pipelines/token_classification.py:519
↓ 2 callers
Function
get_test_classes_for_model
Get all [test] classes in `test_file` that have `model_class` in their `all_model_classes`.
src/transformers/utils/get_test_info.py:120
↓ 2 callers
Method
get_test_examples
(self, data_dir)
src/transformers/examples/legacy/multiple_choice/utils_multiple_choice.py:429
↓ 2 callers
Function
get_test_module
Get the module of a model test file.
src/transformers/utils/get_test_info.py:53
↓ 2 callers
Function
get_test_to_tester_mapping
Get a mapping from [test] classes to model tester classes in `test_file`. This uses `get_test_classes` which may return classes that are NOT subc
src/transformers/utils/get_test_info.py:147
↓ 2 callers
Function
get_tester_classes_for_model
Get all model tester classes in `test_file` that are associated to `model_class`.
src/transformers/utils/get_test_info.py:133
↓ 2 callers
Function
get_tile_inds
(format, device)
src/bitsandbytes/bitsandbytes/autograd/_functions.py:237
↓ 2 callers
Function
get_tiny_config
Retrieve a tiny configuration from `config_class` using each model's `ModelTester`. Args: config_class: Subclass of `PreTrainedConfig`.
src/transformers/utils/create_dummy_models.py:376
↓ 2 callers
Function
get_tokens
(s)
src/transformers/src/transformers/data/metrics/squad_metrics.py:57
↓ 2 callers
Function
get_tokens
Tokenize a code snippet.
src/transformers/examples/research_projects/codeparrot/scripts/minhash_deduplication.py:30
↓ 2 callers
Function
get_tool_creation_code
(code, toolbox, remote=False)
src/transformers/src/transformers/tools/agents.py:146
↓ 2 callers
Method
get_train_examples
See base class.
src/transformers/src/transformers/data/processors/glue.py:433
↓ 2 callers
Method
get_valid_tsv
(self)
src/datasets/human_mesh_tsv.py:63
↓ 2 callers
Method
get_valid_tsv
(self)
src/datasets/hand_mesh_tsv.py:63
↓ 2 callers
Function
get_version
Reads the current version in the main __init__.
src/transformers/utils/release.py:149
↓ 2 callers
Function
global_version_update
Update the version in all needed files. Args: version (`str`): The new version to set everywhere. patch (`bool`, *optional*,
src/transformers/utils/release.py:104
↓ 2 callers
Function
glue_convert_examples_to_features
Loads a data file into a list of `InputFeatures` Args: examples: List of `InputExamples` or `tf.data.Dataset` containing the example
src/transformers/src/transformers/data/processors/glue.py:41
↓ 2 callers
Method
gray
(cls, s)
src/transformers/src/transformers/commands/user.py:75
↓ 2 callers
Method
group_sub_entities
Group together the adjacent tokens with the same entity predicted. Args: entities (`dict`): The entities predicted by th
src/transformers/src/transformers/pipelines/token_classification.py:498
← previous
next →
1,401–1,500 of 11,352, ranked by callers