MCPcopy Create free account

hub / github.com/ML-GSAI/LLaDA-o / functions

Functions450 in github.com/ML-GSAI/LLaDA-o

↓ 19 callersMethodencode
(self, x: Tensor)
modeling/autoencoder.py:315
↓ 18 callersFunctionpil_img2rgb
(image)
data/data_utils.py:118
↓ 13 callersMethod__init__
(self, config)
modeling/siglip/modeling_siglip.py:589
↓ 12 callersMethod_add_image
(self, data, image, need_loss, need_vae, need_vit, enable_cfg=True)
data/interleave_datasets/interleave_t2i_dataset.py:41
↓ 10 callersMethodset_epoch
(self, seed)
data/dataset_base.py:180
↓ 9 callersMethod__init__
(self, config)
modeling/llada/modeling_llada.py:212
↓ 9 callersMethodget_data_paths_per_worker
(self)
data/distributed_iterable_dataset.py:40
↓ 8 callersMethod__init__
(self, config)
modeling/lladao/siglip_navit.py:248
↓ 8 callersMethod__init__
(self, num_layers)
modeling/lladao/llada_navit.py:168
↓ 8 callersMethodforward_inference
( self, packed_query_sequence: torch.Tensor, query_lens: torch.Tensor, packed_
modeling/lladao/llada_navit.py:983
↓ 8 callersMethodfrom_pretrained
( cls, model_path: Union[str, os.PathLike[str]], max_mem_per_gpu: str = "40GiB",
demo_pipeline.py:132
↓ 8 callersFunctionwith_article
(name: str)
eval/gen/geneval/prompts/create_prompts.py:33
↓ 7 callersMethod__init__
( self, resolution: int, in_channels: int, ch: int, ch_mult: list[int]
modeling/autoencoder.py:123
↓ 7 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
modeling/llada/modeling_llada.py:184
↓ 7 callersMethoddecode
(self, z: Tensor)
modeling/autoencoder.py:320
↓ 6 callersMethod_add_text
(self, data, text, need_loss, enable_cfg=True)
data/interleave_datasets/interleave_t2i_dataset.py:26
↓ 6 callersFunctionpad_sequence
(tensor, pad_size)
modeling/lladao/llada_navit.py:190
↓ 5 callersMethoddecode
This method forwards all its arguments to SiglipTokenizer's [`~PreTrainedTokenizer.decode`]. Please refer to the docstring of this me
modeling/siglip/processing_siglip.py:112
↓ 5 callersMethodforward_cache_update_text
( self, past_key_values: NaiveCache, packed_text_ids: torch.IntTensor, packed_
modeling/lladao/lladao.py:463
↓ 4 callersMethod_init_data
(self)
data/interleave_datasets/interleave_t2i_dataset.py:17
↓ 4 callersFunctionadd_gumbel_noise
(logits, temperature)
modeling/lladao/lladao.py:27
↓ 4 callersMethodforward_for_generation
Forward pass for generation, returns logits
modeling/lladao/lladao.py:1869
↓ 4 callersMethodforward_for_generation_with_cache
Support generation forward pass with cache
modeling/lladao/lladao.py:1140
↓ 4 callersFunctionget_parquet_data_paths
(data_dir_list, num_sampled_data_paths=None, rank=0, world_size=1)
data/parquet_utils.py:15
↓ 4 callersFunctionget_webdataset_paths
(data_dir_list, num_sampled_data_paths=None, rank=0, world_size=1)
data/webdata_utils.py:13
↓ 4 callersFunctioninit_arrow_pf_fs
(parquet_file_path)
data/parquet_utils.py:83
↓ 4 callersMethodprepare_prompts
(self, curr_kvlens, curr_rope, prompts, tokenizer, new_token_ids)
modeling/lladao/lladao.py:428
↓ 4 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
modeling/llada/modeling_llada.py:245
↓ 4 callersFunctionswish
(x: Tensor)
modeling/autoencoder.py:34
↓ 3 callersMethod_apply_scale
(self, width, height, scale)
data/transforms.py:53
↓ 3 callersFunctionadd_special_tokens
(tokenizer)
data/data_utils.py:130
↓ 3 callersMethodconvert_conv2d_to_linear
(self, config, meta=False)
modeling/lladao/siglip_navit.py:167
↓ 3 callersMethodforward
(self, x)
modeling/llada/modeling_llada.py:222
↓ 3 callersMethodforward_cache_update_vit
( self, past_key_values: NaiveCache, packed_text_ids: torch.LongTensor, packed
modeling/lladao/lladao.py:558
↓ 3 callersFunctionload_ae
(local_path: str)
modeling/autoencoder.py:339
↓ 3 callersFunctionmove_generation_input_to_device
(generation_input, device)
eval/gen/gen_images_mp_dllm.py:29
↓ 3 callersFunctionpatchify
(image, patch_size)
data/data_utils.py:43
↓ 3 callersFunctionprepare_attention_mask_per_sample
nested_split_lens: A list of N lists of ints. Each int indicates the length of a split within a sample, where each sample contains multi
data/data_utils.py:72
↓ 3 callersMethodprepare_vae_latent_cfg
(self, curr_kvlens, curr_rope, image_sizes)
modeling/lladao/lladao.py:819
↓ 3 callersMethodprepare_vit_images
(self, curr_kvlens, curr_rope, images, transforms, new_token_ids)
modeling/lladao/lladao.py:495
↓ 3 callersFunctionset_seed
(seed: int = 42)
demo_pipeline.py:63
↓ 3 callersMethodset_sequence_status
(self)
data/dataset_base.py:199
↓ 3 callersMethodto_dict
(self)
data/dataset_base.py:843
↓ 2 callersMethod__init__
(self, text_config=None, vision_config=None, **kwargs)
modeling/siglip/configuration_siglip.py:261
↓ 2 callersMethod__init__
(self, in_dim: int, out_dim: int, hidden_act: str)
modeling/lladao/modeling_utils.py:114
↓ 2 callersMethod_add_eos_if_not_present
Do not add eos again if user already added it.
modeling/siglip/tokenization_siglip.py:180
↓ 2 callersMethod_find_safetensors_artifact
(checkpoint_dir, stem)
train/fsdp_utils.py:97
↓ 2 callersMethod_forward_one_side
(self, grid, inv_freq)
modeling/lladao/siglip_navit.py:124
↓ 2 callersMethod_generate_with_full_cache
Generate text from fully cached context All prompts and images are already in cache Args: confidence_thr
modeling/lladao/lladao.py:1203
↓ 2 callersMethod_load_model_from_safetensors_artifact
(target_model, artifact_path, logger, state_name)
train/fsdp_utils.py:137
↓ 2 callersMethod_make_divisible
Ensure the value is divisible by the stride.
data/transforms.py:49
↓ 2 callersMethodadd_noise
(self, input_ids, eps=1e-3, always_mask_last=False)
data/dataset_base.py:184
↓ 2 callersFunctionappend_file
(src_path, dst_file)
eval/gen/dpg_bench/compute_dpg_bench.py:214
↓ 2 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin)
modeling/lladao/siglip_navit.py:136
↓ 2 callersMethodattention
(self, h_: Tensor)
modeling/autoencoder.py:50
↓ 2 callersMethodchange_format
Convert multiple conversation formats to the internal elements list format. Supported formats: 1. [{'user': '...', '
data/parquet_dataset.py:44
↓ 2 callersMethodchange_format
Convert multiple conversation formats to internal elements list format. Supported formats: 1. [{'user': '...', 'assi
data/vlm_parquet_dataset.py:44
↓ 2 callersMethodchange_format
(self, data, num_images)
data/wds_dataset.py:42
↓ 2 callersFunctioncreate_logger
Create a logger that writes to a log file and stdout.
train/train_utils.py:8
↓ 2 callersMethodforward_train
( self, packed_sequence: torch.Tensor, sample_lens: List[int], attention_mask,
modeling/lladao/llada_navit.py:920
↓ 2 callersFunctionfsdp_wrapper
(original_model, fsdp_config, ignored_modules=[])
train/fsdp_utils.py:51
↓ 2 callersMethodgenerate_image
( self, packed_text_ids: torch.LongTensor, packed_text_indexes: torch.LongTensor,
modeling/lladao/lladao.py:856
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
modeling/lladao/modeling_utils.py:48
↓ 2 callersFunctionget_frame_indices
(num_frames, vlen, sample='rand', fix_start=None, input_fps=1, max_num_frames=-1)
data/video_utils.py:23
↓ 2 callersMethodget_input_embeddings
(self)
modeling/llada/modeling_llada.py:938
↓ 2 callersFunctionget_num_transfer_tokens
(mask_index, steps)
modeling/lladao/lladao.py:34
↓ 2 callersFunctionlen2weight
(x, loss_reduction='square')
data/data_utils.py:169
↓ 2 callersFunctionload_image
(image: ImageLike)
demo_pipeline.py:73
↓ 2 callersFunctionload_tile
(sample_path, resolution)
eval/gen/dpg_bench/build_dpg_grids.py:43
↓ 2 callersFunctionmake_rank_paths
(res_path, rank)
eval/gen/dpg_bench/compute_dpg_bench.py:48
↓ 2 callersFunctionnorm_cdf
(x)
modeling/siglip/modeling_siglip.py:49
↓ 2 callersMethodpack_sequence
(self, sample, sequence_status)
data/dataset_base.py:429
↓ 2 callersMethodprepare_vae_latent
(self, curr_kvlens, curr_rope, image_sizes, new_token_ids)
modeling/lladao/lladao.py:748
↓ 2 callersMethodremove_punctuation
(self, text: str)
modeling/siglip/tokenization_siglip.py:258
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
modeling/llada/modeling_llada.py:177
↓ 2 callersFunctionrotate_half
(x)
modeling/lladao/siglip_navit.py:130
↓ 2 callersMethodto_tensor
(self, sequence_status)
data/dataset_base.py:225
↓ 2 callersMethodupdate_context_text
(self, text, gen_context)
inferencer.py:31
↓ 2 callersFunctionvariance_scaling_
(tensor, scale=1.0, mode="fan_in", distribution="normal")
modeling/siglip/modeling_siglip.py:108
↓ 1 callersMethod__init__
(self, language_model, vit_model, repa_model, config: LLaDAOConfig)
modeling/lladao/lladao.py:101
↓ 1 callersMethod__init__
( self, max_image_size, min_image_size, image_stride, max_pixels=1
data/transforms.py:91
↓ 1 callersMethod__init__
( self, grouped_datasets, text_cond_dropout_prob=0.1, vit_cond_dropout_prob=
data/dataset_base.py:25
↓ 1 callersMethod__init__
data_dir_list: list of data directories contains parquet files num_used_data: list of number of sampled data paths for each data dire
data/interleave_datasets/interleave_t2i_dataset.py:139
↓ 1 callersFunction_build_device_map
(model: LLaDAO, max_mem_per_gpu: str)
demo_pipeline.py:86
↓ 1 callersMethod_flash_attention_forward
Calls the forward method of Flash Attention - if the input hidden states contain at least one padding token first unpad the input, th
modeling/llada/modeling_llada.py:504
↓ 1 callersMethod_forward_flow
( self, x_t: torch.Tensor, cls_t: torch.Tensor, timestep: torch.LongTensor,
modeling/lladao/lladao.py:951
↓ 1 callersFunction_get_unpad_data
(attention_mask)
modeling/llada/modeling_llada.py:64
↓ 1 callersMethod_init_rope
(self)
modeling/llada/modeling_llada.py:295
↓ 1 callersMethod_init_weights
(self)
modeling/lladao/modeling_utils.py:138
↓ 1 callersMethod_init_weights
(self)
modeling/lladao/lladao.py:151
↓ 1 callersMethod_iter_shard_paths
(index_file_path)
train/fsdp_utils.py:108
↓ 1 callersMethod_remove_fixed_pos_embeds
(state_dict, logger, state_name)
train/fsdp_utils.py:127
↓ 1 callersMethod_rope_scaling_validation
Validate the `rope_scaling` configuration.
modeling/llada/configuration_llada.py:156
↓ 1 callersFunction_trunc_normal_
(tensor, mean, std, a, b)
modeling/siglip/modeling_siglip.py:46
↓ 1 callersMethod_upad_input
(self, query_layer, key_layer, value_layer, attention_mask, query_length)
modeling/llada/modeling_llada.py:565
↓ 1 callersMethod_update_causal_mask
(self, attention_mask, input_tensor, cache_position, is_causal=True)
modeling/llada/modeling_llada.py:1066
↓ 1 callersFunctionbuild_crop_tuples
(resolution, pic_num)
eval/gen/dpg_bench/compute_dpg_bench.py:118
↓ 1 callersMethodbuild_datasets
(self, datasets_metainfo, data_status)
data/dataset_base.py:112
↓ 1 callersFunctionbuild_grid
(sample_paths, resolution)
eval/gen/dpg_bench/build_dpg_grids.py:54
↓ 1 callersFunctionbuild_mlp
(hidden_size, projector_dim, z_dim)
modeling/lladao/lladao.py:43
next →1–100 of 450, ranked by callers