MCPcopy Create free account

hub / github.com/OpenMOSS/rope_pp / functions

Functions305 in github.com/OpenMOSS/rope_pp

Method__init__
(self, config)
rope_pp/modeling_llama_alibi.py:1093
Method__init__
(self, config)
rope_pp/modeling_llama_alibi.py:1171
Method__init__
LlamaRMSNorm is equivalent to T5LayerNorm
rope_pp/modeling_llama_fope.py:56
Method__init__
(self, config: LlamaConfig, device=None)
rope_pp/modeling_llama_fope.py:159
Method__init__
( self, config: LlamaConfig, cache: int = None, dim: int = None, n_
rope_pp/modeling_llama_fope.py:202
Method__init__
(self, config, *args, **kwargs)
rope_pp/modeling_llama_fope.py:568
Method__init__
(self, config: LlamaConfig, layer_idx: int)
rope_pp/modeling_llama_fope.py:907
Method__init__
(self, config: LlamaConfig, layer_idx: int)
rope_pp/modeling_llama_fope.py:1071
Method__init__
(self, config: LlamaConfig)
rope_pp/modeling_llama_fope.py:1250
Method__init__
(self, config)
rope_pp/modeling_llama_fope.py:1519
Method__init__
(self, config)
rope_pp/modeling_llama_fope.py:1651
Method__init__
(self, config)
rope_pp/modeling_llama_fope.py:1747
Method__init__
(self, config)
rope_pp/modeling_llama_fope.py:1825
Method__init__
( self, vocab_size=32000, hidden_size=4096, intermediate_size=11008, n
rope_pp/configuration_llama.py:141
Method__init__
LlamaRMSNorm is equivalent to T5LayerNorm
rope_pp/modeling_llama_mask.py:55
Method__init__
(self, config: LlamaConfig, device=None)
rope_pp/modeling_llama_mask.py:78
Method__init__
(self, config: LlamaConfig, layer_idx: int)
rope_pp/modeling_llama_mask.py:187
Method__init__
(self, config: LlamaConfig, layer_idx: int)
rope_pp/modeling_llama_mask.py:331
Method__init__
(self, config: LlamaConfig)
rope_pp/modeling_llama_mask.py:510
Method__init__
(self, config)
rope_pp/modeling_llama_mask.py:778
Method__init__
(self, config)
rope_pp/modeling_llama_mask.py:910
Method__init__
(self, config)
rope_pp/modeling_llama_mask.py:1006
Method__init__
(self, config)
rope_pp/modeling_llama_mask.py:1084
Method__init__
(self, stop_words: List[str], tokenizer, batch_size: int)
rope_pp/mask_wrapper.py:27
Method__init__
(self, path: str, model_kwargs: dict = dict(), tokenizer_pa
rope_pp/mask_wrapper.py:100
Method__init__
(self, stop_words: List[str], tokenizer, batch_size: int)
rope_pp/rope_pp_wrapper.py:27
Method__init__
(self, path: str, model_kwargs: dict = dict(), tokenizer_pa
rope_pp/rope_pp_wrapper.py:100
Method__init__
LlamaRMSNorm is equivalent to T5LayerNorm
rope_pp/modeling_llama_rope_pp.py:55
Method__init__
(self, config: LlamaConfig, device=None)
rope_pp/modeling_llama_rope_pp.py:78
Method__init__
(self, config: LlamaConfig, layer_idx: int)
rope_pp/modeling_llama_rope_pp.py:195
Method__init__
(self, config: LlamaConfig, layer_idx: int)
rope_pp/modeling_llama_rope_pp.py:332
Method__init__
(self, config: LlamaConfig)
rope_pp/modeling_llama_rope_pp.py:511
Method__init__
(self, config)
rope_pp/modeling_llama_rope_pp.py:779
Method__init__
(self, config)
rope_pp/modeling_llama_rope_pp.py:911
Method__init__
(self, config)
rope_pp/modeling_llama_rope_pp.py:1007
Method__init__
(self, config)
rope_pp/modeling_llama_rope_pp.py:1085
Method__init__
(self, stop_words: List[str], tokenizer, batch_size: int)
rope_pp/alibi_wrapper.py:27
Method__init__
(self, path: str, model_kwargs: dict = dict(), tokenizer_pa
rope_pp/alibi_wrapper.py:100
Method__init__
(self, stop_words: List[str], tokenizer, batch_size: int)
rope_pp/fope_wrapper.py:27
Method__init__
(self, path: str, model_kwargs: dict = dict(), tokenizer_pa
rope_pp/fope_wrapper.py:100
Method__len__
(self)
utils/dataset_utils.py:62
Method__len__
(self)
utils/dataset_utils.py:149
Method__len__
(self)
utils/dataset_utils.py:202
Method__repr__
(self)
rope_pp/modeling_llama_fope.py:847
Function_get_possible_max_seq_len
(max_seq_len, path)
rope_pp/pythia_wrapper.py:50
Function_get_possible_max_seq_len
(max_seq_len, path)
rope_pp/mask_wrapper.py:50
Function_get_possible_max_seq_len
(max_seq_len, path)
rope_pp/rope_pp_wrapper.py:50
Function_get_possible_max_seq_len
(max_seq_len, path)
rope_pp/alibi_wrapper.py:50
Function_get_possible_max_seq_len
(max_seq_len, path)
rope_pp/fope_wrapper.py:50
Method_init_weights
(self, module)
rope_pp/modeling_llama_pythia.py:387
Method_init_weights
(self, module)
rope_pp/modeling_llama_alibi.py:504
Method_init_weights
(self, module)
rope_pp/modeling_llama_fope.py:1159
Method_init_weights
(self, module)
rope_pp/modeling_llama_mask.py:419
Method_init_weights
(self, module)
rope_pp/modeling_llama_rope_pp.py:420
Method_save_checkpoint
(self, model, trial)
utils/trainer_utils.py:16
Functionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
rope_pp/modeling_llama_alibi.py:135
Methodapply_rotary_pos_emb
(self, pos_sin, pos_cos, t, inverse=False)
rope_pp/modeling_llama_fope.py:674
Functioneager_attention_forward
( module: nn.Module, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attentio
rope_pp/modeling_llama_pythia.py:196
Functioneager_attention_forward
( module: nn.Module, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attentio
rope_pp/modeling_llama_alibi.py:190
Functioneager_attention_forward
( module: nn.Module, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attentio
rope_pp/modeling_llama_fope.py:878
Functioneager_attention_forward
( module: nn.Module, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attentio
rope_pp/modeling_llama_mask.py:158
Functioneager_attention_forward
( module: nn.Module, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attentio
rope_pp/modeling_llama_rope_pp.py:166
Methodextra_repr
(self)
rope_pp/modeling_llama_pythia.py:85
Methodextra_repr
(self)
rope_pp/modeling_llama_alibi.py:87
Methodextra_repr
(self)
rope_pp/modeling_llama_fope.py:71
Methodextra_repr
(self)
rope_pp/modeling_llama_mask.py:70
Methodextra_repr
(self)
rope_pp/modeling_llama_rope_pp.py:70
Methodfind_correction_dim
(num_rotations, dim, base=self.config.rope_theta, orig_max_position_embeddings=self.config.len_extra_orig_leng
rope_pp/modeling_llama_fope.py:302
Methodfind_correction_range
(low_rot, high_rot, dim, base=self.config.rope_theta, orig_max_position_embeddings=self.config.len_extra_orig_
rope_pp/modeling_llama_fope.py:305
Methodforward
(self, hidden_states)
rope_pp/modeling_llama_pythia.py:78
Methodforward
(self, x, position_ids)
rope_pp/modeling_llama_pythia.py:112
Methodforward
(self, x)
rope_pp/modeling_llama_pythia.py:179
Methodforward
( self, hidden_states: torch.Tensor, position_embeddings: Tuple[torch.Tensor, torch.Te
rope_pp/modeling_llama_pythia.py:248
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
rope_pp/modeling_llama_pythia.py:309
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, attention_mask: Optional[torch.T
rope_pp/modeling_llama_pythia.py:502
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked lan
rope_pp/modeling_llama_pythia.py:779
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
rope_pp/modeling_llama_pythia.py:897
Methodforward
r""" start_positions (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for position (index) of the start of the la
rope_pp/modeling_llama_pythia.py:992
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
rope_pp/modeling_llama_pythia.py:1083
Methodforward
(self, hidden_states)
rope_pp/modeling_llama_alibi.py:80
Methodforward
(self, x, position_ids)
rope_pp/modeling_llama_alibi.py:114
Methodforward
(self, x)
rope_pp/modeling_llama_alibi.py:173
Methodforward
( self, hidden_states: torch.Tensor, position_embeddings: Optional[Tuple[torch.Tensor,
rope_pp/modeling_llama_alibi.py:353
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
rope_pp/modeling_llama_alibi.py:426
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, attention_mask: Optional[torch.T
rope_pp/modeling_llama_alibi.py:619
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked lan
rope_pp/modeling_llama_alibi.py:896
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
rope_pp/modeling_llama_alibi.py:1014
Methodforward
r""" start_positions (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for position (index) of the start of the la
rope_pp/modeling_llama_alibi.py:1109
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
rope_pp/modeling_llama_alibi.py:1200
Methodforward
(self, hidden_states)
rope_pp/modeling_llama_fope.py:64
Methodforward
(self, x, position_ids)
rope_pp/modeling_llama_fope.py:178
Methodforward
( self, x: torch.Tensor, all_len: int, layer_idx: Optional[int] = None,
rope_pp/modeling_llama_fope.py:528
Methodforward
(self, x)
rope_pp/modeling_llama_fope.py:861
Methodforward
( self, hidden_states: torch.Tensor, position_embeddings: Tuple[torch.Tensor, torch.Te
rope_pp/modeling_llama_fope.py:1009
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
rope_pp/modeling_llama_fope.py:1081
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, attention_mask: Optional[torch.T
rope_pp/modeling_llama_fope.py:1274
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked lan
rope_pp/modeling_llama_fope.py:1551
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
rope_pp/modeling_llama_fope.py:1668
Methodforward
r""" start_positions (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for position (index) of the start of the la
rope_pp/modeling_llama_fope.py:1763
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
rope_pp/modeling_llama_fope.py:1854
← previousnext →101–200 of 305, ranked by callers