Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ML-GSAI/LLaDA-V
/ functions
Functions
2,241 in github.com/ML-GSAI/LLaDA-V
⨍
Functions
2,241
◇
Types & classes
268
↳
Endpoints
31
↓ 143 callers
Method
update
Updates running moments from batch's moments computed across ranks
train/trl/trainer/utils.py:473
↓ 117 callers
Method
from_pretrained
(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs)
train/llava/model/multimodal_encoder/siglip_encoder.py:103
↓ 86 callers
Function
rank0_print
(*args)
train/llava/utils.py:73
↓ 78 callers
Method
append_message
(self, role, message)
eval/lmms-eval/lmms_eval/models/video_chatgpt/video_conversation.py:66
↓ 78 callers
Method
decode
This method forwards all its arguments to CLIPTokenizerFast's [`~PreTrainedTokenizer.decode`]. Please refer to the docstring of this
eval/lmms-eval/lmms_eval/models/mplug_owl_video/processing_mplug_owl.py:108
↓ 71 callers
Method
from_pretrained
(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs)
eval/lmms-eval/lmms_eval/models/mplug_owl_video/configuration_mplug_owl.py:107
↓ 67 callers
Function
tokenizer_image_token
(prompt, tokenizer, image_token_index=IMAGE_TOKEN_INDEX, return_tensors=None)
train/llava/mm_utils.py:342
↓ 41 callers
Method
get_prompt
(self, conv)
eval/lmms-eval/lmms_eval/models/videochat2.py:308
↓ 40 callers
Method
copy
(self)
eval/lmms-eval/lmms_eval/models/video_chatgpt/video_conversation.py:100
↓ 35 callers
Method
batch_decode
This method forwards all its arguments to CLIPTokenizerFast's [`~PreTrainedTokenizer.batch_decode`]. Please refer to the docstring of
eval/lmms-eval/lmms_eval/models/mplug_owl_video/processing_mplug_owl.py:101
↓ 34 callers
Method
generate
( self, pixel_values: Optional[torch.FloatTensor] = None, input_ids: Optional[torch.Fl
eval/lmms-eval/lmms_eval/models/internvl.py:370
↓ 33 callers
Method
flatten
(self, input)
eval/lmms-eval/lmms_eval/models/oryx.py:323
↓ 31 callers
Method
preprocess
(self, images, return_tensors)
train/llava/model/multimodal_encoder/siglip_encoder.py:47
↓ 29 callers
Method
get_model
(self)
train/llava/model/llava_arch.py:165
↓ 27 callers
Method
get_batched
Generates and yields batches from the reordered array. Parameters: - n (int): The size of each batch. Defaults to 1.
eval/lmms-eval/lmms_eval/utils.py:889
↓ 26 callers
Method
get_original
Restores the original order of elements from the reordered list. Parameters: - newarr (List): The reordered array.
eval/lmms-eval/lmms_eval/utils.py:927
↓ 24 callers
Method
save_pretrained
r""" Save the pretrained model to a directory. This method is a wrapper around `transformers.PreTrainedModel.save_pretrained`. Please
train/trl/models/modeling_base.py:498
↓ 24 callers
Method
to_gradio_chatbot
(self)
train/llava/conversation.py:257
↓ 23 callers
Function
load_pretrained_model
(model_path, model_base, model_name, load_8bit=False, load_4bit=False, device_map="auto", torch_dtype="float16
train/llava/model/builder.py:27
↓ 23 callers
Function
process_images
(images, image_processor, model_cfg)
train/llava/mm_utils.py:315
↓ 23 callers
Method
state_dict
r""" Return the state_dict of the pretrained model.
train/trl/models/modeling_base.py:527
↓ 22 callers
Method
add_partial
(self, attr, req, res)
eval/lmms-eval/lmms_eval/api/model.py:144
↓ 22 callers
Method
append_message
(self, role, message)
train/llava/conversation.py:185
↓ 22 callers
Method
copy
(self)
train/llava/conversation.py:295
↓ 22 callers
Method
log
Log `logs` on the various objects watching training, including stored metrics. Args: logs (`Dict[str, float]`):
train/trl/trainer/dpo_trainer.py:1162
↓ 20 callers
Function
generate_submission_file
(file_name, args, subpath="submissions")
eval/lmms-eval/lmms_eval/tasks/_task_utils/file_utils.py:4
↓ 20 callers
Function
is_peft_available
()
train/trl/import_utils.py:24
↓ 18 callers
Method
set_cache
( self, layer_id: int, feature_name: str, features: torch.Tensor, cache_type: str )
train/llava/cache/Cache.py:51
↓ 18 callers
Method
write
(self, buf)
train/llava/utils.py:143
↓ 17 callers
Function
masked_mean
Compute mean of tensor with a masked values.
train/trl/core.py:147
↓ 16 callers
Method
__init__
(self, config)
eval/lmms-eval/lmms_eval/models/mplug_owl_video/modeling_mplug_owl.py:320
↓ 16 callers
Function
read_video_pyav
(video_path, num_frm=8)
eval/lmms-eval/lmms_eval/models/model_utils/load_video.py:44
↓ 15 callers
Method
__init__
(self, model_args, vision_tower)
train/llava/model/multimodal_resampler/qformer.py:1103
↓ 15 callers
Method
model
(self)
eval/lmms-eval/lmms_eval/models/oryx.py:162
↓ 14 callers
Method
get_prompt
(self)
train/llava/conversation.py:47
↓ 14 callers
Method
tokenizer
Returns the tokenizer used for tokenizing text inputs
train/trl/models/modeling_sd_base.py:98
↓ 12 callers
Method
get_cache
( self, layer_id: int, feature_name: str, cache_type: str )
train/llava/cache/Cache.py:58
↓ 12 callers
Function
get_model_name_from_path
(model_path)
train/llava/mm_utils.py:364
↓ 11 callers
Method
post_init
r""" Post initialization method. This method is called after the model is instantiated and loaded from a checkpoint. It can be used to
train/trl/models/modeling_base.py:533
↓ 9 callers
Method
__init__
(self, config)
train/llava/model/language_model/modeling_llada.py:213
↓ 9 callers
Method
__init__
(self, config)
train/llava/model/multimodal_encoder/siglip_encoder.py:244
↓ 9 callers
Method
__init__
(self, config)
train/llada_v_prepare/files/modeling_llada.py:212
↓ 9 callers
Method
get_images
(self, return_pil=False, return_path=False)
train/llava/conversation.py:234
↓ 9 callers
Method
get_vision_tower
(self)
train/llava/model/llava_arch.py:48
↓ 9 callers
Method
group
(self)
eval/lmms-eval/lmms_eval/api/group.py:84
↓ 8 callers
Method
autocast
Returns the autocast context manager
train/trl/models/modeling_sd_base.py:119
↓ 8 callers
Method
doc_to_choice
(self, doc: Any)
eval/lmms-eval/lmms_eval/api/task.py:1336
↓ 8 callers
Method
doc_to_target
(self, doc)
eval/lmms-eval/lmms_eval/api/task.py:378
↓ 8 callers
Function
expand2square
(pil_img, background_color)
train/llava/mm_utils.py:301
↓ 8 callers
Method
get_input_embeddings
(self)
train/llava/model/multimodal_resampler/qformer.py:637
↓ 7 callers
Method
from_pretrained
r""" Instantiates a new model from a pretrained model from `transformers`. The pretrained model is loaded using the `from_pretrained`
train/trl/models/modeling_base.py:103
↓ 7 callers
Method
get_input_embeddings
(self)
eval/lmms-eval/lmms_eval/models/mplug_owl_video/modeling_mplug_owl.py:1192
↓ 7 callers
Method
group
Groups elements of an iterable based on a provided function. Parameters: - arr (Iterable): The iterable to be grouped.
eval/lmms-eval/lmms_eval/utils.py:952
↓ 7 callers
Method
run
Run the environment on a list of queries. Args: queries (list[str]): A list of queries to run the model in the environme
train/trl/environment/base_environment.py:263
↓ 7 callers
Method
transpose_for_scores
(self, x)
train/llava/model/multimodal_resampler/qformer.py:145
↓ 6 callers
Method
count
(splits, choices="ABCD", prefix="", suffix="")
eval/lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:86
↓ 6 callers
Method
get_model
(self)
eval/lmms-eval/lmms_eval/models/video_chatgpt/model/video_chatgpt.py:167
↓ 6 callers
Function
hash_string
(string: str)
eval/lmms-eval/lmms_eval/utils.py:58
↓ 6 callers
Function
listinstr
(lst, s)
eval/lmms-eval/lmms_eval/models/xcomposer2_4KHD.py:276
↓ 6 callers
Function
make_table
Generate table of results.
eval/lmms-eval/lmms_eval/utils.py:447
↓ 6 callers
Method
test_docs
:return: Iterable[obj] A iterable of any object, that doc_to_text can handle
eval/lmms-eval/lmms_eval/api/task.py:324
↓ 6 callers
Method
validation_docs
:return: Iterable[obj] A iterable of any object, that doc_to_text can handle
eval/lmms-eval/lmms_eval/api/task.py:317
↓ 5 callers
Method
_name_is_registered
(self, name)
eval/lmms-eval/lmms_eval/tasks/__init__.py:162
↓ 5 callers
Method
apply
Defines the operation to perform on a list of the `inst.resps` properties of `Instance` objects. Should return the list of (filtered)
eval/lmms-eval/lmms_eval/api/filter.py:23
↓ 5 callers
Function
build_logger
(logger_name, logger_filename)
train/llava/utils.py:87
↓ 5 callers
Method
concatenated_forward
Run the given model on the given batch of inputs, concatenating the chosen and rejected inputs together. We do this to avoid doing two forwar
train/trl/trainer/dpo_trainer.py:846
↓ 5 callers
Method
doc_to_text
(self, doc)
eval/lmms-eval/lmms_eval/api/task.py:374
↓ 5 callers
Method
generate
Generate response with the model given the query tensor. call the `generate` method of the model. Args: query_te
train/trl/trainer/ppo_trainer.py:406
↓ 5 callers
Method
get_input_embeddings
(self)
train/llada_v_prepare/files/modeling_llada.py:938
↓ 5 callers
Method
get_output_embeddings
(self)
train/llava/model/language_model/modeling_llada.py:1154
↓ 5 callers
Method
get_prompt
(self)
eval/lmms-eval/lmms_eval/models/video_chatgpt/video_conversation.py:31
↓ 5 callers
Method
get_vision_tower
(self)
train/llava/model/llava_arch.py:168
↓ 5 callers
Function
is_xpu_available
()
train/trl/import_utils.py:84
↓ 5 callers
Method
list_all_tasks
(self, list_groups=True, list_tags=True, list_subtasks=True)
eval/lmms-eval/lmms_eval/tasks/__init__.py:97
↓ 5 callers
Method
load_json_data
(self, json_path)
train/playground/data_checker.py:29
↓ 5 callers
Method
pad_sequence
(self, input_ids, batch_first, padding_value)
train/llava/train/train.py:1524
↓ 5 callers
Method
post_init
(self, results: Dict[str, Any])
eval/lmms-eval/lmms_eval/loggers/wandb_logger.py:54
↓ 5 callers
Function
process_anyres_image
Process an image with variable resolutions. Args: image (PIL.Image.Image): The input image to be processed. processor: The i
train/llava/mm_utils.py:244
↓ 5 callers
Method
process_images
(self, images, image_processor, model_cfg)
eval/lmms-eval/lmms_eval/models/auroracap.py:218
↓ 5 callers
Method
push_to_hub
Overwrite the `push_to_hub` method in order to force-add the tag "sft" when pushing the model on the Hub. Please refer to `~transform
train/trl/trainer/dpo_trainer.py:1179
↓ 5 callers
Function
rotate_half
Rotates half the hidden dims of the input.
train/llava/hooks/cache_hook_LLaDA_V.py:9
↓ 5 callers
Method
to_dict
Serializes this instance to a Python dictionary. Override the default [`~PretrainedConfig.to_dict`]. Returns: `Dict[str,
eval/lmms-eval/lmms_eval/models/mplug_owl_video/configuration_mplug_owl.py:274
↓ 4 callers
Method
_get_config
(self, name)
eval/lmms-eval/lmms_eval/tasks/__init__.py:207
↓ 4 callers
Function
_tokenize_str
(role, content)
eval/lmms-eval/lmms_eval/models/cambrian.py:79
↓ 4 callers
Function
_tokenize_str
(role, content)
eval/lmms-eval/lmms_eval/models/model_utils/qwen/qwen_generate_utils.py:135
↓ 4 callers
Function
call_attention_on_qkv
(q_tensor, k_tensor, v_tensor, original_full_attention_bias,
train/llava/hooks/cache_hook_LLaDA_V.py:263
↓ 4 callers
Function
compute_mlp
(input_to_mlp: torch.Tensor)
train/llava/hooks/cache_hook_LLaDA_V.py:299
↓ 4 callers
Function
create_custom_forward
(module)
eval/lmms-eval/lmms_eval/models/mplug_owl_video/modeling_mplug_owl.py:1803
↓ 4 callers
Method
create_options_prompt
(self, row_data, option_candidate)
eval/lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:22
↓ 4 callers
Method
device
(self)
eval/lmms-eval/lmms_eval/models/oryx.py:191
↓ 4 callers
Method
device
(self)
train/llava/model/multimodal_encoder/imagebind.py:68
↓ 4 callers
Method
dict
(self)
train/llava/conversation.py:298
↓ 4 callers
Method
doc_to_target
(self, doc: dict)
eval/lmms-eval/lmms_eval/api/task.py:1281
↓ 4 callers
Method
doc_to_text
(self, doc)
eval/lmms-eval/lmms_eval/api/task.py:1244
↓ 4 callers
Method
eval_result
(self, results, eval_method)
eval/lmms-eval/lmms_eval/tasks/mmbench/mmbench_evals.py:239
↓ 4 callers
Function
exists
(val)
train/llava/model/multimodal_resampler/perceiver.py:16
↓ 4 callers
Function
flatten_dict
Flatten dictionary and concatenate nested keys with separator.
train/trl/core.py:72
↓ 4 callers
Function
get_file_datetime
Given the results and sample results filenames, extracts and returns the datetime.
eval/lmms-eval/lmms_eval/utils.py:235
↓ 4 callers
Function
get_length_grouped_indices_auto_single
(lengths, batch_size, world_size, generator=None)
train/llava/train/llava_trainer.py:152
↓ 4 callers
Function
get_metric_aggregation
(name)
eval/lmms-eval/lmms_eval/api/registry.py:145
next →
1–100 of 2,241, ranked by callers