MCPcopy Create free account

hub / github.com/ByteDance-Seed/Bagel / functions

Functions720 in github.com/ByteDance-Seed/Bagel

Method__len__
(self)
eval/vlm/eval/vqa/evaluate_vqa.py:296
Method__len__
(self)
eval/vlm/eval/mmbench/evaluate_mmbench.py:89
Method__len__
(self)
eval/vlm/eval/mmbench/evaluate_mmbench.py:160
Method__len__
(self)
eval/vlm/eval/pope/evaluate_pope.py:77
Method__len__
(self)
eval/vlm/eval/pope/evaluate_pope.py:129
Method__len__
(self)
eval/vlm/eval/mmvp/evaluate_mmvp.py:56
Method__len__
(self)
eval/vlm/eval/mmvp/evaluate_mmvp.py:120
Method__len__
(self)
eval/vlm/eval/mathvista/evaluate_mathvista.py:62
Method__len__
(self)
eval/vlm/eval/mathvista/evaluate_mathvista.py:100
Method__len__
(self)
eval/vlm/eval/mmmu/evaluate_mmmu.py:70
Method__len__
(self)
eval/vlm/eval/mmmu/evaluate_mmmu.py:140
Method__len__
(self)
eval/vlm/eval/mmmu/evaluate_mmmu_cot.py:94
Method__len__
(self)
eval/vlm/eval/mmmu/evaluate_mmmu_cot.py:164
Method__len__
(self)
eval/vlm/eval/mmvet/evaluate_mmvet.py:40
Method__len__
(self)
eval/gen/geneval/evaluation/evaluate_images.py:103
Method__len__
(self)
eval/gen/geneval/evaluation/evaluate_images_mp.py:107
Method__setstate__
(self, d)
modeling/siglip/tokenization_siglip.py:248
Method_add_video
(self, data, frames, frame_indexes, need_loss, need_vae, enable_cfg=True)
data/interleave_datasets/interleave_t2i_dataset.py:88
Method_convert_id_to_token
Converts an index (integer) in a token (str) using the vocab.
modeling/qwen2/tokenization_qwen2.py:267
Method_convert_id_to_token
Converts an index (integer) in a token (str) using the vocab.
modeling/siglip/tokenization_siglip.py:324
Method_convert_token_to_id
Converts a token (str) in an id using the vocab.
modeling/qwen2/tokenization_qwen2.py:262
Method_convert_token_to_id
Converts a token (str) in an id using the vocab.
modeling/siglip/tokenization_siglip.py:319
Method_init_weights
(self, module)
modeling/qwen2/modeling_qwen2.py:563
Method_init_weights
Initialize the weights
modeling/siglip/modeling_siglip.py:672
Method_tokenize
Tokenize a string.
modeling/qwen2/tokenization_qwen2.py:251
Method_tokenize
Returns a tokenized string. We de-activated the `add_dummy_prefix` option, thus the sentencepiece internals will always strip any
modeling/siglip/tokenization_siglip.py:298
Methodbuild_inputs_with_special_tokens
Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and adding special tokens
modeling/siglip/tokenization_siglip.py:215
Functioncalculate_completion
(row)
eval/gen/rise/gpt_eval.py:295
Functioncalculate_score
(row)
eval/gen/rise/gpt_eval.py:281
Functioncausal_mask
(b, h, q_idx, kv_idx)
data/data_utils.py:14
Functioncheck_key_in_json
(file_path, key)
eval/gen/gedit/viescore/utils.py:346
Functioncollate_fn
(batch)
data/dataset_base.py:618
Functioncollate_fn
(batches)
eval/vlm/eval/vqa/evaluate_vqa.py:221
Functioncollate_fn
(batches)
eval/vlm/eval/mmbench/evaluate_mmbench.py:72
Functioncollate_fn
(batches)
eval/vlm/eval/pope/evaluate_pope.py:60
Functioncollate_fn
(batches)
eval/vlm/eval/mmvp/evaluate_mmvp.py:33
Functioncollate_fn
(batches)
eval/vlm/eval/mathvista/evaluate_mathvista.py:50
Functioncollate_fn
(batches)
eval/vlm/eval/mmmu/evaluate_mmmu.py:47
Functioncollate_fn
(batches)
eval/vlm/eval/mmmu/evaluate_mmmu_cot.py:72
Functionconstruct_prompt
(sample, config)
eval/vlm/eval/mmmu/data_utils.py:149
Functioncontains_digit
(text)
eval/vlm/eval/mathvista/utilities.py:70
Functioncontains_number_word
(text)
eval/vlm/eval/mathvista/utilities.py:77
Functioncontains_quantity_word
(text, special_keep_words=[])
eval/vlm/eval/mathvista/utilities.py:97
Methodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
modeling/qwen2/tokenization_qwen2.py:272
Methodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
modeling/siglip/tokenization_siglip.py:329
Functioncopy_dir
(src_dir, dst_dir)
eval/vlm/eval/mathvista/utilities.py:161
Functioncopy_image
(image_path, output_image_path)
eval/vlm/eval/mathvista/utilities.py:156
Functioncreate_dir
(output_dir)
eval/vlm/eval/mathvista/utilities.py:25
Methodcreate_token_type_ids_from_sequences
Create a mask from the two sequences passed to be used in a sequence-pair classification task. T5 does not make use of token type ids
modeling/siglip/tokenization_siglip.py:192
Functioncrop
(image, crop_factors)
data/transforms.py:131
Functiondecode_video_byte
(video_bytes)
data/video_utils.py:129
Functiondecolorization
(image)
data/transforms.py:118
Methoddefault
(self, obj)
eval/gen/rise/utils.py:14
Functiondownscale
(image, scale_factor)
data/transforms.py:123
Functiondump_csv
(data, f, quoting=csv.QUOTE_ALL)
eval/gen/rise/utils.py:46
Functiondump_json
(data, pth, **kwargs)
eval/gen/rise/utils.py:35
Functiondump_jsonl
(data, f, **kwargs)
eval/gen/rise/utils.py:38
Functiondump_pkl
(data, pth, **kwargs)
eval/gen/rise/utils.py:32
Functiondump_tsv
(data, f, quoting=csv.QUOTE_ALL)
eval/gen/rise/utils.py:49
Functiondump_xlsx
(data, f, **kwargs)
eval/gen/rise/utils.py:43
Functionencode_image
(image_path)
eval/gen/gedit/viescore/mllm_tools/openai.py:17
Methodeval_pred_list
(self, pred_list)
eval/vlm/eval/vqa/textvqa_eval.py:274
Methodeval_pred_list
(self, pred_list)
eval/vlm/eval/vqa/textvqa_eval.py:299
Methodeval_pred_list
(self, pred_list)
eval/vlm/eval/vqa/textvqa_eval.py:331
Functioneval_vanilla
(item, input_dir, output_dir, **kwargs)
eval/gen/rise/gpt_eval.py:146
Methodextra_repr
(self)
modeling/qwen2/modeling_qwen2.py:61
Functionformat_value
(match)
eval/gen/gedit/viescore/utils.py:13
Methodforward
(self, x: Tensor)
modeling/autoencoder.py:64
Methodforward
(self, x)
modeling/autoencoder.py:82
Methodforward
(self, x: Tensor)
modeling/autoencoder.py:104
Methodforward
(self, x: Tensor)
modeling/autoencoder.py:116
Methodforward
(self, x: Tensor)
modeling/autoencoder.py:172
Methodforward
(self, z: Tensor)
modeling/autoencoder.py:250
Methodforward
(self, z: Tensor)
modeling/autoencoder.py:281
Methodforward
(self, x: Tensor)
modeling/autoencoder.py:324
Methodforward
(self, hidden_states)
modeling/qwen2/modeling_qwen2.py:54
Methodforward
(self, x, position_ids)
modeling/qwen2/modeling_qwen2.py:130
Methodforward
(self, hidden_state)
modeling/qwen2/modeling_qwen2.py:200
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/qwen2/modeling_qwen2.py:254
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/qwen2/modeling_qwen2.py:340
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
modeling/qwen2/modeling_qwen2.py:463
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
modeling/qwen2/modeling_qwen2.py:686
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
modeling/qwen2/modeling_qwen2.py:844
Methodforward
(self, t)
modeling/bagel/modeling_utils.py:107
Methodforward
(self, hidden_states: torch.Tensor)
modeling/bagel/modeling_utils.py:120
Methodforward
(self, position_ids)
modeling/bagel/modeling_utils.py:143
Methodforward
( self, packed_pixel_values: torch.FloatTensor, packed_flattened_position_ids: torch
modeling/bagel/siglip_navit.py:184
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.IntTensor, max_seqlen:
modeling/bagel/siglip_navit.py:202
Methodforward
(self, hidden_states: torch.Tensor)
modeling/bagel/siglip_navit.py:255
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.IntTensor, max_seqlen:
modeling/bagel/siglip_navit.py:271
Methodforward
( self, inputs_embeds: torch.Tensor, cu_seqlens: torch.IntTensor, max_seqlen:
modeling/bagel/siglip_navit.py:311
Methodforward
( self, packed_pixel_values: torch.Tensor, packed_flattened_position_ids: torch.LongTe
modeling/bagel/siglip_navit.py:345
Methodforward
( self, packed_pixel_values: torch.Tensor, packed_flattened_position_ids: torch.LongTe
modeling/bagel/siglip_navit.py:389
Methodforward
(self, *args, **kwargs)
modeling/bagel/qwen2_navit.py:246
Methodforward
(self, *args, **kwargs)
modeling/bagel/qwen2_navit.py:400
Methodforward
(self, *args, **kwargs)
modeling/bagel/qwen2_navit.py:614
Methodforward
(self, *args, **kwargs)
modeling/bagel/qwen2_navit.py:707
Methodforward
(self, *args, **kwargs)
modeling/bagel/qwen2_navit.py:846
Methodforward
(self, *args, **kwargs)
modeling/bagel/qwen2_navit.py:964
Methodforward
(self, *args, **kwargs)
modeling/bagel/qwen2_navit.py:1131
← previousnext →501–600 of 720, ranked by callers