MCPcopy Create free account

hub / github.com/ALRhub/X_IL / functions

Functions1,241 in github.com/ALRhub/X_IL

↓ 1 callersFunctioncount_flops_fw_C
Flops for a single sequence.
agents/backbones/xlstm/mlstm_kernels/utils/flops/mlstm_block_flop_counts.py:12
↓ 1 callersFunctioncount_flops_fw_H
Flops for a single sequence.
agents/backbones/xlstm/mlstm_kernels/utils/flops/mlstm_block_flop_counts.py:21
↓ 1 callersFunctioncount_flops_mlstm_v1_block_fw
( S, d, dqk, dv, Nh, chunk_size=64, pf_ffn=4, factor_sig=1, factor_exp=1,
agents/backbones/xlstm/mlstm_kernels/utils/flops/mlstm_block_flop_counts.py:94
↓ 1 callersFunctioncount_flops_mlstm_v1_layer_fw
( S, d, dqk, dv, Nh, chunk_size, factor_sig=1, factor_exp=1, factor_max=1,
agents/backbones/xlstm/mlstm_kernels/utils/flops/mlstm_block_flop_counts.py:53
↓ 1 callersFunctioncount_flops_mlstm_v2_block_fw
( S, d, dqk, dv, Nh, qk_block_size=4, qk_pf=1, v_block_size=4, v_pf=1,
agents/backbones/xlstm/mlstm_kernels/utils/flops/mlstm_block_flop_counts.py:135
↓ 1 callersFunctioncount_flops_slstm_block_fw
( S, d, Nh, conv1d_kernel_size=4, pf_ffn=1.3, factor_exp=1, count_ln_flops: Callable[[int], int] = _count_
agents/backbones/xlstm/mlstm_kernels/utils/flops/slstm_block_flop_counts.py:26
↓ 1 callersFunctioncount_flops_slstm_cell_fw
Counts the number of flops in the forward pass of an sLSTM cell.
agents/backbones/xlstm/mlstm_kernels/utils/flops/slstm_block_flop_counts.py:9
↓ 1 callersFunctioncount_flops_transformer_block_fw
DeepMind method for forwad pass FLOPs counting of decoder-only Transformer See Chinchilla paper or this blog post: https://www.adamcasson.com/
agents/backbones/xlstm/mlstm_kernels/utils/flops/transformer_block_flop_counts.py:4
↓ 1 callersFunctioncreate_block
( d_model, d_intermediate, ssm_cfg=None, attn_layer_idx=None, attn_cfg=None, norm_epsi
agents/backbones/mamba/mamba.py:30
↓ 1 callersMethodcreate_folders
(self)
agents/models/beso/utils/automatic_lang_annotator_mp.py:76
↓ 1 callersFunctioncreate_runtime_bar_plot
Create a bar plot for runtime results. Example usage with rc_context_wrapper: ```python fig = rc_context_wrapper( func=create_run
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/plot_results.py:234
↓ 1 callersFunctioncreate_runtime_line_plot
Create a line plot for runtime results. Simliar to `create_runtime_bar_plot`, but creates a line plot instead of a bar plot. Args: da
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/plot_results.py:384
↓ 1 callersFunctioncrop_image_from_indices
Crops images at the locations specified by @crop_indices. Crops will be taken across all channels. Args: images (torch.Tensor):
agents/encoders/crop_randomizer.py:134
↓ 1 callersMethodcross_attn_forward
(self, states, goals)
agents/backbones/encoder_decoder.py:122
↓ 1 callersMethodcross_attn_forward
( self, states, actions, goals, sigma )
agents/backbones/encoder_decoder.py:328
↓ 1 callersMethoddecode
(self, tokens)
agents/models/beso/utils/clip_tokenizer.py:133
↓ 1 callersFunctiondefault
(val, d)
agents/models/beso/models/networks/transformers/transformer_blocks.py:23
↓ 1 callersFunctiondefault_bpe
()
agents/models/beso/utils/clip_tokenizer.py:11
↓ 1 callersMethoddenoise_actions
Denoise the next sequence of actions
agents/beso_agent.py:149
↓ 1 callersMethoddenoise_actions
Main Method to generate actions conditioned on the batch of state inputs :param state: the current state observation to conditon the
agents/models/ddpm/ddpm.py:113
↓ 1 callersMethoddenoise_actions
Denoise the next sequence of actions
agents/models/beso/beso.py:145
↓ 1 callersFunctiondenormalize
Denormalize a tensor image with mean and standard deviation. Args: tensor (Tensor): Normalized image tensor. means (list): Me
agents/models/beso/models/img_generation/masked_transformer_decoder.py:377
↓ 1 callersMethoddepthimg2Meters
(self, depth)
environments/wrappers/robosuite_wrapper.py:57
↓ 1 callersMethoddevice
(self)
agents/models/beso/models/networks/transformers/position_embeddings.py:224
↓ 1 callersMethoddiffusion_loss
Computes the score matching loss given the perceptual embedding, latent goal, and desired actions.
agents/beso_agent.py:133
↓ 1 callersMethoddiffusion_loss
(self, perceptual_emb: torch.Tensor, actions: torch.Tensor, latent_goal: torch.Tensor
agents/models/ddpm/ddpm.py:80
↓ 1 callersMethoddiffusion_loss
Computes the score matching loss given the perceptual embedding, latent goal, and desired actions.
agents/models/beso/beso.py:129
↓ 1 callersMethoddpm_solver_adaptive
(self, state, action, goal, t_start, t_end, order=3, rtol=0.05, atol=0.0078, h_init=0.05, pcoeff=0., icoeff=1
agents/models/beso/models/edm_diffusion/gc_sampling.py:618
↓ 1 callersMethoddpm_solver_fast
(self, state, action, goal, t_start, t_end, nfe, eta=0., s_noise=1., noise_sampler=None)
agents/models/beso/models/edm_diffusion/gc_sampling.py:579
↓ 1 callersMethoddtype
(self)
agents/models/beso/models/networks/clip.py:405
↓ 1 callersMethodeval_agent
(self, contexts, context_ind, success,
simulation/libero_sim.py:61
↓ 1 callersFunctionexpand_at
Expand all tensors in nested dictionary or list or tuple at a single dimension @dim by @size. Args: x (dict or list or tuple): a
agents/utils/tensor_util.py:581
↓ 1 callersFunctionexpand_at_single
Expand a tensor at a single dimension @dim by @size Args: x (torch.Tensor): input tensor size (int): size to expand
agents/utils/tensor_util.py:562
↓ 1 callersFunctionf
(tensor)
agents/utils/tensor_util.py:314
↓ 1 callersFunctionfeed_forward_layer
Feed forward layer with given activation function
agents/models/beso/models/networks/transformers/utils.py:15
↓ 1 callersFunctionflatten
Flatten all tensors in nested dictionary or list or tuple, from @begin_axis onwards. Args: x (dict or list or tuple): a possibly nes
agents/utils/tensor_util.py:463
↓ 1 callersFunctionflatten_nested_dict_list
Flatten a nested dict or list to a list. For example, given a dict { a: 1 b: { c: 2 } c: 3
agents/utils/tensor_util.py:893
↓ 1 callersFunctionflatten_single
Flatten a tensor in all dimensions from @begin_axis onwards. Args: x (torch.Tensor): tensor to flatten begin_axis (int): whi
agents/utils/tensor_util.py:447
↓ 1 callersFunctionfn_replay
(**new_inputs)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/cuda_graphs.py:74
↓ 1 callersFunctionformat_sftp_path
When using network mount from nautilus, format path
agents/models/beso/utils/utils.py:188
↓ 1 callersMethodforward
Forward pass of the mLSTM backend. Depending on the configured mode, this method will call the appropriate kernel function. Args:
agents/backbones/xlstm/mlstm_kernels/torch/backend_module.py:132
↓ 1 callersMethodforward
(self, obs_dict, lang_cond=None)
agents/encoders/multi_image_obs_encoder.py:140
↓ 1 callersMethodforward
(self, image, text)
agents/models/beso/models/networks/clip.py:426
↓ 1 callersMethodforward
(self, obs_dict, lang_cond=None)
agents/models/beso/models/perceptual_encoders/multi_image_obs_encoder.py:142
↓ 1 callersMethodforward_dec_only
(self, context, actions, sigma)
agents/models/beso/models/networks/mdtv_transformer.py:234
↓ 1 callersMethodforward_in
Samples N random crops for each input in the batch, and then reshapes inputs to [B * N, ...].
agents/encoders/crop_randomizer.py:82
↓ 1 callersFunctionfreeze_params
(model)
agents/encoders/resnets.py:23
↓ 1 callersFunctionfreeze_params
(model)
agents/models/beso/models/perceptual_encoders/resnets.py:23
↓ 1 callersFunctiongather_along_dim_with_dim
Apply @gather_along_dim_with_dim_single to all tensors in a nested dictionary or list or tuple. Args: x (dict or list or tuple):
agents/utils/tensor_util.py:710
↓ 1 callersFunctiongenerate_bert_embedding
(text, model, tokenizer)
task_embeddings/task_embeddings.py:20
↓ 1 callersFunctionget_2D_position_embeddings
(embed_dim: int, grid_size: int, cls_token: bool = False)
agents/models/beso/models/img_generation/masked_transformer_decoder.py:29
↓ 1 callersFunctionget_available_mlstm_kernels
Get a list of available mlstm sequence kernels. These kernels process a sequence in the parallel or chunkwise parallel mode of the mLSTM.
agents/backbones/xlstm/mlstm_kernels/torch/__init__.py:18
↓ 1 callersFunctionget_available_mlstm_step_kernels
Returns the available mlstm step kernels. These kernels can be used to compute a single time step of the mLSTM, i.e. for generation.
agents/backbones/xlstm/mlstm_kernels/torch/__init__.py:65
↓ 1 callersMethodget_hf_model_config
(self, model_name: str)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/huggingface_model_benchmark.py:79
↓ 1 callersFunctionget_mlstm_sequence_kernel
Get a mlstm sequence kernel function by name. Naming convention: name = "<backend_name>" backend_name: The name of the kernel funct
agents/backbones/xlstm/mlstm_kernels/torch/__init__.py:104
↓ 1 callersFunctionget_mlstm_v1_fw_flops
( sequence_length: int, chunk_size: int, batch_size: int = 1, **kwargs )
agents/backbones/xlstm/mlstm_kernels/utils/flops/mlstm_block_flop_counts.py:272
↓ 1 callersFunctionget_mlstm_v2_fw_flops
( sequence_length: int, chunk_size: int, batch_size: int = 1, multiply_by_2: bool = True )
agents/backbones/xlstm/mlstm_kernels/utils/flops/mlstm_block_flop_counts.py:307
↓ 1 callersMethodget_params
(self)
agents/base_agent.py:229
↓ 1 callersMethodget_plot_title
(self)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/param_handling.py:127
↓ 1 callersMethodget_scale
(self, t, cache_key = None)
agents/models/beso/models/networks/transformers/position_embeddings.py:154
↓ 1 callersMethodget_seq_length
(self, idx)
environments/dataset/libero_dataset.py:172
↓ 1 callersMethodget_slices
(self)
environments/dataset/libero_dataset.py:155
↓ 1 callersMethodget_slices
(self)
environments/dataset/robocasa_dataset.py:68
↓ 1 callersMethodget_slices
(self)
environments/dataset/robocasa_pc_dataset.py:82
↓ 1 callersMethodget_task_embs
(self, task_embs)
simulation/libero_sim.py:184
↓ 1 callersFunctionget_task_list
(task_dir)
task_embeddings/task_embeddings.py:15
↓ 1 callersMethodindex
()
utils/visualizer/visualizer/pointcloud.py:119
↓ 1 callersFunctioninfo_cuda
()
agents/models/beso/utils/utils.py:91
↓ 1 callersFunctioninfo_packages
()
agents/models/beso/utils/utils.py:100
↓ 1 callersMethodinitialize_parameters
(self)
agents/models/beso/models/networks/clip.py:367
↓ 1 callersMethodinitialize_weights
(self)
agents/models/beso/models/img_generation/masked_transformer_decoder.py:169
↓ 1 callersMethodinverse_scale_output
(self, y)
agents/utils/scaler.py:191
↓ 1 callersMethodlabel_seq
(self, collected_data, dataset, seq_length, idx, task)
agents/models/beso/utils/automatic_lang_annotator_mp.py:311
↓ 1 callersMethodlimiter
(self, action)
agents/models/beso/models/edm_diffusion/gc_sampling.py:506
↓ 1 callersFunctionlinear_beta_schedule
(timesteps, beta_start=1e-4, beta_end=2e-2, dtype=torch.float32)
agents/models/ddpm/utils.py:45
↓ 1 callersFunctionlinear_multistep_coeff
Returns the coefficient of the j-th derivative of the i-th step of a linear multistep method.
agents/models/beso/models/edm_diffusion/gc_sampling.py:413
↓ 1 callersMethodload_pretrained_model
Method to load pretrained weights for the entire agent
agents/base_agent.py:186
↓ 1 callersFunctionmain
(cfg: DictConfig)
run.py:32
↓ 1 callersFunctionmain
(cfg: DictConfig)
agents/models/beso/utils/automatic_lang_annotator_mp.py:342
↓ 1 callersFunctionmain
(cfg: DictConfig)
agents/models/beso/utils/language_annotator.py:16
↓ 1 callersMethodmain
Run main training/testing pipeline.
trainers/base_trainer.py:85
↓ 1 callersFunctionmake_percentile_str
(error_percentiles: np.ndarray, percentiles: int)
agents/backbones/xlstm/mlstm_kernels/utils/test/checks.py:48
↓ 1 callersMethodmake_sample_density
Generate a sample density function based on the desired type for training the model We mostly use log-logistic as it has no additiona
agents/beso_agent.py:177
↓ 1 callersMethodmake_sample_density
Generate a sample density function based on the desired type for training the model We mostly use log-logistic as it has no additiona
agents/models/beso/beso.py:173
↓ 1 callersMethodmask
Perform per-context random masking by shuffling :: uses argsort random noise to identify masked patches.
agents/models/beso/models/img_generation/masked_transformer_decoder.py:126
↓ 1 callersMethodmask_cond
(self, cond, force_mask=False)
agents/models/beso/models/networks/mdtv_transformer.py:311
↓ 1 callersMethodmask_cond
(self, cond, force_mask=False)
agents/models/beso/models/networks/mdt_transformer.py:242
↓ 1 callersFunctionmeasure_runtime
Benchmark the runtime of the provided function. By default, return the mean. Copy with minor adaptations. of the original function from trit
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/runtime.py:30
↓ 1 callersFunctionmlstm_chunkwise__parallel_bw_dK
This function defines the grid and block sizes for the kernel launch and calls the kernel. chunk parallel size: siz_b_LKV chunk loop si
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/triton_xl_chunk/bw_parallel_dK.py:12
↓ 1 callersFunctionmlstm_chunkwise__parallel_bw_dK
Computes only the deltaK gradients for the backward pass. The other gradients are computed in the other (kernel) function. This function
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/triton_xl_chunk/bw_parallel_dK.py:17
↓ 1 callersFunctionmlstm_chunkwise__parallel_bw_dQ
This function defines the grid and block sizes for the kernel launch and calls the kernel. chunk parallel size: siz_b_LQ chunk loop siz
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/triton_xl_chunk/bw_parallel_dQ.py:12
↓ 1 callersFunctionmlstm_chunkwise__parallel_bw_dQ
Computes only the deltaK gradients for the backward pass. The other gradients are computed in the other (kernel) function. This function
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/triton_xl_chunk/bw_parallel_dQ.py:15
↓ 1 callersFunctionmlstm_chunkwise__parallel_bw_dQKV
( matQ: torch.Tensor, # (B, NH, S, DHQK) matK: torch.Tensor, # (B, NH, S, DHQK) matV: torch.Tens
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/triton_limit_chunk/bw_parallel.py:12
↓ 1 callersFunctionmlstm_chunkwise__parallel_bw_dQKV
Computes the gradients for the query, key and value matrices. Args: matQ: Tensor containing the query vectors. Shape (B, NH, S, DHQK
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/triton_limit_chunk/bw_parallel.py:17
↓ 1 callersFunctionmlstm_chunkwise__parallel_bw_dV
This function defines the grid and block sizes for the kernel launch and calls the kernel. chunk parallel size: siz_b_LKV chunk loop si
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/triton_xl_chunk/bw_parallel_dV.py:12
↓ 1 callersFunctionmlstm_chunkwise__parallel_bw_dV
Computes only the deltaK gradients for the backward pass. The other gradients are computed in the other (kernel) function. This function
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/triton_xl_chunk/bw_parallel_dV.py:15
↓ 1 callersFunctionmlstm_chunkwise__parallel_fw_H
This function defines the grid and block sizes for the kernel launch and calls the kernel.
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/triton_limit_chunk/fw_parallel.py:12
↓ 1 callersFunctionmlstm_chunkwise__parallel_fw_H
( matQ: torch.Tensor, # (B, NH, S, DHQK) matK: torch.Tensor, # (B, NH, S, DHQK) matV: torch.Tens
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/native/fw.py:131
↓ 1 callersFunctionmlstm_chunkwise__parallel_fw_H
Execute the parallel forward kernel for the H computation in the mLSTM chunkwise formulation. This function defines the grid and block sizes
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/triton_limit_chunk/fw_parallel.py:17
↓ 1 callersFunctionmlstm_chunkwise__parallel_fw_H
This function computes the output of the mLSTM chunkwise formulation. It is the second part of the chunkwise mLSTM forward pass and combines the
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/native/fw.py:151
← previousnext →301–400 of 1,241, ranked by callers