Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DAMO-NLP-SG/multilingual_analysis
/ functions
Functions
1,603 in github.com/DAMO-NLP-SG/multilingual_analysis
⨍
Functions
1,603
◇
Types & classes
462
↳
Endpoints
11
Method
gather_beams
Gathers the beam slices indexed by beam_indices into new beam array.
neuron_deactivate/transformers/generation/flax_utils.py:781
Method
gather_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
Method
gather_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
Method
gather_fn
(tensor)
neuron_detection/transformers/generation/flax_utils.py:789
Method
gather_fn
(tensor)
neuron_detection/transformers/generation/tf_utils.py:2082
Method
gather_fn
(tensor)
neuron_deactivate/transformers/generation/flax_utils.py:789
Method
gather_fn
(tensor)
neuron_deactivate/transformers/generation/tf_utils.py:2082
Method
generate
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
Method
generate
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
Method
generate
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
Method
generate
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
Method
get_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
Method
get_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
Method
get_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
Method
get_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
Method
get_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
Method
get_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
Method
get_decoder
(self)
neuron_detection/transformers/models/llama/modeling_llama.py:1207
Method
get_decoder
(self)
neuron_detection/transformers/models/mistral/modeling_tf_mistral.py:834
Method
get_decoder
(self)
neuron_detection/transformers/models/mistral/modeling_mistral.py:1064
Method
get_decoder
(self)
neuron_detection/transformers/models/gemma2/modeling_gemma2.py:1102
Method
get_decoder
(self)
layers/transformers/models/modeling_qwen2.py:1122
Method
get_decoder
(self)
layers/transformers/models/modeling_llama.py:1125
Method
get_decoder
(self)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1233
Method
get_decoder
(self)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:834
Method
get_decoder
(self)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1062
Method
get_decoder
(self)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1030
Method
get_generation_mode
Returns the generation mode triggered by the [`GenerationConfig`] instance. Arg: assistant_model (`PreTrainedModel`, *op
neuron_detection/transformers/generation/configuration_utils.py:452
Method
get_generation_mode
Returns the generation mode triggered by the [`GenerationConfig`] instance. Arg: assistant_model (`PreTrainedModel`, *op
neuron_deactivate/transformers/generation/configuration_utils.py:469
Method
get_input_embeddings
(self)
neuron_detection/transformers/models/llama/modeling_llama.py:1192
Method
get_input_embeddings
(self)
neuron_detection/transformers/models/llama/modeling_llama.py:1495
Method
get_input_embeddings
(self)
neuron_detection/transformers/models/llama/modeling_llama.py:1610
Method
get_input_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_tf_mistral.py:502
Method
get_input_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_tf_mistral.py:819
Method
get_input_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_tf_mistral.py:957
Method
get_input_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_mistral.py:780
Method
get_input_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_mistral.py:1049
Method
get_input_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_mistral.py:1317
Method
get_input_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_mistral.py:1440
Method
get_input_embeddings
(self)
neuron_detection/transformers/models/gemma2/modeling_gemma2.py:897
Method
get_input_embeddings
(self)
neuron_detection/transformers/models/gemma2/modeling_gemma2.py:1087
Method
get_input_embeddings
(self)
neuron_detection/transformers/models/gemma2/modeling_gemma2.py:1393
Method
get_input_embeddings
(self)
neuron_detection/transformers/models/gemma2/modeling_gemma2.py:1515
Method
get_input_embeddings
(self)
layers/transformers/models/modeling_bloom.py:643
Method
get_input_embeddings
(self)
layers/transformers/models/modeling_qwen2.py:941
Method
get_input_embeddings
(self)
layers/transformers/models/modeling_qwen2.py:1107
Method
get_input_embeddings
(self)
layers/transformers/models/modeling_qwen2.py:1343
Method
get_input_embeddings
(self)
layers/transformers/models/modeling_llama.py:938
Method
get_input_embeddings
(self)
layers/transformers/models/modeling_llama.py:1110
Method
get_input_embeddings
(self)
layers/transformers/models/modeling_llama.py:1370
Method
get_input_embeddings
(self)
layers/transformers/models/modeling_llama.py:1485
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/llama/modeling_llama.py:953
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1218
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1463
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1580
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1684
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:502
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:819
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:957
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:746
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1047
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1301
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1424
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:802
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1015
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1261
Method
get_input_embeddings
(self)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1383
Method
get_output_embeddings
(self)
neuron_detection/transformers/models/llama/modeling_llama.py:1198
Method
get_output_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_tf_mistral.py:825
Method
get_output_embeddings
(self)
neuron_detection/transformers/models/mistral/modeling_mistral.py:1055
Method
get_output_embeddings
(self)
neuron_detection/transformers/models/gemma2/modeling_gemma2.py:1093
Method
get_output_embeddings
(self)
layers/transformers/models/modeling_bloom.py:834
Method
get_output_embeddings
(self)
layers/transformers/models/modeling_qwen2.py:1113
Method
get_output_embeddings
(self)
layers/transformers/models/modeling_llama.py:1116
Method
get_output_embeddings
(self)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1224
Method
get_output_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:825
Method
get_output_embeddings
(self)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1053
Method
get_output_embeddings
(self)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1021
Method
get_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
Method
get_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
Method
greedy_search_body_fn
state update fn.
neuron_detection/transformers/generation/flax_utils.py:616
Method
greedy_search_body_fn
state update fn.
neuron_detection/transformers/generation/tf_utils.py:1656
Method
greedy_search_body_fn
state update fn.
neuron_deactivate/transformers/generation/flax_utils.py:616
Method
greedy_search_body_fn
state update fn.
neuron_deactivate/transformers/generation/tf_utils.py:1656
Method
greedy_search_cond_fn
state termination condition fn.
neuron_detection/transformers/generation/flax_utils.py:609
Method
greedy_search_cond_fn
state termination condition fn.
neuron_detection/transformers/generation/tf_utils.py:1651
Method
greedy_search_cond_fn
state termination condition fn.
neuron_deactivate/transformers/generation/flax_utils.py:609
Method
greedy_search_cond_fn
state termination condition fn.
neuron_deactivate/transformers/generation/tf_utils.py:1651
Method
handle_cumulative_probs
(logprobs_k, scores_k)
neuron_detection/transformers/generation/flax_logits_process.py:447
Method
handle_cumulative_probs
(logprobs_k, scores_k)
neuron_deactivate/transformers/generation/flax_logits_process.py:447
Method
handle_pairs
(input_ids_k, scores_k)
neuron_detection/transformers/generation/flax_logits_process.py:402
Method
handle_pairs
(input_ids_k, scores_k)
neuron_deactivate/transformers/generation/flax_logits_process.py:402
Method
hyperparameter_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
Method
init_weights
(self, rng: jax.random.PRNGKey, input_shape: Tuple, params: FrozenDict = None)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:431
Method
init_weights
(self, rng: jax.random.PRNGKey, input_shape: Tuple, params: FrozenDict = None)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:419
Method
init_weights
(self, rng: jax.random.PRNGKey, input_shape: Tuple, params: FrozenDict = None)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:431
Method
init_weights
(self, rng: jax.random.PRNGKey, input_shape: Tuple, params: FrozenDict = None)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:419
Method
inner_fn
(latest_tokens, previous_ngrams)
neuron_detection/transformers/generation/flax_logits_process.py:518
Method
inner_fn
(latest_tokens, previous_ngrams)
neuron_deactivate/transformers/generation/flax_logits_process.py:518
Method
is_done
(self)
neuron_detection/transformers/generation/beam_search.py:212
← previous
next →
1,301–1,400 of 1,603, ranked by callers