MCPcopy Create free account

hub / github.com/JIA-Lab-research/LongLoRA / functions

Functions157 in github.com/JIA-Lab-research/LongLoRA

Method__init__
(self, name, out_features, drop_path, img_size, pos_type, model_kwargs)
pdf2txt/backbone.py:35
Method__init__
( self, start_size=4, recent_size=512, k_seq_dim=2, v_seq_dim=2, )
streaming_llm/kv_cache.py:24
Method__len__
(self)
eval_distributed.py:56
Method__len__
(self)
supervised-fine-tune-qlora.py:202
Method__len__
(self)
supervised-fine-tune.py:201
Function_flash_attn_full
(query, key, value, attention_mask=None, head_mask=None)
gptneox_attn_replace.py:47
Function_flash_attn_ssa
(query, key, value, attention_mask=None, head_mask=None)
gptneox_attn_replace.py:31
Method_init_weights
(self, m)
pdf2txt/beit.py:514
Function_prepare_decoder_attention_mask
( self, attention_mask, input_shape, inputs_embeds, past_key_values_length )
llama_attn_replace.py:344
Function_prepare_decoder_attention_mask
( self, attention_mask, input_shape, inputs_embeds, past_key_values_length )
llama_attn_replace_sft.py:350
Function_prepare_decoder_attention_mask_inference
( self, attention_mask, input_shape, inputs_embeds, past_key_values_length )
llama_attn_replace.py:437
Function_prepare_decoder_attention_mask_inference
( self, attention_mask, input_shape, inputs_embeds, past_key_values_length )
llama_attn_replace_sft.py:443
Methodadd
(self, logits: torch.FloatTensor, labels: torch.LongTensor, model_output: object)
eval_distributed.py:134
Functionbeit_base_patch16
(pretrained=False, **kwargs)
pdf2txt/beit.py:606
Functionbeit_large_patch16
(pretrained=False, **kwargs)
pdf2txt/beit.py:620
Functionbuild_vit_fpn_backbone
Create a VIT w/ FPN backbone. Args: cfg: a detectron2 CfgNode Returns: backbone (Backbone): backbone module, must be a
pdf2txt/backbone.py:134
Methodcompute
(self)
eval_distributed.py:150
Functiondit_base_patch16
(pretrained=False, **kwargs)
pdf2txt/beit.py:634
Functiondit_large_patch16
(pretrained=False, **kwargs)
pdf2txt/beit.py:648
Functiondownload_url
Downloads the content of an url to a folder. Modified from \ https://github.com/pyg-team/pytorch_geometric/tree/master/torch_geometric A
streaming_llm/utils.py:75
Methodevict_range
(self, past_key_values, start, end)
streaming_llm/kv_cache.py:96
Methodextra_repr
(self)
pdf2txt/beit.py:54
Functionfalcon_pos_shift_attention_forward
( self, hidden_states: torch.Tensor, alibi: torch.Tensor, attention_mask: torch.Tensor, la
streaming_llm/pos_shift/modify_falcon.py:19
Methodforward
(self, x)
supervised-fine-tune-qlora.py:330
Methodforward
(self, x)
pdf2txt/beit.py:51
Methodforward
(self, x, rel_pos_bias=None, training_window_size=None)
pdf2txt/beit.py:135
Methodforward
(self, x, rel_pos_bias=None, training_window_size=None)
pdf2txt/beit.py:231
Methodforward
(self, x, position_embedding=None, **kwargs)
pdf2txt/beit.py:262
Methodforward
(self, x)
pdf2txt/beit.py:309
Methodforward
(self, training_window_size)
pdf2txt/beit.py:348
Methodforward
(self, x)
pdf2txt/beit.py:601
Methodforward
Args: x: Tensor of shape (N,C,H,W). H, W must be a multiple of ``self.size_divisibility``. Returns: dict[str
pdf2txt/backbone.py:91
Functionforward_attention
( self, hidden_states: torch.FloatTensor, attention_mask: torch.FloatTensor, p
gptneox_attn_replace.py:85
Functionforward_flashattn
Input shape: Batch x Time x Channel attention_mask: [bsz, q_len]
llama_attn_replace.py:22
Functionforward_flashattn
Input shape: Batch x Time x Channel attention_mask: [bsz, q_len]
llama_attn_replace_sft.py:24
Functionforward_flashattn_full
Input shape: Batch x Time x Channel attention_mask: [bsz, q_len]
llama_attn_replace.py:132
Functionforward_flashattn_full
Input shape: Batch x Time x Channel attention_mask: [bsz, q_len]
llama_attn_replace_sft.py:138
Functionforward_flashattn_inference
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
llama_attn_replace.py:364
Functionforward_flashattn_inference
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
llama_attn_replace_sft.py:370
Functionforward_noflashattn
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
llama_attn_replace.py:225
Functionforward_noflashattn
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
llama_attn_replace_sft.py:231
Methodget_num_layers
(self)
pdf2txt/beit.py:557
Functiongpt_neox_pos_shift_attention_forward
( self, hidden_states: torch.FloatTensor, attention_mask: torch.FloatTensor, position_ids: tor
streaming_llm/pos_shift/modify_gpt_neox.py:29
Functionllama_pos_shift_attention_forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
streaming_llm/pos_shift/modify_llama.py:36
Functionllama_pos_shift_attention_forward_flashattn
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
streaming_llm/pos_shift/modify_llama.py:169
Functionload_jsonl
( file_path, )
streaming_llm/utils.py:105
Methodno_weight_decay
(self)
pdf2txt/beit.py:561
Methodoutput_shape
(self)
pdf2txt/backbone.py:102
Functionparse_args
()
streaming_llm/utils.py:14
Methodrescale
(param, layer_id)
pdf2txt/beit.py:507
Functionresponse
(prompt)
inference-qlora.py:53
Functionresponse
(prompt)
inference.py:53
Functionresponse
(material, question)
demo.py:87
Functionslice1d
(x, start, end)
streaming_llm/kv_cache.py:12
Functionslice2d
(x, start, end)
streaming_llm/kv_cache.py:4
Functionslice3d
(x, start, end)
streaming_llm/kv_cache.py:8
Functiontokenize_fn
(tokenizer, example)
fine-tune.py:93
← previous101–157 of 157, ranked by callers