MCPcopy Create free account

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

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

↓ 5 callersFunctionprod
(iterable)
src/bitsandbytes/bitsandbytes/functional.py:21
↓ 5 callersFunctionprune_linear_layer
Prune a linear layer to keep only entries in index. Used to remove heads. Args: layer (`torch.nn.Linear`): The layer to prune.
src/transformers/src/transformers/pytorch_utils.py:54
↓ 5 callersMethodregister_forward_hook
(self)
src/transformers/src/transformers/debug_utils.py:239
↓ 5 callersFunctionreissue_pt_warnings
(caught_warnings)
src/transformers/src/transformers/trainer_pt_utils.py:234
↓ 5 callersMethodreplicate
(self)
src/transformers/examples/research_projects/jax-projects/hybrid_clip/run_hybrid_clip.py:267
↓ 5 callersMethodreset
Resets the state of this constraint to its initialization. We would call this in cases where the fulfillment of a constraint is abrup
src/transformers/src/transformers/generation/beam_constraints.py:95
↓ 5 callersMethodsave_checkpoint
Save the current state. Only by the master process.
src/transformers/examples/research_projects/distillation/distiller.py:591
↓ 5 callersFunctionsave_json
(content, path, indent=4, **json_dump_kwargs)
src/transformers/examples/research_projects/seq2seq-distillation/utils.py:449
↓ 5 callersMethodsave_to_json
Save the content of this instance in JSON format inside `json_path`.
src/transformers/src/transformers/trainer_callback.py:107
↓ 5 callersMethodsetUp
(self)
src/transformers/tests/quantization/bnb/test_mixed_int8.py:107
↓ 5 callersMethodset_epoch
(self, epoch)
src/transformers/src/transformers/trainer_pt_utils.py:797
↓ 5 callersFunctionset_quantizer_by_name
Set quantizer attributes for layers where name contains a substring in names.
src/transformers/examples/research_projects/quantization-qdqbert/quant_trainer.py:289
↓ 5 callersFunctionset_seed
(args)
src/transformers/examples/legacy/question-answering/run_squad.py:64
↓ 5 callersMethodshortname
(cls, params)
src/transformers/src/transformers/utils/hp_naming.py:114
↓ 5 callersFunctionsquad_convert_examples_to_features
Converts a list of examples into a list of features that can be directly given as input to a model. It is model-dependant and takes advantage
src/transformers/src/transformers/data/processors/squad.py:316
↓ 5 callersMethodtf_bernoulli
(shape, probability)
src/transformers/src/transformers/data/data_collator.py:653
↓ 5 callersMethodto_fp16
r""" Cast the floating-point `parmas` to `jax.numpy.float16`. This returns a new `params` tree and does not cast the `params` in place
src/transformers/src/transformers/modeling_flax_utils.py:395
↓ 5 callersMethodto_json_string
Serializes this instance to a JSON string. Args: use_diff (`bool`, *optional*, defaults to `True`): If s
src/transformers/src/transformers/generation/configuration_utils.py:862
↓ 5 callersMethodtraining_step
Perform a training step on a batch of inputs. Subclass and override to inject custom behavior. Args: model (`nn
src/transformers/src/transformers/trainer.py:2675
↓ 5 callersMethodupdate_state
(self, new_input, previous_layer_inputs)
src/transformers/examples/research_projects/bertabs/modeling_bertabs.py:625
↓ 5 callersMethodvalidate
Validates the values of the attributes of the [`GenerationConfig`] instance. Raises exceptions in the presence of parameterization th
src/transformers/src/transformers/generation/configuration_utils.py:352
↓ 4 callersMethod__getstate__
(self)
src/transformers/src/transformers/tokenization_utils_base.py:101
↓ 4 callersFunction__init__
(self, config)
src/transformers/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/modeling_{{cookiecutter.lowercase_modelname}}.py:144
↓ 4 callersMethod__init__
(self, use_gelu_python: bool = False)
src/transformers/src/transformers/activations.py:67
↓ 4 callersMethod__init__
(self, chat_prompt_template=None, run_prompt_template=None, additional_tools=None)
src/transformers/src/transformers/tools/agents.py:214
↓ 4 callersMethod_beam_search_generate
( self, model, input_ids, attention_mask, max_length, beam_sco
src/transformers/tests/generation/test_utils.py:384
↓ 4 callersMethod_concatenate_batches
(batches, padding_index=-100)
src/transformers/src/transformers/keras_callbacks.py:144
↓ 4 callersFunction_config_zero_init
(config)
src/transformers/tests/test_modeling_common.py:119
↓ 4 callersMethod_expand_inputs_for_generation
Expands tensors from [batch_size, ...] to [batch_size * expand_size, ...] or [batch_size, expand_size, ...], depending on `expand_in_
src/transformers/src/transformers/generation/tf_utils.py:1135
↓ 4 callersMethod_feature_file
(self, mode)
src/transformers/examples/legacy/pytorch-lightning/lightning_base.py:189
↓ 4 callersFunction_find_timestamp_sequence
Computes the final sequences by merging the end of the nth sequence with the beginning of the n+1th sequence. Since `WhisperForConditionalGen
src/transformers/src/transformers/pipelines/automatic_speech_recognition.py:696
↓ 4 callersMethod_generate_random_bad_tokens
(self, num_bad_tokens, model)
src/transformers/tests/test_modeling_tf_common.py:1799
↓ 4 callersFunction_get_indent
Returns the indentation in the first line of t
src/transformers/src/transformers/utils/doc.py:79
↓ 4 callersMethod_get_padding_truncation_strategies
Find the correct padding/truncation strategy with backward compatibility for old arguments (truncation_strategy and pad_to_max_length
src/transformers/src/transformers/tokenization_utils_base.py:2590
↓ 4 callersMethod_get_warper_and_kwargs
(num_beams)
src/transformers/tests/generation/test_utils.py:171
↓ 4 callersFunction_graph_replace_input_with
(graph_proto, name, new_name)
src/transformers/examples/research_projects/onnx/summarization/bart_onnx/reduce_onnx_size.py:39
↓ 4 callersMethod_hp_search_setup
HP search setup code
src/transformers/src/transformers/trainer.py:1149
↓ 4 callersFunction_insert_values_as_list
(metadata, name, values)
src/transformers/src/transformers/modelcard.py:310
↓ 4 callersMethod_issue_warnings_after_load
(self, load_result)
src/transformers/src/transformers/trainer.py:2206
↓ 4 callersFunction_long_tensor
(tok_lst)
src/transformers/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/test_modeling_flax_{{cookiecutter.lowercase_modelname}}.py:589
↓ 4 callersFunction_long_tensor
(tok_lst)
src/transformers/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/test_modeling_{{cookiecutter.lowercase_modelname}}.py:768
↓ 4 callersFunction_long_tensor
(tok_lst)
src/transformers/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/test_modeling_tf_{{cookiecutter.lowercase_modelname}}.py:891
↓ 4 callersFunction_maybe_round
(v, decimals=4)
src/transformers/src/transformers/modelcard.py:815
↓ 4 callersFunction_numpy_collate_batch
Collate `examples` into a batch, using the information in `tokenizer` for padding if necessary.
src/transformers/src/transformers/data/data_collator.py:476
↓ 4 callersMethod_pad_tensors_to_max_len
(self, tensor, max_length)
src/transformers/src/transformers/trainer_seq2seq.py:337
↓ 4 callersMethod_remove_unused_columns
(self, dataset: "datasets.Dataset", description: Optional[str] = None)
src/transformers/src/transformers/trainer.py:703
↓ 4 callersMethod_reorder_cache
(self, past_key_values, beam_idx)
src/transformers/src/transformers/generation/utils.py:885
↓ 4 callersMethod_run_finetune
(self, gpus: int, distributed_retriever: str = "pytorch")
src/transformers/examples/research_projects/rag/_test_finetune_rag.py:37
↓ 4 callersFunction_tf_collate_batch
(examples, tokenizer, pad_to_multiple_of: Optional[int] = None)
src/transformers/src/transformers/data/data_collator.py:438
↓ 4 callersMethodactive_adapter
(self)
src/transformers/src/transformers/integrations/peft.py:390
↓ 4 callersFunctionadd_model_info_to_auto_map
Adds the information of the repo_id to a given auto map.
src/transformers/src/transformers/utils/generic.py:662
↓ 4 callersMethodadd_model_specific_args
(parser, root_dir)
src/transformers/examples/research_projects/seq2seq-distillation/finetune.py:299
↓ 4 callersMethodadd_user_input
Add a user input to the conversation for the next round. This is a legacy method that assumes that inputs must alternate user/assista
src/transformers/src/transformers/pipelines/conversational.py:89
↓ 4 callersMethodadvance
When called, returns the token that would take this constraint one step closer to being fulfilled. Return: token_ids(`to
src/transformers/src/transformers/generation/beam_constraints.py:49
↓ 4 callersFunctionadvance_iter_and_group_samples
The training iterator is advanced so that after groupifying the samples, `num_samples` of length `max_seq_length` are returned.
src/transformers/examples/research_projects/jax-projects/dataset-streaming/run_mlm_flax_stream.py:278
↓ 4 callersFunctionapply_tesseract
Applies Tesseract OCR on a document image, and returns recognized words + normalized bounding boxes.
src/transformers/src/transformers/pipelines/document_question_answering.py:62
↓ 4 callersMethodas_tensor
(value)
src/transformers/src/transformers/feature_extraction_utils.py:138
↓ 4 callersFunctionassert_all_approx_close
(a, b, atol=1e-8, rtol=1e-5, count=10)
src/bitsandbytes/tests/test_modules.py:50
↓ 4 callersFunctionbackend_empty_cache
(device: str)
src/transformers/src/transformers/testing_utils.py:2288
↓ 4 callersFunctionbuild_mask
Builds the mask. The attention mechanism will only attend to positions with value 1.
src/transformers/examples/research_projects/bertabs/utils_summarization.py:121
↓ 4 callersMethodcheck_checkpoint_deletion
(self, trainer, output_dir, expected)
src/transformers/tests/trainer/test_trainer.py:1938
↓ 4 callersMethodcheck_default_pipeline
(self, task, framework, set_seed_fn, check_models_equal_fn)
src/transformers/tests/pipelines/test_pipelines_common.py:574
↓ 4 callersMethodcheck_device_map_is_respected
(self, model, device_map)
src/transformers/tests/test_modeling_common.py:2569
↓ 4 callersMethodcheck_inference_correctness
(self, model)
src/transformers/tests/quantization/bnb/test_mixed_int8.py:665
↓ 4 callersMethodcheck_iterable_dataset_shard
(self, dataset, batch_size, drop_last, num_processes=2, epoch=0)
src/transformers/tests/trainer/test_trainer_utils.py:303
↓ 4 callersFunctioncheck_missing_backends
Checks if all backends are installed (otherwise the check of this script is incomplete). Will error in the CI if that's not the case but only
src/transformers/utils/check_repo.py:329
↓ 4 callersMethodcheck_pt_flax_outputs
Args: model_class: The class of the model that is currently testing. For example, ..., etc. Currently unused, but it
src/transformers/tests/test_modeling_common.py:2175
↓ 4 callersMethodcheck_pt_flax_outputs
Args: model_class: The class of the model that is currently testing. For example, ..., etc. Currently unused, but it
src/transformers/tests/test_modeling_flax_common.py:183
↓ 4 callersMethodcheck_pt_tf_models
(self, tf_model, pt_model, pt_inputs_dict)
src/transformers/tests/test_modeling_common.py:2058
↓ 4 callersMethodcheck_pt_tf_models
(self, tf_model, pt_model, tf_inputs_dict)
src/transformers/tests/test_modeling_tf_common.py:594
↓ 4 callersMethodcheck_shard_sampler
(self, dataset, batch_size, drop_last, num_processes=2)
src/transformers/tests/trainer/test_trainer_utils.py:390
↓ 4 callersFunctioncheck_slow_torch_cuda
()
src/transformers/tests/utils/test_skip_decorators.py:55
↓ 4 callersMethodcompute_loss_context_manager
A helper wrapper to group together context managers.
src/transformers/src/transformers/trainer.py:2657
↓ 4 callersMethodconvert_batch_encode_plus_format_to_encode_plus
(batch_encode_plus_sequences)
src/transformers/tests/test_tokenization_common.py:383
↓ 4 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s.
src/transformers/examples/legacy/run_swag.py:127
↓ 4 callersFunctionconvert_to_localized_md
Compare the model list from the main README to the one in a localized README. Args: model_list (`str`): The model list in the main R
src/transformers/utils/check_copies.py:473
↓ 4 callersFunctioncreate_and_fill_np_array
Create and fill numpy array of size len_of_validation_data * max_length_of_output_tensor Args: start_or_end_logits(:obj:
src/transformers/examples/pytorch/question-answering/run_qa_no_trainer.py:726
↓ 4 callersFunctioncreate_and_fill_np_array
Create and fill numpy array of size len_of_validation_data * max_length_of_output_tensor Args: start_or_end_logits(:obj:
src/transformers/examples/flax/question-answering/run_qa.py:816
↓ 4 callersFunctioncreate_dummy_object
Create the code for a dummy object. Args: name (`str`): The name of the object. backend_name (`str`): The name of the backen
src/transformers/utils/check_dummies.py:139
↓ 4 callersFunctioncreate_dynamic_map
Creates the dynamic quantiztion map. The dynamic data type is made up of a dynamic exponent and fraction. As the exponent increase from
src/bitsandbytes/bitsandbytes/functional.py:339
↓ 4 callersMethodcreate_optimizer_and_scheduler
Setup the optimizer and the learning rate scheduler. We provide a reasonable default that works well. If you want to use something e
src/transformers/src/transformers/trainer.py:893
↓ 4 callersFunctioncreate_reverse_dependency_map
Create the dependency map from module/test filename to the list of modules/tests that depend on it recursively. Returns: `Dict[str,
src/transformers/utils/tests_fetcher.py:862
↓ 4 callersFunctiondeepspeed_config
()
src/transformers/src/transformers/integrations/deepspeed.py:263
↓ 4 callersMethoddequant
(xq, S1, S2, dtype, quant_type)
src/bitsandbytes/tests/test_modules.py:92
↓ 4 callersFunctiondraw_skeleton
joints is 3 x 19. but if not will transpose it. 0: Right ankle 1: Right knee 2: Right hip 3: Left hip 4: Left knee 5: Lef
src/utils/renderer.py:30
↓ 4 callersFunctionevaluate
(eval_iter)
src/transformers/examples/legacy/run_transfo_xl.py:101
↓ 4 callersFunctionevaluate
(args, model, tokenizer, prefix="", output_layer=-1, eval_highway=False)
src/transformers/examples/research_projects/deebert/run_glue_deebert.py:240
↓ 4 callersMethodfetch
(self, tokenizer, text)
src/transformers/tests/tokenization/test_tokenization_fast.py:241
↓ 4 callersFunctionfind_backend
Find one (or multiple) backend in a code line of the init. Args: line (`str`): A code line of the main init. Returns: O
src/transformers/utils/check_inits.py:73
↓ 4 callersFunctionflip_kp
Flip keypoints.
src/utils/image_ops.py:180
↓ 4 callersMethodformat_prompt
(self, task, chat_mode=False)
src/transformers/src/transformers/tools/agents.py:246
↓ 4 callersMethodfreeze
(self)
src/transformers/examples/research_projects/lxmert/modeling_frcnn.py:813
↓ 4 callersMethodfrom_pretrained
r"""Instantiate a pretrained pytorch model from a pre-trained model configuration. The model is set in evaluation mode by default using `
src/modeling/bert/modeling_utils.py:338
↓ 4 callersMethodfrom_pretrained
(cls, pretrained_model_name_or_path: str, **kwargs)
src/transformers/examples/research_projects/visual_bert/utils.py:177
↓ 4 callersMethodfrom_str
Creates an instance of the right subclass of [`~pipelines.PipelineDataFormat`] depending on `format`. Args: format (`str
src/transformers/src/transformers/pipelines/base.py:513
↓ 4 callersFunctionftoi
src/bitsandbytes/include/SIMD.h:300
↓ 4 callersMethodgenerate_one
(self, prompt, stop)
src/transformers/src/transformers/tools/agents.py:355
↓ 4 callersFunctionget_all_tests
Walks the `tests` folder to return a list of files/subfolders. This is used to split the tests to run when using paralellism. The split is:
src/transformers/utils/tests_fetcher.py:178
↓ 4 callersFunctionget_checkpoint_dir
Get framework-agnostic architecture name. Used to save all PT/TF/Flax models into the same directory.
src/transformers/utils/create_dummy_models.py:740
↓ 4 callersMethodget_config
(self, gindex, pindex, group)
src/bitsandbytes/bitsandbytes/optim/optimizer.py:296
← previousnext →601–700 of 11,352, ranked by callers