MCPcopy Create free account

hub / github.com/Ucas-HaoranWei/Vary / functions

Functions246 in github.com/Ucas-HaoranWei/Vary

Methodforward
(self, x: torch.Tensor)
Vary-master/vary/model/vision_encoder/sam.py:273
Methodforward
(self, x: torch.Tensor)
Vary-master/vary/model/vision_encoder/sam.py:440
Functionget_batch
Generate batch from context tokens.
Vary-master/vary/model/llm/qwen/qwen_generation_utils.py:94
Methodget_decoder
(self)
Vary-master/vary/model/llm/opt/modeling_opt.py:832
Methodget_decoder
(self)
Vary-master/vary/model/llm/opt/modeling_opt.py:927
Methodget_input_embeddings
(self)
Vary-master/vary/model/llm/qwen/modeling_qwen.py:512
Methodget_input_embeddings
(self)
Vary-master/vary/model/llm/opt/modeling_opt.py:571
Methodget_input_embeddings
(self)
Vary-master/vary/model/llm/opt/modeling_opt.py:912
Methodget_output_embeddings
(self)
Vary-master/vary/model/llm/qwen/modeling_qwen.py:766
Functionget_peft_state_maybe_zero_3
(named_params, bias)
Vary-master/vary/utils/utils.py:194
Functionget_peft_state_non_lora_maybe_zero_3
(named_params, require_grad_only=True)
Vary-master/vary/utils/utils.py:219
Methodget_vocab
(self)
Vary-master/vary/model/llm/qwen/tokenization_qwen.py:92
Functionidentity_func
(img)
Vary-master/vary/model/plug/blip_process.py:46
Methodinitialize_vision_modules
( self, vision_tower, pretrained_stage1_model=None, freeze_vision_tower=False
Vary-master/vary/model/vary_qwen_vary.py:55
Methodinitialize_vision_tokenizer
( self, tokenizer, freeze_lm_model=False, pretrained_stage1_model=None,
Vary-master/vary/model/vary_qwen_vary.py:365
Functionlevel_to_args
(level)
Vary-master/vary/model/plug/blip_process.py:255
Functionnone_level_to_args
(level)
Vary-master/vary/model/plug/blip_process.py:297
Functionpad_batch
(batch: BatchTokensType, pad_id: int, seq_length: int)
Vary-master/vary/model/llm/qwen/qwen_generation_utils.py:25
Functionposterize_func
same output as PIL.ImageOps.posterize
Vary-master/vary/model/plug/blip_process.py:223
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs )
Vary-master/vary/model/vary_qwen_vary.py:328
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs )
Vary-master/vary/model/vary_opt.py:293
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs )
Vary-master/vary/model/llm/qwen/modeling_qwen.py:772
Methodprepare_inputs_for_generation
( self, input_ids=None, query_embeds=None, past=None, attention_mask=N
Vary-master/vary/model/llm/opt/modeling_opt.py:1079
Functionpretty_print_semaphore
(semaphore)
Vary-master/vary/utils/utils.py:124
Functionrotate_func
like PIL, rotate by degree, not radians
Vary-master/vary/model/plug/blip_process.py:107
Methodsave_vocabulary
Save only the vocabulary of the tokenizer (vocabulary). Returns: `Tuple(str)`: Paths to the files saved.
Vary-master/vary/model/llm/qwen/tokenization_qwen.py:120
Methodset_decoder
(self, decoder)
Vary-master/vary/model/llm/opt/modeling_opt.py:924
Methodset_input_embeddings
(self, new_embeddings)
Vary-master/vary/model/llm/qwen/modeling_qwen.py:515
Methodset_input_embeddings
(self, value)
Vary-master/vary/model/llm/opt/modeling_opt.py:574
Methodset_input_embeddings
(self, value)
Vary-master/vary/model/llm/opt/modeling_opt.py:829
Methodset_input_embeddings
(self, value)
Vary-master/vary/model/llm/opt/modeling_opt.py:915
Methodset_output_embeddings
(self, new_embeddings)
Vary-master/vary/model/llm/qwen/modeling_qwen.py:769
Methodset_output_embeddings
(self, new_embeddings)
Vary-master/vary/model/llm/opt/modeling_opt.py:921
Functionsharpness_func
The differences the this result and PIL are all on the 4 boundaries, the center areas are same
Vary-master/vary/model/plug/blip_process.py:169
Functionshear_x_func
(img, factor, fill=(0, 0, 0))
Vary-master/vary/model/plug/blip_process.py:190
Functionshear_y_func
(img, factor, fill=(0, 0, 0))
Vary-master/vary/model/plug/blip_process.py:231
Functionsolarize_func
same output as PIL.ImageOps.posterize
Vary-master/vary/model/plug/blip_process.py:118
Methodstream_generator
()
Vary-master/vary/model/llm/qwen/modeling_qwen.py:986
Functionswitch
(val1, val2, boolean)
Vary-master/vary/model/llm/qwen/qwen_generation_utils.py:418
Methodto_gradio_chatbot
(self)
Vary-master/vary/utils/conversation.py:122
Methodtokenize
Converts a string in a sequence of tokens. Args: text (`str`): The sequence to be encoded. a
Vary-master/vary/model/llm/qwen/tokenization_qwen.py:134
Functiontop_k_logits
This function has been mostly taken from huggingface conversational ai code at https://medium.com/huggingface/how-to-build-a-state-of-the-
Vary-master/vary/model/llm/qwen/qwen_generation_utils.py:388
Functiontranslate_x_func
same output as PIL.Image.transform
Vary-master/vary/model/plug/blip_process.py:199
Functiontranslate_y_func
same output as PIL.Image.transform
Vary-master/vary/model/plug/blip_process.py:211
Functionviolates_moderation
Check whether the text violates OpenAI moderation API.
Vary-master/vary/utils/utils.py:103
Methodvocab_size
(self)
Vary-master/vary/model/llm/qwen/tokenization_qwen.py:191
← previous201–246 of 246, ranked by callers