Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ByteDance-Seed/Bagel
/ functions
Functions
720 in github.com/ByteDance-Seed/Bagel
⨍
Functions
720
◇
Types & classes
116
↳
Endpoints
2
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
Method
build_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
Function
calculate_completion
(row)
eval/gen/rise/gpt_eval.py:295
Function
calculate_score
(row)
eval/gen/rise/gpt_eval.py:281
Function
causal_mask
(b, h, q_idx, kv_idx)
data/data_utils.py:14
Function
check_key_in_json
(file_path, key)
eval/gen/gedit/viescore/utils.py:346
Function
collate_fn
(batch)
data/dataset_base.py:618
Function
collate_fn
(batches)
eval/vlm/eval/vqa/evaluate_vqa.py:221
Function
collate_fn
(batches)
eval/vlm/eval/mmbench/evaluate_mmbench.py:72
Function
collate_fn
(batches)
eval/vlm/eval/pope/evaluate_pope.py:60
Function
collate_fn
(batches)
eval/vlm/eval/mmvp/evaluate_mmvp.py:33
Function
collate_fn
(batches)
eval/vlm/eval/mathvista/evaluate_mathvista.py:50
Function
collate_fn
(batches)
eval/vlm/eval/mmmu/evaluate_mmmu.py:47
Function
collate_fn
(batches)
eval/vlm/eval/mmmu/evaluate_mmmu_cot.py:72
Function
construct_prompt
(sample, config)
eval/vlm/eval/mmmu/data_utils.py:149
Function
contains_digit
(text)
eval/vlm/eval/mathvista/utilities.py:70
Function
contains_number_word
(text)
eval/vlm/eval/mathvista/utilities.py:77
Function
contains_quantity_word
(text, special_keep_words=[])
eval/vlm/eval/mathvista/utilities.py:97
Method
convert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
modeling/qwen2/tokenization_qwen2.py:272
Method
convert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
modeling/siglip/tokenization_siglip.py:329
Function
copy_dir
(src_dir, dst_dir)
eval/vlm/eval/mathvista/utilities.py:161
Function
copy_image
(image_path, output_image_path)
eval/vlm/eval/mathvista/utilities.py:156
Function
create_dir
(output_dir)
eval/vlm/eval/mathvista/utilities.py:25
Method
create_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
Function
crop
(image, crop_factors)
data/transforms.py:131
Function
decode_video_byte
(video_bytes)
data/video_utils.py:129
Function
decolorization
(image)
data/transforms.py:118
Method
default
(self, obj)
eval/gen/rise/utils.py:14
Function
downscale
(image, scale_factor)
data/transforms.py:123
Function
dump_csv
(data, f, quoting=csv.QUOTE_ALL)
eval/gen/rise/utils.py:46
Function
dump_json
(data, pth, **kwargs)
eval/gen/rise/utils.py:35
Function
dump_jsonl
(data, f, **kwargs)
eval/gen/rise/utils.py:38
Function
dump_pkl
(data, pth, **kwargs)
eval/gen/rise/utils.py:32
Function
dump_tsv
(data, f, quoting=csv.QUOTE_ALL)
eval/gen/rise/utils.py:49
Function
dump_xlsx
(data, f, **kwargs)
eval/gen/rise/utils.py:43
Function
encode_image
(image_path)
eval/gen/gedit/viescore/mllm_tools/openai.py:17
Method
eval_pred_list
(self, pred_list)
eval/vlm/eval/vqa/textvqa_eval.py:274
Method
eval_pred_list
(self, pred_list)
eval/vlm/eval/vqa/textvqa_eval.py:299
Method
eval_pred_list
(self, pred_list)
eval/vlm/eval/vqa/textvqa_eval.py:331
Function
eval_vanilla
(item, input_dir, output_dir, **kwargs)
eval/gen/rise/gpt_eval.py:146
Method
extra_repr
(self)
modeling/qwen2/modeling_qwen2.py:61
Function
format_value
(match)
eval/gen/gedit/viescore/utils.py:13
Method
forward
(self, x: Tensor)
modeling/autoencoder.py:64
Method
forward
(self, x)
modeling/autoencoder.py:82
Method
forward
(self, x: Tensor)
modeling/autoencoder.py:104
Method
forward
(self, x: Tensor)
modeling/autoencoder.py:116
Method
forward
(self, x: Tensor)
modeling/autoencoder.py:172
Method
forward
(self, z: Tensor)
modeling/autoencoder.py:250
Method
forward
(self, z: Tensor)
modeling/autoencoder.py:281
Method
forward
(self, x: Tensor)
modeling/autoencoder.py:324
Method
forward
(self, hidden_states)
modeling/qwen2/modeling_qwen2.py:54
Method
forward
(self, x, position_ids)
modeling/qwen2/modeling_qwen2.py:130
Method
forward
(self, hidden_state)
modeling/qwen2/modeling_qwen2.py:200
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/qwen2/modeling_qwen2.py:254
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
modeling/qwen2/modeling_qwen2.py:340
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
modeling/qwen2/modeling_qwen2.py:463
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
modeling/qwen2/modeling_qwen2.py:686
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
modeling/qwen2/modeling_qwen2.py:844
Method
forward
(self, t)
modeling/bagel/modeling_utils.py:107
Method
forward
(self, hidden_states: torch.Tensor)
modeling/bagel/modeling_utils.py:120
Method
forward
(self, position_ids)
modeling/bagel/modeling_utils.py:143
Method
forward
( self, packed_pixel_values: torch.FloatTensor, packed_flattened_position_ids: torch
modeling/bagel/siglip_navit.py:184
Method
forward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.IntTensor, max_seqlen:
modeling/bagel/siglip_navit.py:202
Method
forward
(self, hidden_states: torch.Tensor)
modeling/bagel/siglip_navit.py:255
Method
forward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.IntTensor, max_seqlen:
modeling/bagel/siglip_navit.py:271
Method
forward
( self, inputs_embeds: torch.Tensor, cu_seqlens: torch.IntTensor, max_seqlen:
modeling/bagel/siglip_navit.py:311
Method
forward
( self, packed_pixel_values: torch.Tensor, packed_flattened_position_ids: torch.LongTe
modeling/bagel/siglip_navit.py:345
Method
forward
( self, packed_pixel_values: torch.Tensor, packed_flattened_position_ids: torch.LongTe
modeling/bagel/siglip_navit.py:389
Method
forward
(self, *args, **kwargs)
modeling/bagel/qwen2_navit.py:246
Method
forward
(self, *args, **kwargs)
modeling/bagel/qwen2_navit.py:400
Method
forward
(self, *args, **kwargs)
modeling/bagel/qwen2_navit.py:614
Method
forward
(self, *args, **kwargs)
modeling/bagel/qwen2_navit.py:707
Method
forward
(self, *args, **kwargs)
modeling/bagel/qwen2_navit.py:846
Method
forward
(self, *args, **kwargs)
modeling/bagel/qwen2_navit.py:964
Method
forward
(self, *args, **kwargs)
modeling/bagel/qwen2_navit.py:1131
← previous
next →
501–600 of 720, ranked by callers