MCPcopy Create free account

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

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

Methodgather_beams
Gathers the beam slices indexed by beam_indices into new beam array.
neuron_deactivate/transformers/generation/flax_utils.py:781
Methodgather_best_candidate
Gathers the slices indexed by selected_idx_stacked from a potentially nested structure of tensors.
neuron_detection/transformers/generation/tf_utils.py:2757
Methodgather_best_candidate
Gathers the slices indexed by selected_idx_stacked from a potentially nested structure of tensors.
neuron_deactivate/transformers/generation/tf_utils.py:2757
Methodgather_fn
(tensor)
neuron_detection/transformers/generation/flax_utils.py:789
Methodgather_fn
(tensor)
neuron_detection/transformers/generation/tf_utils.py:2082
Methodgather_fn
(tensor)
neuron_deactivate/transformers/generation/flax_utils.py:789
Methodgather_fn
(tensor)
neuron_deactivate/transformers/generation/tf_utils.py:2082
Methodgenerate
r""" Generates sequences of token ids for models with a language modeling head. Parameters: input_ids (`jnp.ndarray` of s
neuron_detection/transformers/generation/flax_utils.py:268
Methodgenerate
r""" Generates sequences of token ids for models with a language modeling head. <Tip warning={true}> Most generation-control
neuron_detection/transformers/generation/tf_utils.py:645
Methodgenerate
r""" Generates sequences of token ids for models with a language modeling head. Parameters: input_ids (`jnp.ndarray` of s
neuron_deactivate/transformers/generation/flax_utils.py:268
Methodgenerate
r""" Generates sequences of token ids for models with a language modeling head. <Tip warning={true}> Most generation-control
neuron_deactivate/transformers/generation/tf_utils.py:645
Methodget_candidates
Fetches the candidates to be tried for the current input. Args: input_ids (`torch.LongTensor` of shape `(batch_size, seq
neuron_detection/transformers/generation/candidate_generator.py:33
Methodget_candidates
Fetches the candidates to be tried for the current input. Args: input_ids (`torch.LongTensor` of shape `(batch_size, seq
neuron_detection/transformers/generation/candidate_generator.py:171
Methodget_candidates
Fetches the candidates to be tried for the current input. Args: input_ids (`torch.LongTensor` of shape `(batch_size, seq
neuron_detection/transformers/generation/candidate_generator.py:281
Methodget_candidates
Fetches the candidates to be tried for the current input. Args: input_ids (`torch.LongTensor` of shape `(batch_size, seq
neuron_deactivate/transformers/generation/candidate_generator.py:33
Methodget_candidates
Fetches the candidates to be tried for the current input. Args: input_ids (`torch.LongTensor` of shape `(batch_size, seq
neuron_deactivate/transformers/generation/candidate_generator.py:177
Methodget_candidates
Fetches the candidates to be tried for the current input. Args: input_ids (`torch.LongTensor` of shape `(batch_size, seq
neuron_deactivate/transformers/generation/candidate_generator.py:289
Methodget_decoder
(self)
neuron_detection/transformers/models/llama/modeling_llama.py:1207
Methodget_decoder
(self)
neuron_detection/transformers/models/mistral/modeling_tf_mistral.py:834
Methodget_decoder
(self)
neuron_detection/transformers/models/mistral/modeling_mistral.py:1064
Methodget_decoder
(self)
neuron_detection/transformers/models/gemma2/modeling_gemma2.py:1102
Methodget_decoder
(self)
layers/transformers/models/modeling_qwen2.py:1122
Methodget_decoder
(self)
layers/transformers/models/modeling_llama.py:1125
Methodget_decoder
(self)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1233
Methodget_decoder
(self)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:834
Methodget_decoder
(self)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1062
Methodget_decoder
(self)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1030
Methodget_generation_mode
Returns the generation mode triggered by the [`GenerationConfig`] instance. Arg: assistant_model (`PreTrainedModel`, *op
neuron_detection/transformers/generation/configuration_utils.py:452
Methodget_generation_mode
Returns the generation mode triggered by the [`GenerationConfig`] instance. Arg: assistant_model (`PreTrainedModel`, *op
neuron_deactivate/transformers/generation/configuration_utils.py:469
Methodget_input_embeddings
(self)
neuron_detection/transformers/models/llama/modeling_llama.py:1192
Methodget_input_embeddings
(self)
neuron_detection/transformers/models/llama/modeling_llama.py:1495
Methodget_input_embeddings
(self)
neuron_detection/transformers/models/llama/modeling_llama.py:1610
Methodget_input_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_tf_mistral.py:502
Methodget_input_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_tf_mistral.py:819
Methodget_input_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_tf_mistral.py:957
Methodget_input_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_mistral.py:780
Methodget_input_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_mistral.py:1049
Methodget_input_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_mistral.py:1317
Methodget_input_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_mistral.py:1440
Methodget_input_embeddings
(self)
neuron_detection/transformers/models/gemma2/modeling_gemma2.py:897
Methodget_input_embeddings
(self)
neuron_detection/transformers/models/gemma2/modeling_gemma2.py:1087
Methodget_input_embeddings
(self)
neuron_detection/transformers/models/gemma2/modeling_gemma2.py:1393
Methodget_input_embeddings
(self)
neuron_detection/transformers/models/gemma2/modeling_gemma2.py:1515
Methodget_input_embeddings
(self)
layers/transformers/models/modeling_bloom.py:643
Methodget_input_embeddings
(self)
layers/transformers/models/modeling_qwen2.py:941
Methodget_input_embeddings
(self)
layers/transformers/models/modeling_qwen2.py:1107
Methodget_input_embeddings
(self)
layers/transformers/models/modeling_qwen2.py:1343
Methodget_input_embeddings
(self)
layers/transformers/models/modeling_llama.py:938
Methodget_input_embeddings
(self)
layers/transformers/models/modeling_llama.py:1110
Methodget_input_embeddings
(self)
layers/transformers/models/modeling_llama.py:1370
Methodget_input_embeddings
(self)
layers/transformers/models/modeling_llama.py:1485
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/llama/modeling_llama.py:953
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1218
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1463
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1580
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1684
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:502
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:819
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:957
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:746
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1047
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1301
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1424
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:802
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1015
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1261
Methodget_input_embeddings
(self)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1383
Methodget_output_embeddings
(self)
neuron_detection/transformers/models/llama/modeling_llama.py:1198
Methodget_output_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_tf_mistral.py:825
Methodget_output_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_mistral.py:1055
Methodget_output_embeddings
(self)
neuron_detection/transformers/models/gemma2/modeling_gemma2.py:1093
Methodget_output_embeddings
(self)
layers/transformers/models/modeling_bloom.py:834
Methodget_output_embeddings
(self)
layers/transformers/models/modeling_qwen2.py:1113
Methodget_output_embeddings
(self)
layers/transformers/models/modeling_llama.py:1116
Methodget_output_embeddings
(self)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1224
Methodget_output_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:825
Methodget_output_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1053
Methodget_output_embeddings
(self)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1021
Methodget_special_tokens_mask
Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding special tokens using the
neuron_detection/transformers/models/llama/tokenization_llama.py:345
Methodget_special_tokens_mask
Retrieve sequence ids from a token list that has no special tokens added. This method is called when adding special tokens using the
neuron_deactivate/transformers/models/llama/tokenization_llama.py:344
Methodgreedy_search_body_fn
state update fn.
neuron_detection/transformers/generation/flax_utils.py:616
Methodgreedy_search_body_fn
state update fn.
neuron_detection/transformers/generation/tf_utils.py:1656
Methodgreedy_search_body_fn
state update fn.
neuron_deactivate/transformers/generation/flax_utils.py:616
Methodgreedy_search_body_fn
state update fn.
neuron_deactivate/transformers/generation/tf_utils.py:1656
Methodgreedy_search_cond_fn
state termination condition fn.
neuron_detection/transformers/generation/flax_utils.py:609
Methodgreedy_search_cond_fn
state termination condition fn.
neuron_detection/transformers/generation/tf_utils.py:1651
Methodgreedy_search_cond_fn
state termination condition fn.
neuron_deactivate/transformers/generation/flax_utils.py:609
Methodgreedy_search_cond_fn
state termination condition fn.
neuron_deactivate/transformers/generation/tf_utils.py:1651
Methodhandle_cumulative_probs
(logprobs_k, scores_k)
neuron_detection/transformers/generation/flax_logits_process.py:447
Methodhandle_cumulative_probs
(logprobs_k, scores_k)
neuron_deactivate/transformers/generation/flax_logits_process.py:447
Methodhandle_pairs
(input_ids_k, scores_k)
neuron_detection/transformers/generation/flax_logits_process.py:402
Methodhandle_pairs
(input_ids_k, scores_k)
neuron_deactivate/transformers/generation/flax_logits_process.py:402
Methodhyperparameter_search
Launch an hyperparameter search using `optuna` or `Ray Tune` or `SigOpt`. The optimized quantity is determined by `compute_objective`
neuron_enhancement/transformers/trainer.py:2810
Methodinit_weights
(self, rng: jax.random.PRNGKey, input_shape: Tuple, params: FrozenDict = None)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:431
Methodinit_weights
(self, rng: jax.random.PRNGKey, input_shape: Tuple, params: FrozenDict = None)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:419
Methodinit_weights
(self, rng: jax.random.PRNGKey, input_shape: Tuple, params: FrozenDict = None)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:431
Methodinit_weights
(self, rng: jax.random.PRNGKey, input_shape: Tuple, params: FrozenDict = None)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:419
Methodinner_fn
(latest_tokens, previous_ngrams)
neuron_detection/transformers/generation/flax_logits_process.py:518
Methodinner_fn
(latest_tokens, previous_ngrams)
neuron_deactivate/transformers/generation/flax_logits_process.py:518
Methodis_done
(self)
neuron_detection/transformers/generation/beam_search.py:212
← previousnext →1,301–1,400 of 1,603, ranked by callers