MCPcopy Create free account

hub / github.com/Alpha-VLLM/LLaMA2-Accessory / functions

Functions1,094 in github.com/Alpha-VLLM/LLaMA2-Accessory

Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/llama_qformerv2_peft.py:251
Methodforward
(self, examples, image=None)
accessory/model/LLM/llama_qformerv2_peft.py:324
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/mixtral_sparse_ens5.py:125
Methodforward
x: (bsz, per_item_sequence_length, model_dim) sequence_length == bsz * per_item_sequence_length
accessory/model/LLM/mixtral_sparse_ens5.py:411
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/mixtral_sparse_ens5.py:521
Methodforward
(self, examples, image=None)
accessory/model/LLM/mixtral_sparse_ens5.py:750
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/llama_ens5p2.py:97
Methodforward
(self, x)
accessory/model/LLM/llama_ens5p2.py:216
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/llama_ens5p2.py:243
Methodforward
(self, examples, image=None)
accessory/model/LLM/llama_ens5p2.py:470
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/mixtral_sparse.py:119
Methodforward
x: (bsz, per_item_sequence_length, model_dim) sequence_length == bsz * per_item_sequence_length
accessory/model/LLM/mixtral_sparse.py:405
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/mixtral_sparse.py:515
Methodforward
(self, examples, image=None)
accessory/model/LLM/mixtral_sparse.py:606
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/llama_ens.py:97
Methodforward
(self, x)
accessory/model/LLM/llama_ens.py:216
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/llama_ens.py:243
Methodforward
(self, examples, image=None)
accessory/model/LLM/llama_ens.py:451
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/llama_qformerv2.py:91
Methodforward
(self, x)
accessory/model/LLM/llama_qformerv2.py:210
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/llama_qformerv2.py:237
Methodforward
(self, examples, image=None)
accessory/model/LLM/llama_qformerv2.py:305
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/mixtral.py:101
Methodforward
(self, x)
accessory/model/LLM/mixtral.py:217
Methodforward
(self, x)
accessory/model/LLM/mixtral.py:266
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/mixtral.py:321
Methodforward
(self, examples, image=None)
accessory/model/LLM/mixtral.py:412
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/llama_peft.py:101
Methodforward
(self, x)
accessory/model/LLM/llama_peft.py:224
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/llama_peft.py:252
Methodforward
(self, examples, image=None)
accessory/model/LLM/llama_peft.py:346
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/llama_ens_light.py:98
Methodforward
(self, x)
accessory/model/LLM/llama_ens_light.py:217
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/llama_ens_light.py:244
Methodforward
(self, examples, image=None)
accessory/model/LLM/llama_ens_light.py:411
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/llama_adapter.py:113
Methodforward
(self, x)
accessory/model/LLM/llama_adapter.py:264
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Optional[torch.Tensor]
accessory/model/LLM/llama_adapter.py:292
Methodforward
(self, examples, image=None)
accessory/model/LLM/llama_adapter.py:446
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/llama_ens_peft.py:107
Methodforward
(self, x)
accessory/model/LLM/llama_ens_peft.py:230
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/llama_ens_peft.py:258
Methodforward
(self, examples, image=None)
accessory/model/LLM/llama_ens_peft.py:471
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/mixtral_sparse_ens.py:123
Methodforward
x: (bsz, per_item_sequence_length, model_dim) sequence_length == bsz * per_item_sequence_length
accessory/model/LLM/mixtral_sparse_ens.py:409
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/mixtral_sparse_ens.py:519
Methodforward
(self, examples, image=None)
accessory/model/LLM/mixtral_sparse_ens.py:721
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/internlm.py:97
Methodforward
(self, x)
accessory/model/LLM/internlm.py:199
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/internlm.py:258
Methodforward
(self, examples, image=None)
accessory/model/LLM/internlm.py:327
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/llama_ens5_light.py:98
Methodforward
(self, x)
accessory/model/LLM/llama_ens5_light.py:217
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/llama_ens5_light.py:244
Methodforward
(self, examples, image=None)
accessory/model/LLM/llama_ens5_light.py:426
Functionforward_ColumnParallelLinear
(self, input_: torch.Tensor)
accessory/util/quant.py:18
Functionforward_Linear
(self, input: torch.Tensor)
accessory/util/quant.py:89
Functionforward_LoraColumnParallelLinear
(self, input_: torch.Tensor)
accessory/util/quant.py:48
Functionforward_LoraRowParallelLinear
(self, input_: torch.Tensor)
accessory/util/quant.py:70
Functionforward_RowParallelLinear
(self, input_: torch.Tensor)
accessory/util/quant.py:32
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/mixtral_peft.py:463
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/llama_ens10.py:494
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/falcon.py:338
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/llama_ens5.py:491
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/llama_qformerv2_peft.py:347
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/mixtral_sparse_ens5.py:787
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/llama_ens5p2.py:500
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/mixtral_sparse.py:635
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/llama_ens.py:474
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/llama_qformerv2.py:328
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/mixtral.py:442
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/llama_peft.py:368
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/llama_ens_light.py:434
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/llama_adapter.py:478
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/llama_ens_peft.py:494
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/mixtral_sparse_ens.py:751
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/internlm.py:351
Methodforward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/llama_ens5_light.py:456
Methodforward_with_cfg
Forward pass of DiT, but also batches the unconditional forward pass for classifier-free guidance.
Large-DiT-ImageNet/models.py:577
Methodforward_with_cfg
Forward pass of DiT, but also batches the unconditional forward pass for classifier-free guidance.
Large-DiT-T2I/models/model.py:666
Functiongenerate
( image, prompt, question_input, system_prompt, max_gen_len, g
accessory/demos/single_turn_mm.py:86
Functiongenerate
( prompt, question_input, system_prompt, max_gen_len, gen_t, top_p )
accessory/demos/single_turn.py:89
Methodgenerate
Wraps `accessory.model.MetaModel.generate` :param args: Positional arguments for 'MetaModel.generate'. :param kwargs: Keywor
accessory/model/multi_gpu_wrapper.py:231
Methodgenerate_response
Args: qas: A list of question answer pairs in the form of `[[q1, a1], [q2,a2], ... , [qn, None]]`. last answer s
SPHINX/sphinx.py:11
Methodgenerate_response
Args: qas: A list of question answer pairs in the form of `[[q1, a1], [q2,a2], ... , [qn, None]]`. last answer s
accessory/eval_mm/sphinx.py:11
MethodgetImgIds
Get image ids that satisfy given filter conditions. default skips that filter. :param quesIds (int array) : get image ids for gi
accessory/eval_mm/utils/vqa.py:114
Functionget_chunk
(lst, n, k)
light-eval/src/eval_mmvet.py:85
Methodget_master_weight
(self)
accessory/model/peft.py:138
Methodget_master_weight
(self)
accessory/model/peft.py:248
Functionget_named_beta_schedule
Get a pre-defined beta schedule for the given name. The beta schedule library consists of beta schedules which remain similar in the limi
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:98
Functionget_named_beta_schedule
Get a pre-defined beta schedule for the given name. The beta schedule library consists of beta schedules which remain similar in the limi
Large-DiT-T2I/diffusion/gaussian_diffusion.py:98
Methodget_quant_blocklist
(self)
accessory/model/LLM/llama_ens10.py:544
Methodget_quant_blocklist
(self)
accessory/model/LLM/llama_ens5.py:541
Methodget_quant_blocklist
(self)
accessory/model/LLM/mixtral_sparse_ens5.py:837
Methodget_quant_blocklist
(self)
accessory/model/LLM/llama_ens.py:523
Methodget_quant_blocklist
(self)
accessory/model/LLM/llama_ens_light.py:483
Methodget_quant_blocklist
(self)
accessory/model/LLM/mixtral_sparse_ens.py:800
Methodget_quant_blocklist
(self)
accessory/model/LLM/llama_ens5_light.py:506
Methodget_trainable_params
(self)
accessory/model/LLM/mixtral_peft.py:382
Methodget_trainable_params
(self)
accessory/model/LLM/llama_ens10.py:342
← previousnext →901–1,000 of 1,094, ranked by callers