MCPcopy Create free account

hub / github.com/DAMO-NLP-SG/multilingual_analysis / functions

Functions1,603 in github.com/DAMO-NLP-SG/multilingual_analysis

Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/llama/modeling_llama.py:956
Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1221
Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1466
Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1583
Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1687
Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:505
Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:822
Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:960
Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:749
Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1050
Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1304
Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1427
Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:805
Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1018
Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1264
Methodset_input_embeddings
(self, value)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1386
Methodset_inputs
(self, inputs)
neuron_detection/transformers/generation/logits_process.py:2026
Methodset_inputs
(self, inputs)
neuron_deactivate/transformers/generation/logits_process.py:2026
Methodset_model
(self, model)
neuron_detection/transformers/generation/logits_process.py:2023
Methodset_model
(self, model)
neuron_deactivate/transformers/generation/logits_process.py:2023
Methodset_output_embeddings
(self, new_embeddings)
neuron_detection/transformers/models/llama/modeling_llama.py:1201
Methodset_output_embeddings
(self, new_embeddings)
neuron_detection/transformers/models/mistral/modeling_tf_mistral.py:828
Methodset_output_embeddings
(self, new_embeddings)
neuron_detection/transformers/models/mistral/modeling_mistral.py:1058
Methodset_output_embeddings
(self, new_embeddings)
neuron_detection/transformers/models/gemma2/modeling_gemma2.py:1096
Methodset_output_embeddings
(self, new_embeddings: torch.Tensor)
layers/transformers/models/modeling_bloom.py:837
Methodset_output_embeddings
(self, new_embeddings)
layers/transformers/models/modeling_qwen2.py:1116
Methodset_output_embeddings
(self, new_embeddings)
layers/transformers/models/modeling_llama.py:1119
Methodset_output_embeddings
(self, new_embeddings)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1227
Methodset_output_embeddings
(self, new_embeddings)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:828
Methodset_output_embeddings
(self, new_embeddings)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1056
Methodset_output_embeddings
(self, new_embeddings)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1024
Methodsetup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:156
Methodsetup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:174
Methodsetup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:197
Methodsetup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:347
Methodsetup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:370
Methodsetup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:545
Methodsetup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:591
Methodsetup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:667
Methodsetup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:135
Methodsetup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:154
Methodsetup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:176
Methodsetup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:223
Methodsetup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:358
Methodsetup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:534
Methodsetup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:581
Methodsetup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:658
Methodsetup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:156
Methodsetup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:174
Methodsetup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:197
Methodsetup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:347
Methodsetup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:370
Methodsetup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:545
Methodsetup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:591
Methodsetup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:667
Methodsetup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:135
Methodsetup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:154
Methodsetup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:176
Methodsetup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:223
Methodsetup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:358
Methodsetup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:534
Methodsetup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:581
Methodsetup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:658
Methodshard_output
(output, mesh)
neuron_enhancement/transformers/trainer.py:1460
Methodsin_cached
(self)
neuron_detection/transformers/models/llama/modeling_llama.py:115
Methodsin_cached
(self)
layers/transformers/models/modeling_llama.py:114
Methodto_json_file
Save this instance to a JSON file. Args: json_file_path (Union[str, os.PathLike]): Path to the JSON file in which this c
neuron_detection/transformers/generation/configuration_utils.py:1234
Methodto_json_file
Save this instance to a JSON file. Args: json_file_path (Union[str, os.PathLike]): Path to the JSON file in which this c
neuron_deactivate/transformers/generation/configuration_utils.py:1272
Methodtokenize
Converts a string to a list of tokens. If `self.legacy` is set to `False`, a prefix token is added unless the first token is special.
neuron_detection/transformers/models/llama/tokenization_llama.py:235
Methodtokenize
Converts a string to a list of tokens. If `self.legacy` is set to `False`, a prefix token is added unless the first token is special.
neuron_deactivate/transformers/models/llama/tokenization_llama.py:235
Functiontop_k_top_p_filtering
Filter a distribution of logits using top-k and/or nucleus (top-p) filtering Args: logits: logits distribution shape (batch size, vo
neuron_detection/transformers/generation/utils.py:4022
Functiontop_k_top_p_filtering
Filter a distribution of logits using top-k and/or nucleus (top-p) filtering Args: logits: logits distribution shape (batch size, vo
layers/transformers/generation/utils.py:4016
Functiontop_k_top_p_filtering
Filter a distribution of logits using top-k and/or nucleus (top-p) filtering Args: logits: logits distribution shape (batch size, vo
neuron_deactivate/transformers/generation/utils.py:4771
Functiontracefunc
(frame, event, arg, indent=[0])
layers/test_layer.py:32
Methodtrue_fn
()
neuron_detection/transformers/generation/flax_logits_process.py:524
Methodtrue_fn
()
neuron_deactivate/transformers/generation/flax_logits_process.py:524
Methodtypeerror
()
neuron_detection/transformers/generation/utils.py:1647
Methodtypeerror
()
layers/transformers/generation/utils.py:1650
Methodtypeerror
()
neuron_deactivate/transformers/generation/utils.py:1809
Methodunflatten_beam_dim
Unflattens the first, flat batch*beam dimension of a non-scalar array.
neuron_detection/transformers/generation/flax_utils.py:774
Methodunflatten_beam_dim
Unflattens the first, flat batch*beam dimension of a non-scalar array.
neuron_detection/transformers/generation/tf_utils.py:2219
Methodunflatten_beam_dim
Unflattens the first, flat batch*beam dimension of a non-scalar array.
neuron_deactivate/transformers/generation/flax_utils.py:774
Methodunflatten_beam_dim
Unflattens the first, flat batch*beam dimension of a non-scalar array.
neuron_deactivate/transformers/generation/tf_utils.py:2219
Methodunk_token_length
(self)
neuron_detection/transformers/models/llama/tokenization_llama.py:191
Methodunk_token_length
(self)
neuron_deactivate/transformers/models/llama/tokenization_llama.py:191
Methodupdate
(self, token_id: int)
neuron_detection/transformers/generation/beam_constraints.py:166
Methodupdate
(self, token_id: int)
neuron_detection/transformers/generation/beam_constraints.py:309
Methodupdate
Update the configuration attributes with new values. Args: **kwargs: Keyword arguments representing configuration attrib
neuron_detection/transformers/generation/configuration_utils.py:1273
Methodupdate
(self, token_id: int)
neuron_deactivate/transformers/generation/beam_constraints.py:166
Methodupdate
(self, token_id: int)
neuron_deactivate/transformers/generation/beam_constraints.py:309
Methodupdate
Update the configuration attributes with new values. Args: **kwargs: Keyword arguments representing configuration attrib
neuron_deactivate/transformers/generation/configuration_utils.py:1311
Methodupdate_candidate_strategy
Updates the candidate generation strategy based on the outcomes. Args: input_ids (`torch.LongTensor` of shape `(batch_si
neuron_detection/transformers/generation/candidate_generator.py:50
Methodupdate_candidate_strategy
Updates the candidate generation strategy based on the outcomes. Args: input_ids (`torch.LongTensor` of shape `(batch_si
neuron_detection/transformers/generation/candidate_generator.py:226
Methodupdate_candidate_strategy
Updates the candidate generation strategy based on the outcomes. Args: input_ids (`torch.LongTensor` of shape `(batch_si
neuron_detection/transformers/generation/candidate_generator.py:336
Methodupdate_candidate_strategy
Updates the candidate generation strategy based on the outcomes. Args: input_ids (`torch.LongTensor` of shape `(batch_si
neuron_deactivate/transformers/generation/candidate_generator.py:50
Methodupdate_candidate_strategy
Updates the candidate generation strategy based on the outcomes. Args: input_ids (`torch.LongTensor` of shape `(batch_si
neuron_deactivate/transformers/generation/candidate_generator.py:232
Methodupdate_candidate_strategy
Updates the candidate generation strategy based on the outcomes. Args: input_ids (`torch.LongTensor` of shape `(batch_si
neuron_deactivate/transformers/generation/candidate_generator.py:353
Methodupdate_inputs_for_generation
(self, model_outputs, model_kwargs)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:730
Methodupdate_inputs_for_generation
(self, model_outputs, model_kwargs)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:730
Methodvalidate
(self)
neuron_detection/transformers/generation/configuration_utils.py:1284
← previousnext →1,501–1,600 of 1,603, ranked by callers