Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenMOSS/rope_pp
/ functions
Functions
305 in github.com/OpenMOSS/rope_pp
⨍
Functions
305
◇
Types & classes
79
↳
Endpoints
5
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
Function
apply_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
Method
apply_rotary_pos_emb
(self, pos_sin, pos_cos, t, inverse=False)
rope_pp/modeling_llama_fope.py:674
Function
eager_attention_forward
( module: nn.Module, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attentio
rope_pp/modeling_llama_pythia.py:196
Function
eager_attention_forward
( module: nn.Module, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attentio
rope_pp/modeling_llama_alibi.py:190
Function
eager_attention_forward
( module: nn.Module, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attentio
rope_pp/modeling_llama_fope.py:878
Function
eager_attention_forward
( module: nn.Module, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attentio
rope_pp/modeling_llama_mask.py:158
Function
eager_attention_forward
( module: nn.Module, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, attentio
rope_pp/modeling_llama_rope_pp.py:166
Method
extra_repr
(self)
rope_pp/modeling_llama_pythia.py:85
Method
extra_repr
(self)
rope_pp/modeling_llama_alibi.py:87
Method
extra_repr
(self)
rope_pp/modeling_llama_fope.py:71
Method
extra_repr
(self)
rope_pp/modeling_llama_mask.py:70
Method
extra_repr
(self)
rope_pp/modeling_llama_rope_pp.py:70
Method
find_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
Method
find_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
Method
forward
(self, hidden_states)
rope_pp/modeling_llama_pythia.py:78
Method
forward
(self, x, position_ids)
rope_pp/modeling_llama_pythia.py:112
Method
forward
(self, x)
rope_pp/modeling_llama_pythia.py:179
Method
forward
( self, hidden_states: torch.Tensor, position_embeddings: Tuple[torch.Tensor, torch.Te
rope_pp/modeling_llama_pythia.py:248
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
rope_pp/modeling_llama_pythia.py:309
Method
forward
( self, input_ids: Optional[torch.LongTensor] = None, attention_mask: Optional[torch.T
rope_pp/modeling_llama_pythia.py:502
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked lan
rope_pp/modeling_llama_pythia.py:779
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
rope_pp/modeling_llama_pythia.py:897
Method
forward
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
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
rope_pp/modeling_llama_pythia.py:1083
Method
forward
(self, hidden_states)
rope_pp/modeling_llama_alibi.py:80
Method
forward
(self, x, position_ids)
rope_pp/modeling_llama_alibi.py:114
Method
forward
(self, x)
rope_pp/modeling_llama_alibi.py:173
Method
forward
( self, hidden_states: torch.Tensor, position_embeddings: Optional[Tuple[torch.Tensor,
rope_pp/modeling_llama_alibi.py:353
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
rope_pp/modeling_llama_alibi.py:426
Method
forward
( self, input_ids: Optional[torch.LongTensor] = None, attention_mask: Optional[torch.T
rope_pp/modeling_llama_alibi.py:619
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked lan
rope_pp/modeling_llama_alibi.py:896
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
rope_pp/modeling_llama_alibi.py:1014
Method
forward
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
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
rope_pp/modeling_llama_alibi.py:1200
Method
forward
(self, hidden_states)
rope_pp/modeling_llama_fope.py:64
Method
forward
(self, x, position_ids)
rope_pp/modeling_llama_fope.py:178
Method
forward
( self, x: torch.Tensor, all_len: int, layer_idx: Optional[int] = None,
rope_pp/modeling_llama_fope.py:528
Method
forward
(self, x)
rope_pp/modeling_llama_fope.py:861
Method
forward
( self, hidden_states: torch.Tensor, position_embeddings: Tuple[torch.Tensor, torch.Te
rope_pp/modeling_llama_fope.py:1009
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
rope_pp/modeling_llama_fope.py:1081
Method
forward
( self, input_ids: Optional[torch.LongTensor] = None, attention_mask: Optional[torch.T
rope_pp/modeling_llama_fope.py:1274
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked lan
rope_pp/modeling_llama_fope.py:1551
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
rope_pp/modeling_llama_fope.py:1668
Method
forward
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
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
rope_pp/modeling_llama_fope.py:1854
← previous
next →
101–200 of 305, ranked by callers