Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ucas-HaoranWei/Vary
/ functions
Functions
246 in github.com/Ucas-HaoranWei/Vary
⨍
Functions
246
◇
Types & classes
52
↳
Endpoints
1
Method
forward
(self, x: torch.Tensor)
Vary-master/vary/model/vision_encoder/sam.py:273
Method
forward
(self, x: torch.Tensor)
Vary-master/vary/model/vision_encoder/sam.py:440
Function
get_batch
Generate batch from context tokens.
Vary-master/vary/model/llm/qwen/qwen_generation_utils.py:94
Method
get_decoder
(self)
Vary-master/vary/model/llm/opt/modeling_opt.py:832
Method
get_decoder
(self)
Vary-master/vary/model/llm/opt/modeling_opt.py:927
Method
get_input_embeddings
(self)
Vary-master/vary/model/llm/qwen/modeling_qwen.py:512
Method
get_input_embeddings
(self)
Vary-master/vary/model/llm/opt/modeling_opt.py:571
Method
get_input_embeddings
(self)
Vary-master/vary/model/llm/opt/modeling_opt.py:912
Method
get_output_embeddings
(self)
Vary-master/vary/model/llm/qwen/modeling_qwen.py:766
Function
get_peft_state_maybe_zero_3
(named_params, bias)
Vary-master/vary/utils/utils.py:194
Function
get_peft_state_non_lora_maybe_zero_3
(named_params, require_grad_only=True)
Vary-master/vary/utils/utils.py:219
Method
get_vocab
(self)
Vary-master/vary/model/llm/qwen/tokenization_qwen.py:92
Function
identity_func
(img)
Vary-master/vary/model/plug/blip_process.py:46
Method
initialize_vision_modules
( self, vision_tower, pretrained_stage1_model=None, freeze_vision_tower=False
Vary-master/vary/model/vary_qwen_vary.py:55
Method
initialize_vision_tokenizer
( self, tokenizer, freeze_lm_model=False, pretrained_stage1_model=None,
Vary-master/vary/model/vary_qwen_vary.py:365
Function
level_to_args
(level)
Vary-master/vary/model/plug/blip_process.py:255
Function
none_level_to_args
(level)
Vary-master/vary/model/plug/blip_process.py:297
Function
pad_batch
(batch: BatchTokensType, pad_id: int, seq_length: int)
Vary-master/vary/model/llm/qwen/qwen_generation_utils.py:25
Function
posterize_func
same output as PIL.ImageOps.posterize
Vary-master/vary/model/plug/blip_process.py:223
Method
prepare_inputs_for_generation
( self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs )
Vary-master/vary/model/vary_qwen_vary.py:328
Method
prepare_inputs_for_generation
( self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs )
Vary-master/vary/model/vary_opt.py:293
Method
prepare_inputs_for_generation
( self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs )
Vary-master/vary/model/llm/qwen/modeling_qwen.py:772
Method
prepare_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
Function
pretty_print_semaphore
(semaphore)
Vary-master/vary/utils/utils.py:124
Function
rotate_func
like PIL, rotate by degree, not radians
Vary-master/vary/model/plug/blip_process.py:107
Method
save_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
Method
set_decoder
(self, decoder)
Vary-master/vary/model/llm/opt/modeling_opt.py:924
Method
set_input_embeddings
(self, new_embeddings)
Vary-master/vary/model/llm/qwen/modeling_qwen.py:515
Method
set_input_embeddings
(self, value)
Vary-master/vary/model/llm/opt/modeling_opt.py:574
Method
set_input_embeddings
(self, value)
Vary-master/vary/model/llm/opt/modeling_opt.py:829
Method
set_input_embeddings
(self, value)
Vary-master/vary/model/llm/opt/modeling_opt.py:915
Method
set_output_embeddings
(self, new_embeddings)
Vary-master/vary/model/llm/qwen/modeling_qwen.py:769
Method
set_output_embeddings
(self, new_embeddings)
Vary-master/vary/model/llm/opt/modeling_opt.py:921
Function
sharpness_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
Function
shear_x_func
(img, factor, fill=(0, 0, 0))
Vary-master/vary/model/plug/blip_process.py:190
Function
shear_y_func
(img, factor, fill=(0, 0, 0))
Vary-master/vary/model/plug/blip_process.py:231
Function
solarize_func
same output as PIL.ImageOps.posterize
Vary-master/vary/model/plug/blip_process.py:118
Method
stream_generator
()
Vary-master/vary/model/llm/qwen/modeling_qwen.py:986
Function
switch
(val1, val2, boolean)
Vary-master/vary/model/llm/qwen/qwen_generation_utils.py:418
Method
to_gradio_chatbot
(self)
Vary-master/vary/utils/conversation.py:122
Method
tokenize
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
Function
top_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
Function
translate_x_func
same output as PIL.Image.transform
Vary-master/vary/model/plug/blip_process.py:199
Function
translate_y_func
same output as PIL.Image.transform
Vary-master/vary/model/plug/blip_process.py:211
Function
violates_moderation
Check whether the text violates OpenAI moderation API.
Vary-master/vary/utils/utils.py:103
Method
vocab_size
(self)
Vary-master/vary/model/llm/qwen/tokenization_qwen.py:191
← previous
201–246 of 246, ranked by callers