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
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/llama/modeling_llama.py:956
Method
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1221
Method
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1466
Method
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1583
Method
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1687
Method
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:505
Method
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:822
Method
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:960
Method
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:749
Method
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1050
Method
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1304
Method
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1427
Method
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:805
Method
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1018
Method
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1264
Method
set_input_embeddings
(self, value)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1386
Method
set_inputs
(self, inputs)
neuron_detection/transformers/generation/logits_process.py:2026
Method
set_inputs
(self, inputs)
neuron_deactivate/transformers/generation/logits_process.py:2026
Method
set_model
(self, model)
neuron_detection/transformers/generation/logits_process.py:2023
Method
set_model
(self, model)
neuron_deactivate/transformers/generation/logits_process.py:2023
Method
set_output_embeddings
(self, new_embeddings)
neuron_detection/transformers/models/llama/modeling_llama.py:1201
Method
set_output_embeddings
(self, new_embeddings)
neuron_detection/transformers/models/mistral/modeling_tf_mistral.py:828
Method
set_output_embeddings
(self, new_embeddings)
neuron_detection/transformers/models/mistral/modeling_mistral.py:1058
Method
set_output_embeddings
(self, new_embeddings)
neuron_detection/transformers/models/gemma2/modeling_gemma2.py:1096
Method
set_output_embeddings
(self, new_embeddings: torch.Tensor)
layers/transformers/models/modeling_bloom.py:837
Method
set_output_embeddings
(self, new_embeddings)
layers/transformers/models/modeling_qwen2.py:1116
Method
set_output_embeddings
(self, new_embeddings)
layers/transformers/models/modeling_llama.py:1119
Method
set_output_embeddings
(self, new_embeddings)
neuron_deactivate/transformers/models/llama/modeling_llama.py:1227
Method
set_output_embeddings
(self, new_embeddings)
neuron_deactivate/transformers/models/mistral/modeling_tf_mistral.py:828
Method
set_output_embeddings
(self, new_embeddings)
neuron_deactivate/transformers/models/mistral/modeling_mistral.py:1056
Method
set_output_embeddings
(self, new_embeddings)
neuron_deactivate/transformers/models/gemma2/modeling_gemma2.py:1024
Method
setup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:156
Method
setup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:174
Method
setup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:197
Method
setup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:347
Method
setup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:370
Method
setup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:545
Method
setup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:591
Method
setup
(self)
neuron_detection/transformers/models/llama/modeling_flax_llama.py:667
Method
setup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:135
Method
setup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:154
Method
setup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:176
Method
setup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:223
Method
setup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:358
Method
setup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:534
Method
setup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:581
Method
setup
(self)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:658
Method
setup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:156
Method
setup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:174
Method
setup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:197
Method
setup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:347
Method
setup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:370
Method
setup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:545
Method
setup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:591
Method
setup
(self)
neuron_deactivate/transformers/models/llama/modeling_flax_llama.py:667
Method
setup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:135
Method
setup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:154
Method
setup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:176
Method
setup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:223
Method
setup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:358
Method
setup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:534
Method
setup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:581
Method
setup
(self)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:658
Method
shard_output
(output, mesh)
neuron_enhancement/transformers/trainer.py:1460
Method
sin_cached
(self)
neuron_detection/transformers/models/llama/modeling_llama.py:115
Method
sin_cached
(self)
layers/transformers/models/modeling_llama.py:114
Method
to_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
Method
to_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
Method
tokenize
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
Method
tokenize
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
Function
top_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
Function
top_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
Function
top_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
Function
tracefunc
(frame, event, arg, indent=[0])
layers/test_layer.py:32
Method
true_fn
()
neuron_detection/transformers/generation/flax_logits_process.py:524
Method
true_fn
()
neuron_deactivate/transformers/generation/flax_logits_process.py:524
Method
typeerror
()
neuron_detection/transformers/generation/utils.py:1647
Method
typeerror
()
layers/transformers/generation/utils.py:1650
Method
typeerror
()
neuron_deactivate/transformers/generation/utils.py:1809
Method
unflatten_beam_dim
Unflattens the first, flat batch*beam dimension of a non-scalar array.
neuron_detection/transformers/generation/flax_utils.py:774
Method
unflatten_beam_dim
Unflattens the first, flat batch*beam dimension of a non-scalar array.
neuron_detection/transformers/generation/tf_utils.py:2219
Method
unflatten_beam_dim
Unflattens the first, flat batch*beam dimension of a non-scalar array.
neuron_deactivate/transformers/generation/flax_utils.py:774
Method
unflatten_beam_dim
Unflattens the first, flat batch*beam dimension of a non-scalar array.
neuron_deactivate/transformers/generation/tf_utils.py:2219
Method
unk_token_length
(self)
neuron_detection/transformers/models/llama/tokenization_llama.py:191
Method
unk_token_length
(self)
neuron_deactivate/transformers/models/llama/tokenization_llama.py:191
Method
update
(self, token_id: int)
neuron_detection/transformers/generation/beam_constraints.py:166
Method
update
(self, token_id: int)
neuron_detection/transformers/generation/beam_constraints.py:309
Method
update
Update the configuration attributes with new values. Args: **kwargs: Keyword arguments representing configuration attrib
neuron_detection/transformers/generation/configuration_utils.py:1273
Method
update
(self, token_id: int)
neuron_deactivate/transformers/generation/beam_constraints.py:166
Method
update
(self, token_id: int)
neuron_deactivate/transformers/generation/beam_constraints.py:309
Method
update
Update the configuration attributes with new values. Args: **kwargs: Keyword arguments representing configuration attrib
neuron_deactivate/transformers/generation/configuration_utils.py:1311
Method
update_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
Method
update_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
Method
update_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
Method
update_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
Method
update_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
Method
update_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
Method
update_inputs_for_generation
(self, model_outputs, model_kwargs)
neuron_detection/transformers/models/mistral/modeling_flax_mistral.py:730
Method
update_inputs_for_generation
(self, model_outputs, model_kwargs)
neuron_deactivate/transformers/models/mistral/modeling_flax_mistral.py:730
Method
validate
(self)
neuron_detection/transformers/generation/configuration_utils.py:1284
← previous
next →
1,501–1,600 of 1,603, ranked by callers