MCPcopy Create free account

hub / github.com/csuhan/OneLLM / functions

Functions248 in github.com/csuhan/OneLLM

Method__call__
(self, loss, optimizer, model, clip_grad=None, parameters=None, create_graph=False, update_grad=True)
util/misc.py:316
Method__enter__
(self)
util/misc.py:478
Method__exit__
( self, exc_type: Optional[type[BaseException]], exc_val: Optional[BaseException],
util/misc.py:493
Method__getattr__
(self, attr)
util/misc.py:115
Method__getitem__
(self, index)
data/pretrain_dataset.py:225
Method__getitem__
(self, idx)
data/pretrain_dataset.py:302
Method__getitem__
(self, index, expect_type=None)
data/finetune_dataset.py:261
Method__getitem__
(self, index)
eval/point_cap_pointllm.py:28
Method__getitem__
(self, index)
eval/image_cap_cococap.py:37
Method__getitem__
(self, index)
eval/fmri_cap_nsd.py:35
Method__getitem__
(self, index)
eval/audio_cap_clothov2.py:37
Method__getitem__
(self, index)
eval/video_qa_msvd.py:34
Method__getitem__
(self, index)
eval/imu_cap_ego4d.py:46
Method__init__
(self, llama_type, llama_config, llama_ckpt_dir=None, tokenizer_path=None)
model/meta.py:14
Method__init__
(self, model_path: str)
model/tokenizer.py:14
Method__init__
Initialize the RMSNorm normalization layer. Args: dim (int): The dimension of the input tensor.
model/components.py:11
Method__init__
[summary] Args: nsample (int): maximum number of features to gather in the ball use_xyz (bool, optional): concate xyz
model/lib/point_utils.py:69
Method__init__
(self, sample_ratio=0.0625, sample_number=1024, group_size=
model/lib/point_utils.py:148
Method__init__
( self, args: List[int], *, bn: bool = False, acti
model/lib/pointnet2/pytorch_utils.py:7
Method__init__
( self, in_size, out_size, kernel_size, stride,
model/lib/pointnet2/pytorch_utils.py:37
Method__init__
(self, in_size, batch_norm=None, name="")
model/lib/pointnet2/pytorch_utils.py:106
Method__init__
(self, in_size: int, *, name: str = "")
model/lib/pointnet2/pytorch_utils.py:116
Method__init__
(self, in_size: int, name: str = "")
model/lib/pointnet2/pytorch_utils.py:122
Method__init__
( self, in_size: int, out_size: int, *, kernel_siz
model/lib/pointnet2/pytorch_utils.py:128
Method__init__
( self, in_size: int, out_size: int, *, kernel_siz
model/lib/pointnet2/pytorch_utils.py:165
Method__init__
:param radius: float, radius of ball :param nsample: int, maximum number of features to gather in the ball :param use_xyz:
model/lib/pointnet2/pointnet2_utils.py:232
Method__init__
(self)
model/lib/pointnet2/pointnet2_modules.py:12
Method__init__
:param npoint: int :param radii: list of float, list of radii to group with :param nsamples: list of int, number of samples i
model/lib/pointnet2/pointnet2_modules.py:61
Method__init__
:param mlp: list of int :param bn: whether to use batchnorm
model/lib/pointnet2/pointnet2_modules.py:119
Method__init__
(self, args: ModelArgs)
model/LLM/onellm.py:74
Method__init__
( self, dim: int, hidden_dim: int, multiple_of: int, )
model/LLM/onellm.py:152
Method__init__
(self, layer_id: int, args: ModelArgs)
model/LLM/onellm.py:181
Method__init__
(self, params: ModelArgs)
model/LLM/onellm.py:227
Method__init__
(self, crop_size: int = 224, num_crops: int = 3)
data/video_utils.py:111
Method__init__
(self, dataset='image', partition='train', epochs=1, tokenizer_path=None, petrel_conf=None)
data/pretrain_dataset.py:99
Method__init__
(self, datasets: Iterable[Dataset])
data/pretrain_dataset.py:291
Method__init__
(self, tokenizer)
data/finetune_dataset.py:24
Method__init__
(self, dataset=['image'], transform=T_random_resized_crop, max_words=2048, image_words=30, tokenizer_path=None
data/finetune_dataset.py:124
Method__init__
(self, dataset, num_replicas: Optional[int] = None, rank: Optional[int] = None, shuffle: bool
data/finetune_dataset.py:356
Method__init__
(self)
eval/point_cap_pointllm.py:20
Method__init__
(self)
eval/image_cap_cococap.py:30
Method__init__
(self)
eval/fmri_cap_nsd.py:25
Method__init__
(self)
eval/audio_cap_clothov2.py:26
Method__init__
(self)
eval/video_qa_msvd.py:25
Method__init__
(self)
eval/imu_cap_ego4d.py:36
Method__init__
(self, window_size=20, fmt=None)
util/misc.py:44
Method__init__
(self, delimiter="\t")
util/misc.py:102
Method__init__
(self, args)
util/misc.py:313
Method__init__
( self, dtype: Optional[torch.dtype] = None, device: Optional[str] = None, )
util/misc.py:468
Method__iter__
(self)
data/finetune_dataset.py:389
Method__len__
(self)
data/pretrain_dataset.py:125
Method__len__
(self)
data/pretrain_dataset.py:299
Method__len__
(self)
data/finetune_dataset.py:200
Method__len__
(self)
data/finetune_dataset.py:422
Method__len__
(self)
eval/point_cap_pointllm.py:25
Method__len__
(self)
eval/image_cap_cococap.py:34
Method__len__
(self)
eval/fmri_cap_nsd.py:32
Method__len__
(self)
eval/audio_cap_clothov2.py:34
Method__len__
(self)
eval/video_qa_msvd.py:31
Method__len__
(self)
eval/imu_cap_ego4d.py:43
Method__repr__
(self)
data/pretrain_dataset.py:274
Method__str__
(self)
util/misc.py:92
Method__str__
(self)
util/misc.py:123
Functionadd_weight_decay
(model, weight_decay=1e-5, skip_list=())
util/misc.py:447
Functionadjust_learning_rate
Decay the learning rate with half-cycle cosine after warmup
util/lr_sched.py:9
Functionadjust_learning_rate_epoch
Decay the learning rate with half-cycle cosine after warmup
util/lr_sched.py:29
Functionall_reduce_mean
(x)
util/misc.py:433
Methodavg
(self)
util/misc.py:76
Methodbackward
(xyz, a=None)
model/lib/point_utils.py:140
Methodbackward
(xyz, a=None)
model/lib/pointnet2/pointnet2_utils.py:32
Methodbackward
(ctx, grad_out)
model/lib/pointnet2/pointnet2_utils.py:63
Methodbackward
(ctx, a=None, b=None)
model/lib/pointnet2/pointnet2_utils.py:101
Methodbackward
:param ctx: :param grad_out: (B, C, N) tensor with gradients of outputs :return: grad_features: (B, C, M) tensor
model/lib/pointnet2/pointnet2_utils.py:134
Methodbackward
:param ctx: :param grad_out: (B, C, npoint, nsample) tensor of the gradients of the output from forward :return:
model/lib/pointnet2/pointnet2_utils.py:180
Methodbackward
(ctx, a=None)
model/lib/pointnet2/pointnet2_utils.py:224
Functionball_query_wrapper_fast
model/lib/pointnet2/src/ball_query.cpp:13
Functioncheck_window_signal
(info_t, w_s, w_e)
data/imu_utils.py:23
Functionclean_narration_text
(narration_text: str)
data/imu_utils.py:249
Functionclear
()
demos/multi_turn_mm.py:180
Methodcummulative_sizes
(self)
data/pretrain_dataset.py:315
Methoddict
(self)
data/conversation_lib.py:155
Functiondisplay_animation
(frames, title, save_path_gif)
data/imu_utils.py:215
Functiondisplay_animation_imu
(frames, imu, title, save_path_gif)
data/imu_utils.py:224
Methodexpand2square
(pil_img, background_color=(122, 116, 104))
data/conversation_lib.py:75
Functionfilter_narration
(narration_text: str)
data/imu_utils.py:243
Methodforward
(self, examples, labels, image=None, modal='image')
model/meta.py:47
Methodforward
Forward pass through the RMSNorm layer. Args: x (torch.Tensor): The input tensor. Returns:
model/components.py:41
Methodforward
Args: support ([tensor]): [B, N, C] query ([tensor]): [B, M, C] Returns: [int]: neighbor idx. [B,
model/lib/point_utils.py:12
Methodforward
:param ctx: :param features: (B, C, N) tensor of features to group :param idx: (B, npoint, nsample) tensor containing the ind
model/lib/point_utils.py:29
Methodforward
:param query_xyz: (B, N, 3) xyz coordinates of the features :param support_xyz: (B, npoint, 3) centroids :param features: (B,
model/lib/point_utils.py:90
Methodforward
Uses iterative furthest point sampling to select a set of npoint features that have the largest minimum distance :param ctx:
model/lib/point_utils.py:117
Methodforward
(self, x)
model/lib/point_utils.py:170
Methodforward
Uses iterative furthest point sampling to select a set of npoint features that have the largest minimum distance :param ctx:
model/lib/pointnet2/pointnet2_utils.py:12
Methodforward
:param ctx: :param features: (B, C, N) :param idx: (B, npoint) index tensor of the features to gather :return:
model/lib/pointnet2/pointnet2_utils.py:42
Methodforward
Find the three nearest neighbors of unknown in known :param ctx: :param unknown: (B, N, 3) :param known: (B, M, 3)
model/lib/pointnet2/pointnet2_utils.py:79
Methodforward
Performs weight linear interpolation on 3 features :param ctx: :param features: (B, C, M) Features descriptors to be interpol
model/lib/pointnet2/pointnet2_utils.py:111
Methodforward
:param ctx: :param features: (B, C, N) tensor of features to group :param idx: (B, npoint, nsample) tensor containing the ind
model/lib/pointnet2/pointnet2_utils.py:159
Methodforward
:param ctx: :param radius: float, radius of the balls :param nsample: int, maximum number of features in the balls :p
model/lib/pointnet2/pointnet2_utils.py:203
Methodforward
:param xyz: (B, N, 3) xyz coordinates of the features :param new_xyz: (B, npoint, 3) centroids :param features: (B, C, N) des
model/lib/pointnet2/pointnet2_utils.py:241
Methodforward
:param xyz: (B, N, 3) xyz coordinates of the features :param new_xyz: ignored :param features: (B, C, N) descriptors of the f
model/lib/pointnet2/pointnet2_utils.py:272
← previousnext →101–200 of 248, ranked by callers