MCPcopy Create free account

hub / github.com/SafeAILab/EAGLE / functions

Functions596 in github.com/SafeAILab/EAGLE

↓ 1 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
eagle/traineagle3/cnets.py:57
↓ 1 callersFunction_expand_mask
Expand attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`. Args: mask (torch.Tensor): The attention ma
eagle/traineagle3/modeling_llama_kv.py:78
↓ 1 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
eagle/model/cnets.py:66
↓ 1 callersFunction_expand_mask
Expand attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`. Args: mask (torch.Tensor): The attention mask t
eagle/model/modeling_mixtral_kv.py:103
↓ 1 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
eagle/model/cnets1.py:66
↓ 1 callersFunction_expand_mask
Expand attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`. Args: mask (torch.Tensor): The attention mask t
eagle/model/modeling_llama_kv.py:78
↓ 1 callersFunction_expand_mask
Expand attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`. Args: mask (torch.Tensor): The attention mask t
eagle/model/modeling_qwen3_kv.py:91
↓ 1 callersMethod_init_rope
(self)
eagle/modeling_eagle.py:332
↓ 1 callersMethod_init_rope
(self)
eagle/testbug/model/cnets.py:214
↓ 1 callersMethod_init_rope
(self)
eagle/traineagle3/cnets.py:207
↓ 1 callersMethod_init_rope
(self)
eagle/traineagle3/modeling_llama_kv.py:607
↓ 1 callersMethod_init_rope
(self)
eagle/model/cnets.py:215
↓ 1 callersMethod_init_rope
(self)
eagle/model/cnets1.py:220
↓ 1 callersMethod_init_rope
(self)
eagle/model/modeling_llama_kv.py:607
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
eagle/testbug/model/cnets.py:55
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
eagle/traineagle3/cnets.py:39
↓ 1 callersFunction_make_causal_mask
Create a causal mask for bi-directional self-attention. Args: input_ids_shape (torch.Size): The shape of input_ids tensor, typic
eagle/traineagle3/modeling_llama_kv.py:38
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
eagle/model/cnets.py:48
↓ 1 callersFunction_make_causal_mask
Create a causal mask for bi-directional self-attention. Args: input_ids_shape (torch.Size): The shape of input_ids tensor, typically
eagle/model/modeling_mixtral_kv.py:63
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
eagle/model/cnets1.py:48
↓ 1 callersFunction_make_causal_mask
Create a causal mask for bi-directional self-attention. Args: input_ids_shape (torch.Size): The shape of input_ids tensor, typically
eagle/model/modeling_llama_kv.py:38
↓ 1 callersFunction_make_causal_mask
Create a causal mask for bi-directional self-attention. Args: input_ids_shape (torch.Size): The shape of input_ids tensor, typically
eagle/model/modeling_qwen3_kv.py:51
↓ 1 callersMethod_prepare_4d_causal_attention_mask_with_cache_position
Creates a causal 4D mask of shape `(batch_size, 1, query_length, key_value_length)` from a 2D mask of shape `(batch_size, key_value_l
eagle/model/modeling_qwen2_kv.py:968
↓ 1 callersFunction_prepare_decoder_attention_mask
( attention_mask, tree_mask, input_shape, inputs_embeds, past_key_values_length )
eagle/modeling_eagle.py:1143
↓ 1 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds, past_key_values_length)
eagle/modeling_eagle.py:714
↓ 1 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds, past_key_values_length)
eagle/traineagle3/cnets.py:690
↓ 1 callersMethod_prepare_decoder_attention_mask
( self, attention_mask, input_shape, inputs_embeds, past_key_values_length )
eagle/traineagle3/modeling_llama_kv.py:1010
↓ 1 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds, past_key_values_length)
eagle/model/cnets.py:554
↓ 1 callersMethod_prepare_decoder_attention_mask
( self, attention_mask, input_shape, inputs_embeds, past_key_values_length )
eagle/model/modeling_mixtral_kv.py:742
↓ 1 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds, past_key_values_length)
eagle/model/cnets1.py:538
↓ 1 callersMethod_prepare_decoder_attention_mask
( self, attention_mask, input_shape, inputs_embeds, past_key_values_length )
eagle/model/modeling_llama_kv.py:1010
↓ 1 callersMethod_prepare_decoder_attention_mask
( self, attention_mask, input_shape, inputs_embeds, past_key_values_length )
eagle/model/modeling_qwen3_kv.py:445
↓ 1 callersMethod_rope_scaling_validation
Validate the `rope_scaling` configuration.
eagle/modeling_eagle.py:286
↓ 1 callersMethod_rope_scaling_validation
Validate the `rope_scaling` configuration.
eagle/testbug/model/configs.py:126
↓ 1 callersMethod_rope_scaling_validation
Validate the `rope_scaling` configuration.
eagle/traineagle3/configs.py:126
↓ 1 callersMethod_rope_scaling_validation
Validate the `rope_scaling` configuration.
eagle/model/configs.py:126
↓ 1 callersMethod_update_causal_mask
( self, attention_mask: torch.Tensor, input_tensor: torch.Tensor,
eagle/model/modeling_qwen2_kv.py:1031
↓ 1 callersMethodall_index
(self)
eagle/modeling_eagle.py:577
↓ 1 callersMethodall_index
(self)
eagle/testbug/model/utils_c.py:46
↓ 1 callersMethodall_index
(self)
eagle/model/utils_c.py:49
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids)
eagle/modeling_eagle.py:83
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids)
eagle/testbug/model/cnets.py:102
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids)
eagle/traineagle3/cnets.py:90
↓ 1 callersFunctionapply_rotary_pos_emb
Apply rotary position embeddings to query and key tensors. Args: q (torch.Tensor): Query tensor. k (torch.Tensor): Key
eagle/traineagle3/modeling_llama_kv.py:423
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids)
eagle/model/cnets.py:99
↓ 1 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
eagle/model/modeling_mixtral_kv.py:252
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids)
eagle/model/cnets1.py:99
↓ 1 callersFunctionapply_rotary_pos_emb
Apply rotary position embeddings to query and key tensors. Args: q (torch.Tensor): Query tensor. k (torch.Tensor): Key tenso
eagle/model/modeling_llama_kv.py:423
↓ 1 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
eagle/model/modeling_qwen3_kv.py:159
↓ 1 callersFunctionapply_rotary_pos_emb_L31
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`
eagle/traineagle3/modeling_llama_kv.py:446
↓ 1 callersFunctionapply_rotary_pos_emb_L31
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
eagle/model/modeling_llama_kv.py:446
↓ 1 callersFunctioncheckin
(pointer,start,marker)
eagle/application/webui.py:39
↓ 1 callersFunctioncompute_loss
(target, target_p, predict, loss_mask)
eagle/train/main_deepspeed.py:222
↓ 1 callersMethoddataprepare
(self, input_ids, attention_mask, loss_mask)
eagle/traineagle3/cnets.py:714
↓ 1 callersMethodeagenerate
( self, input_ids, temperature=0.0, top_p=0.0, top
eagle/testbug/model/ea_model.py:104
↓ 1 callersFunctionevaluate_posterior
Evaluate the posterior probabilities of the candidates based on the provided logits and choose the best candidate. Depending on the tempe
eagle/modeling_eagle.py:1352
↓ 1 callersFunctionfind_list_markers
(text)
eagle/application/webui.py:30
↓ 1 callersFunctionfind_max_state_with_file
(directory, filename="zero_to_fp32.py")
eagle/traineagle3/main.py:244
↓ 1 callersMethodforward
(self, hidden_state)
eagle/model/modeling_qwen2_kv.py:218
↓ 1 callersFunctiongenerate
(hidden_states, input_ids, head, max_length=4, use_cache=True)
eagle/train/main.py:242
↓ 1 callersFunctiongenerate_candidates
(tree_logits, tree_indices, retrieve_indices, sample_token, logits_processor)
eagle/modeling_eagle.py:1282
↓ 1 callersFunctiongenerate_tree_buffers
(tree_choices, device="cuda")
eagle/modeling_eagle.py:1002
↓ 1 callersFunctiongenerate_tree_buffers
(tree_choices, device="cuda")
eagle/testbug/model/utils_c.py:97
↓ 1 callersFunctiongenerate_tree_buffers
(tree_choices, device="cuda")
eagle/model/utils_c.py:100
↓ 1 callersFunctiongenerate_tree_buffers_for_eagle
(tree_choices, device="cuda")
eagle/modeling_eagle.py:625
↓ 1 callersMethodget_node_wchild
(self)
eagle/modeling_eagle.py:609
↓ 1 callersMethodget_node_wchild
(self)
eagle/testbug/model/utils_c.py:79
↓ 1 callersMethodget_node_wchild
(self)
eagle/model/utils_c.py:82
↓ 1 callersFunctiongetkacc
(model, data, head, max_length=5)
eagle/train/main.py:241
↓ 1 callersMethodindexnode
(self)
eagle/modeling_eagle.py:616
↓ 1 callersMethodindexnode
(self)
eagle/testbug/model/utils_c.py:86
↓ 1 callersMethodindexnode
(self)
eagle/model/utils_c.py:89
↓ 1 callersMethodinit_tree
(self)
eagle/modeling_eagle.py:706
↓ 1 callersMethodinit_tree
(self)
eagle/model/cnets.py:546
↓ 1 callersFunctioninitialize_tree
(input_ids, model, logits_processor, attention_mask=None)
eagle/modeling_eagle.py:1258
↓ 1 callersFunctionlist_files
(path)
eagle/train/main_deepspeed.py:91
↓ 1 callersFunctionlist_files
(path)
eagle/train/main.py:100
↓ 1 callersFunctionload_balancing_loss_func
r""" Computes auxiliary load balancing loss as in Switch Transformer - implemented in Pytorch. See Switch Transformer (https://arxiv.org/abs/
eagle/model/modeling_mixtral_kv.py:127
↓ 1 callersMethodmax_depth
(self)
eagle/modeling_eagle.py:599
↓ 1 callersMethodmax_depth
(self)
eagle/testbug/model/utils_c.py:69
↓ 1 callersMethodmax_depth
(self)
eagle/model/utils_c.py:72
↓ 1 callersFunctionmerge_dicts
合并多个 Counter 字典
eagle/traineagle3/cnets.py:472
↓ 1 callersMethodnaive_generate
( self, input_ids, temperature=0.0, top_p=0.0, top
eagle/model/ea_model.py:486
↓ 1 callersMethodnum_node_wchild
(self)
eagle/modeling_eagle.py:602
↓ 1 callersMethodnum_node_wchild
(self)
eagle/testbug/model/utils_c.py:72
↓ 1 callersMethodnum_node_wchild
(self)
eagle/model/utils_c.py:75
↓ 1 callersFunctionpad_path
Pad the given path list with a specific value up to a specified length. Parameters: - path (list): The original list that needs padd
eagle/modeling_eagle.py:975
↓ 1 callersFunctionpad_path
Pad the given path list with a specific value up to a specified length. Parameters: - path (list): The original list that needs padding.
eagle/testbug/model/utils.py:60
↓ 1 callersFunctionpad_path
Pad the given path list with a specific value up to a specified length. Parameters: - path (list): The original list that needs padding.
eagle/model/utils.py:62
↓ 1 callersMethodpaddingtensor2D
(self, intensors, N)
eagle/train/main_deepspeed.py:178
↓ 1 callersMethodpaddingtensor2D
(self, intensors, N)
eagle/train/main.py:187
↓ 1 callersFunctionprepare_logits_processor
( temperature=0.0, repetition_penalty=0.0, top_p=0.0, top_k=0 )
eagle/modeling_eagle.py:960
↓ 1 callersFunctionreorg_answer_file
Sort by question id and de-duplication
eagle/evaluation/gen_ea_alpha_llama2chat.py:366
↓ 1 callersFunctionreorg_answer_file
Sort by question id and de-duplication
eagle/evaluation/gen_ea_answer_mix.py:273
↓ 1 callersFunctionreorg_answer_file
Sort by question id and de-duplication
eagle/evaluation/gen_baseline_answer_mix.py:336
↓ 1 callersFunctionreorg_answer_file
Sort by question id and de-duplication
eagle/evaluation/gen_ea_answer_ds.py:300
↓ 1 callersFunctionreorg_answer_file
Sort by question id and de-duplication
eagle/evaluation/gen_ea_alpha_vicuna.py:378
↓ 1 callersFunctionreorg_answer_file
Sort by question id and de-duplication
eagle/evaluation/gen_baseline_answer_llama3chat.py:306
↓ 1 callersFunctionreorg_answer_file
Sort by question id and de-duplication
eagle/evaluation/gen_ea_answer_qwen3.py:272
↓ 1 callersFunctionreorg_answer_file
Sort by question id and de-duplication
eagle/evaluation/gen_baseline_answer_llama2chat.py:335
← previousnext →101–200 of 596, ranked by callers