MCPcopy Create free account

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

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

↓ 2 callersFunctionprod
(iterable)
src/bitsandbytes/bitsandbytes/autograd/_functions.py:14
↓ 2 callersMethodpython_one_liner_max_rss
Runs the passed python one liner (just the code) and returns how much max cpu memory was used to run the program. Args:
src/transformers/src/transformers/testing_utils.py:1552
↓ 2 callersFunctionquant
(x)
src/bitsandbytes/tests/test_functional.py:234
↓ 2 callersFunctionquantize_4bit
Quantize tensor A in blocks of 4-bit values. Quantizes tensor A by dividing it into blocks which are independently quantized to FP4. Pa
src/bitsandbytes/bitsandbytes/functional.py:1124
↓ 2 callersFunctionquantize_columnwise_and_transpose
(x: torch.Tensor)
src/bitsandbytes/bitsandbytes/triton/quantize_columnwise_and_transpose.py:9
↓ 2 callersFunctionquantize_global_transpose
(input)
src/bitsandbytes/bitsandbytes/triton/quantize_global.py:7
↓ 2 callersFunctionrandom_attention_mask
(shape, rng=None, name=None)
src/transformers/tests/test_modeling_common.py:3343
↓ 2 callersFunctionrandom_input_ids
(batch_size: int, sequence_length: int, vocab_size: int)
src/transformers/src/transformers/benchmark/benchmark_tf.py:74
↓ 2 callersMethodray_hyperparameter_search
(self)
src/transformers/tests/trainer/test_trainer.py:2536
↓ 2 callersMethodread_examples_from_file
(data_dir, mode: Union[Split, str])
src/transformers/examples/legacy/token-classification/utils_ner.py:71
↓ 2 callersFunctionread_init
Read the init and extract backend-specific objects. Returns: Dict[str, List[str]]: A dictionary mapping backend name to the list of
src/transformers/utils/check_dummies.py:94
↓ 2 callersFunctionread_lines
(path)
src/transformers/examples/research_projects/zero-shot-distillation/distill_classifier.py:131
↓ 2 callersFunctionreadme
Read text out of a file in the same directory as setup.py.
setup.py:20
↓ 2 callersMethodremaining
Returns the number of remaining steps of `advance()` in order to complete this constraint.
src/transformers/src/transformers/generation/beam_constraints.py:105
↓ 2 callersMethodremove_callback
Remove a callback from the current list of [`~transformers.TrainerCallback`]. Args: callback (`type` or [`~transformers.T
src/transformers/src/transformers/trainer.py:678
↓ 2 callersFunctionrename_key_and_reshape_tensor
Rename PT weight names to corresponding Flax weight names and reshape tensor if necessary
src/transformers/src/transformers/modeling_flax_pytorch_utils.py:81
↓ 2 callersFunctionrender_image
Render the given pyrender scene and return the image. Can also overlay the mesh on an image.
src/tools/visualize.py:14
↓ 2 callersFunctionreplace_with_bnb_linear
A helper function to replace all `torch.nn.Linear` modules by `bnb.nn.Linear8bit` modules from the `bitsandbytes` library. This will enable r
src/transformers/src/transformers/integrations/bitsandbytes.py:184
↓ 2 callersMethodreset
(self)
src/transformers/src/transformers/generation/beam_constraints.py:329
↓ 2 callersMethodreset_grads
(self)
src/bitsandbytes/bitsandbytes/autograd/_functions.py:268
↓ 2 callersMethodreset_stats
(self)
src/transformers/examples/research_projects/bert-loses-patience/pabee/modeling_pabee_bert.py:86
↓ 2 callersFunctionresolve_tools
(code, toolbox, remote=False, cached_tools=None)
src/transformers/src/transformers/tools/agents.py:127
↓ 2 callersMethodrestore_ops
(self)
src/transformers/src/transformers/onnx/config.py:419
↓ 2 callersFunctionretrieve_artifact
(artifact_path: str, gpu: Optional[str])
src/transformers/utils/notification_service.py:678
↓ 2 callersMethodreverse_bettertransformer
Reverts the transformation from [`~PreTrainedModel.to_bettertransformer`] so that the original modeling is used, for example in order
src/transformers/src/transformers/modeling_utils.py:4122
↓ 2 callersFunctionrgb_to_id
Converts RGB color to unique ID.
src/transformers/src/transformers/image_transforms.py:620
↓ 2 callersFunctionrm_path
(path)
src/bitsandbytes/tests/test_optim.py:34
↓ 2 callersFunctionrot_aa
Rotate axis angle parameters.
src/utils/image_ops.py:160
↓ 2 callersMethodround_batch
For float16 only. Sub-sample sentences in a batch, and add padding, so that each dimension is a multiple of 8. Input:
src/transformers/examples/research_projects/distillation/distiller.py:282
↓ 2 callersMethodrun_cmd_and_get_logs
(self, use_accelerate, sharding_strategy, launcher, script, args, output_dir)
src/transformers/tests/fsdp/test_fsdp.py:222
↓ 2 callersMethodrun_eval_tester
(self, model)
src/transformers/examples/legacy/seq2seq/old_test_seq2seq_examples.py:48
↓ 2 callersMethodrun_large_test
(self, unmasker)
src/transformers/tests/pipelines/test_pipelines_fill_mask.py:181
↓ 2 callersMethodrun_model
Computes the loss of the given features and labels pair. Subclass and override this method if you want to inject some custom behavio
src/transformers/src/transformers/trainer_tf.py:734
↓ 2 callersMethodrun_pipeline_test
(self, fill_masker, examples)
src/transformers/tests/pipelines/test_pipelines_fill_mask.py:255
↓ 2 callersFunctionrun_search
Run parametric search over the desired hparam space with help of ``run_eval.py``. All the arguments except ``--search`` are passed to ``ru
src/transformers/examples/legacy/seq2seq/run_eval_search.py:44
↓ 2 callersFunctionrun_test_in_subprocess
To run a test in a subprocess. In particular, this can avoid (GPU) memory issue. Args: test_case (`unittest.TestCase`):
src/transformers/src/transformers/testing_utils.py:2059
↓ 2 callersMethodrun_trainer
( self, stage: str, dtype: str, model_name: str, eval_steps: int = 10,
src/transformers/tests/deepspeed/test_deepspeed.py:1038
↓ 2 callersMethodsave
(self, saveas=None)
src/transformers/examples/research_projects/visual_bert/visualizing_image.py:194
↓ 2 callersMethodsave_binary
Save the provided data object as a pickle-formatted binary data on the disk. Args: data (`dict` or list of `dict`): The
src/transformers/src/transformers/pipelines/base.py:494
↓ 2 callersFunctionsave_ckpt
save checkpoints and push to Hugging Face Hub if specified
src/transformers/examples/flax/image-captioning/run_image_captioning_flax.py:1055
↓ 2 callersFunctionsave_len_file
Save max(src_len, tgt_len) for each example to allow dynamic batching.
src/transformers/examples/legacy/seq2seq/save_len_file.py:24
↓ 2 callersMethodsave_model
Will save the model, so you can reload it using `from_pretrained()`.
src/transformers/src/transformers/trainer_tf.py:790
↓ 2 callersMethodscore
Rescores a prediction based on penalty functions
src/transformers/examples/research_projects/bertabs/modeling_bertabs.py:716
↓ 2 callersFunctionselect_starts_ends
Takes the raw output of any `ModelForQuestionAnswering` and first normalizes its outputs and then uses `decode_spans()` to generate probabili
src/transformers/src/transformers/pipelines/question_answering.py:96
↓ 2 callersMethodset
src/bitsandbytes/include/Algo-Direct-Common.h:39
↓ 2 callersMethodset_bias
Set all the bias in the LM head. Args: value (`Dict[tf.Variable]`): All the new bias attached to an LM h
src/transformers/src/transformers/modeling_tf_utils.py:1952
↓ 2 callersMethodset_epoch
(self, epoch)
src/transformers/examples/research_projects/seq2seq-distillation/utils.py:410
↓ 2 callersFunctionset_extra_model_params
(extra_params, hparams, config)
src/transformers/examples/research_projects/rag-end2end-retriever/utils_rag.py:231
↓ 2 callersFunctionset_extra_model_params
(extra_params, hparams, config)
src/transformers/examples/research_projects/rag/utils_rag.py:231
↓ 2 callersMethodset_input_embeddings
Set model's input embeddings Args: value (`tf.Variable`): The new weights mapping hidden states to vocab
src/transformers/src/transformers/modeling_tf_utils.py:1855
↓ 2 callersMethodset_patience
(self, patience)
src/transformers/examples/research_projects/bert-loses-patience/pabee/modeling_pabee_bert.py:83
↓ 2 callersFunctionset_quantizer
Set attributes for mod.quantizer.
src/transformers/examples/research_projects/quantization-qdqbert/quant_trainer.py:265
↓ 2 callersMethodset_regression_threshold
(self, threshold)
src/transformers/examples/research_projects/bert-loses-patience/pabee/modeling_pabee_bert.py:80
↓ 2 callersFunctionset_seed
(args)
src/transformers/examples/research_projects/deebert/run_glue_deebert.py:51
↓ 2 callersFunctionset_seed
(args)
src/transformers/examples/research_projects/distillation/run_squad_w_distillation.py:81
↓ 2 callersFunctionset_seed
(args)
src/transformers/examples/research_projects/movement-pruning/masked_run_glue.py:61
↓ 2 callersFunctionset_seed
(args)
src/transformers/examples/research_projects/movement-pruning/masked_run_squad.py:65
↓ 2 callersFunctionsetup
()
src/bitsandbytes/tests/test_functional.py:91
↓ 2 callersMethodsetup
Setup the optional Comet.ml integration. Environment: - **COMET_MODE** (`str`, *optional*, defaults to `ONLINE`):
src/transformers/src/transformers/integrations/integration_utils.py:846
↓ 2 callersMethodsetup
Setup the optional MLflow integration. Environment: - **HF_MLFLOW_LOG_ARTIFACTS** (`str`, *optional*): Whether t
src/transformers/src/transformers/integrations/integration_utils.py:954
↓ 2 callersMethodsetup
(self, args, state, model, tokenizer, **kwargs)
src/transformers/src/transformers/integrations/integration_utils.py:1457
↓ 2 callersMethodsetup
Setup the optional DVCLive integration. To customize this callback beyond the environment variables below, see [here](https://dvc.org
src/transformers/src/transformers/integrations/integration_utils.py:1650
↓ 2 callersMethodshape
projection
src/transformers/examples/research_projects/bertabs/modeling_bertabs.py:481
↓ 2 callersFunctionsmp_gather
(tensor)
src/transformers/src/transformers/trainer_pt_utils.py:1122
↓ 2 callersFunctionsmp_nested_concat
(tensor)
src/transformers/src/transformers/trainer_pt_utils.py:1135
↓ 2 callersFunctionsoftmax
(outputs)
src/transformers/utils/test_module/custom_pipeline.py:6
↓ 2 callersFunctionsortish_sampler_indices
Go through the text data by order of src length with a bit of randomness. From fastai repo.
src/transformers/examples/legacy/seq2seq/utils.py:358
↓ 2 callersFunctionsortish_sampler_indices
Go through the text data by order of src length with a bit of randomness. From fastai repo.
src/transformers/examples/research_projects/seq2seq-distillation/utils.py:340
↓ 2 callersFunctionsplit_code_in_indented_blocks
Split some code into its indented blocks, starting at a given level. Args: code (`str`): The code to split. indent_level (`s
src/transformers/utils/custom_init_isort.py:64
↓ 2 callersFunctionsplit_s3_path
Split a full s3 path into the bucket name and path.
src/modeling/bert/file_utils.py:123
↓ 2 callersFunctionstart_memory_tracing
Setup line-by-line tracing to record rss mem (RAM) at each line of a module or sub-module. See `./benchmark.py` for usage examples. Current m
src/transformers/src/transformers/benchmark/benchmark_utils.py:323
↓ 2 callersFunctionstop_memory_tracing
Stop memory tracing cleanly and return a summary of the memory trace if a trace is given. Args: `memory_trace` (optional output of s
src/transformers/src/transformers/benchmark/benchmark_utils.py:475
↓ 2 callersFunctionstringify_default
Returns the string representation of a default value, as used in docstring: numbers are left as is, all other objects are in backtiks. A
src/transformers/utils/check_docstrings.py:820
↓ 2 callersFunctionsymbolic_trace
Performs symbolic tracing on the model. Args: model ([`PretrainedModel`]): The model to trace. input_names (`Lis
src/transformers/src/transformers/utils/fx.py:1210
↓ 2 callersFunctiontee
(line, sink, pipe, label="")
src/transformers/src/transformers/testing_utils.py:1847
↓ 2 callersFunctiontest_batch
(model, smpl, mesh_sampler, batch, optimizer, loss_fn, dev='cuda')
src/tools/train_graphi_contact_behave_SIMU.py:308
↓ 2 callersFunctiontest_batch
(model, smpl, mesh_sampler, batch, optimizer, loss_fn, dev='cuda')
src/tools/train_graphi_contact_rich.py:298
↓ 2 callersFunctiontest_batch
(model, smpl, mesh_sampler, batch, optimizer, loss_fn, dev='cuda')
src/tools/train_graphi_contact_rich_SIMU.py:312
↓ 2 callersFunctiontest_batch
(model, smpl, mesh_sampler, batch, optimizer, loss_fn, dev='cuda', n_infers=3)
src/tools/train_graphi_contact_damon_SIMU.py:329
↓ 2 callersFunctiontest_batch
(model, smpl, mesh_sampler, batch, optimizer, loss_fn, dev='cuda')
src/tools/train_graphi_contact_behave.py:292
↓ 2 callersFunctiontest_batch
(model, smpl, mesh_sampler, batch, optimizer, loss_fn, dev='cuda')
src/tools/train_graphi_contact_damon.py:308
↓ 2 callersFunctiontest_string
(slow, fast, text)
src/transformers/scripts/check_tokenizers.py:114
↓ 2 callersMethodtf_mask_tokens
Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original. Set 'mask_labels' means we use
src/transformers/src/transformers/data/data_collator.py:1033
↓ 2 callersMethodtie_weights
Make sure we are sharing the input and output embeddings. Export to TorchScript can't handle parameter sharing so we are cloning them ins
src/modeling/bert/modeling_bert.py:845
↓ 2 callersFunctiontile
Tiles x on dimension dim count times.
src/transformers/examples/research_projects/bertabs/modeling_bertabs.py:986
↓ 2 callersMethodto_4d
Converts 2D attention mask to 4D attention mask by expanding mask to (bsz, head_dim=1, query_length, key_value_length) shape and by a
src/transformers/src/transformers/modeling_attn_mask_utils.py:97
↓ 2 callersMethodto_bettertransformer
Converts the model to use [PyTorch's native attention implementation](https://pytorch.org/docs/stable/generated/torch.nn.MultiheadAtt
src/transformers/src/transformers/modeling_utils.py:4094
↓ 2 callersMethodto_dict
Serializes this instance to a Python dictionary. Returns: `Dict[str, Any]`: Dictionary of all the attributes that make up this co
src/transformers/src/transformers/utils/quantization_config.py:121
↓ 2 callersMethodto_dict
Serializes this instance to a Python dictionary. Returns: `Dict[str, Any]`: Dictionary of all the attributes that make up this co
src/transformers/src/transformers/utils/quantization_config.py:286
↓ 2 callersMethodto_dict
Serializes this instance to a Python dictionary. Override the default :meth:`~transformers.PretrainedConfig.to_dict`. Return
src/transformers/examples/research_projects/jax-projects/hybrid_clip/configuration_hybrid_clip.py:100
↓ 2 callersMethodto_dict
Serializes this instance while replace `Enum` by their values (for JSON serialization support). It obfuscates the token values by rem
src/transformers/examples/flax/token-classification/run_flax_ner.py:114
↓ 2 callersMethodto_dict_optimum
Get compatible dict for optimum gptq config
src/transformers/src/transformers/utils/quantization_config.py:503
↓ 2 callersMethodto_fp32
r""" Cast the floating-point `parmas` to `jax.numpy.float32`. This method can be used to explicitly convert the model parameters to fp
src/transformers/src/transformers/modeling_flax_utils.py:368
↓ 2 callersMethodto_json_string
Serializes this instance to a JSON string.
src/modeling/bert/modeling_utils.py:209
↓ 2 callersMethodto_json_string
Serializes this instance to a JSON string. Returns: `str`: String containing all the attributes that make up this featur
src/transformers/src/transformers/image_processing_utils.py:459
↓ 2 callersMethodto_json_string
Serializes this instance to a JSON string. Returns: `str`: String containing all the attributes that make up this featur
src/transformers/src/transformers/feature_extraction_utils.py:617
↓ 2 callersMethodto_json_string
Serializes this instance to a JSON string. Args: use_diff (`bool`, *optional*, defaults to `True`): If s
src/transformers/src/transformers/configuration_utils.py:911
↓ 2 callersMethodto_json_string
Serializes this instance to a JSON string.
src/transformers/src/transformers/data/processors/utils.py:49
↓ 2 callersFunctionto_py_obj
Convert a TensorFlow tensor, PyTorch tensor, Numpy array or python list to a python list.
src/transformers/src/transformers/utils/generic.py:232
↓ 2 callersMethodto_raw
Returns the "raw" version of that object. It is a `torch.Tensor` object.
src/transformers/src/transformers/tools/agent_types.py:186
← previousnext →1,701–1,800 of 11,352, ranked by callers