MCPcopy Create free account

hub / github.com/ALRhub/X_IL / functions

Functions1,241 in github.com/ALRhub/X_IL

↓ 1 callersFunctionmlstm_chunkwise__parallel_fw_Hintra
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/fw_parallel.py:13
↓ 1 callersFunctionmlstm_chunkwise__parallel_fw_Hintra
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_xl_chunk/fw_parallel.py:18
↓ 1 callersFunctionmlstm_chunkwise__recurrent_bw_dC
Computes only the deltaC gradients for the backward pass. The other gradients are computed in the other (kernel) function. We do not need to c
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/triton_limit_chunk/bw_recurrent.py:12
↓ 1 callersFunctionmlstm_chunkwise__recurrent_bw_dC
Computes only the deltaC gradients for the backward pass. The other gradients are computed in the other (kernel) function. We do not need to c
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/triton_xl_chunk/bw_recurrent.py:12
↓ 1 callersFunctionmlstm_chunkwise__recurrent_bw_dC
Computes only the deltaC gradients for the backward pass. The other gradients are computed in the other (kernel) function. We do not need to c
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/native/bw.py:31
↓ 1 callersFunctionmlstm_chunkwise__recurrent_bw_dC
Computes only the deltaC gradients for the backward pass. The other gradients are computed in the other (kernel) function. We do not nee
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/triton_limit_chunk/bw_recurrent.py:17
↓ 1 callersFunctionmlstm_chunkwise__recurrent_bw_dC
Computes only the deltaC gradients for the backward pass. The other gradients are computed in the other (kernel) function. We do not nee
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/triton_xl_chunk/bw_recurrent.py:17
↓ 1 callersFunctionmlstm_chunkwise__recurrent_fw_C
This function computes the states of the mLSTM chunkwise formulation. It is the first part of the chunkwise forward pass and computes the inter ch
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/native/fw.py:32
↓ 1 callersFunctionmlstm_chunkwise_bw
( ## Forward arguments matQ: torch.Tensor, # (B, NH, S, DHQK) matK: torch.Tensor, # (B, NH, S, D
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/triton_limit_chunk/bw.py:15
↓ 1 callersFunctionmlstm_chunkwise_bw
( ## Forward arguments matQ: torch.Tensor, # (B, NH, S, DHQK) matK: torch.Tensor, # (B, NH, S, D
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/triton_xl_chunk/bw.py:27
↓ 1 callersFunctionmlstm_chunkwise_bw
( ## Forward arguments matQ: torch.Tensor, # (B, NH, S, DHQK) matK: torch.Tensor, # (B, NH, S, D
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/native/bw.py:194
↓ 1 callersFunctionmlstm_chunkwise_bw
Computes the backward pass of the mLSTM chunkwise formulation. Args: matQ: Tensor containing the query vectors. Shape (B, NH, S, DHQ
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/triton_limit_chunk/bw.py:12
↓ 1 callersFunctionmlstm_chunkwise_bw
( # Forward arguments matQ: jax.Array, # (B, NH, S, DHQK) matK: jax.Array, # (B, NH, S, DHQK)
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/triton_xl_chunk/bw.py:20
↓ 1 callersFunctionmlstm_chunkwise_fw
( 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/fw.py:13
↓ 1 callersFunctionmlstm_chunkwise_fw
( 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_xl_chunk/fw.py:20
↓ 1 callersFunctionmlstm_chunkwise_fw
Execute the forward pass of the mLSTM chunkwise formulation. Args: matQ: Tensor containing the queries. Shape (B, NH, S, DHQK).
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/triton_limit_chunk/fw.py:11
↓ 1 callersFunctionmlstm_chunkwise_fw
Execute the forward pass of the mLSTM chunkwise formulation. Args: matQ: Tensor containing the queries. Shape (B, NH, S, DHQK).
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/triton_xl_chunk/fw.py:11
↓ 1 callersFunctionmlstm_parallel_bw
( matDeltaHtilde: torch.Tensor, matQ: torch.Tensor, matK: torch.Tensor, matV: torch.Tensor,
agents/backbones/xlstm/mlstm_kernels/torch/parallel/native_stablef/bw.py:8
↓ 1 callersFunctionmlstm_parallel_bw
( matDeltaHtilde: torch.Tensor, matQ: torch.Tensor, matK: torch.Tensor, matV: torch.Tensor,
agents/backbones/xlstm/mlstm_kernels/torch/parallel/triton_limit_headdim/bw.py:10
↓ 1 callersFunctionmlstm_parallel_bw
( matDeltaHtilde: torch.Tensor, matQ: torch.Tensor, matK: torch.Tensor, matV: torch.Tensor,
agents/backbones/xlstm/mlstm_kernels/torch/parallel/native/bw.py:8
↓ 1 callersFunctionmlstm_parallel_bw
( matDeltaHtilde: jax.Array, matQ: jax.Array, matK: jax.Array, matV: jax.Array, vecI: jax.
agents/backbones/xlstm/mlstm_kernels/jax/parallel/native_stablef/bw.py:8
↓ 1 callersFunctionmlstm_parallel_bw
( matDeltaHtilde: jax.Array, matQ: jax.Array, matK: jax.Array, matV: jax.Array, vecI: jax.
agents/backbones/xlstm/mlstm_kernels/jax/parallel/native/bw.py:8
↓ 1 callersFunctionmlstm_parallel_fw
( matQ: torch.Tensor, matK: torch.Tensor, matV: torch.Tensor, vecI: torch.Tensor, vecF: to
agents/backbones/xlstm/mlstm_kernels/torch/parallel/triton_limit_headdim/fw.py:12
↓ 1 callersFunctionmlstm_recurrent_step__native_fw
This is a single step of the mLSTM operation in recurrent form. Args: matC_old: (B, NH, DHQK, DHV) vecN_old: (B, NH, DHQK)
agents/backbones/xlstm/mlstm_kernels/torch/recurrent/native_step.py:8
↓ 1 callersFunctionmlstm_recurrent_step__native_fw
This is a single step of the mLSTM operation in recurrent form. Args: matC_state (jax.Array): (B, NH, DHQK, DHV) vecN_state (jax.
agents/backbones/xlstm/mlstm_kernels/jax/recurrent/native_step.py:16
↓ 1 callersFunctionmlstm_recurrent_step__triton_alternate_fw
( matC_old: torch.Tensor, # (B, NH, DHQK, DHV) vecN_old: torch.Tensor, # (B, NH, DHQK) scaM_old:
agents/backbones/xlstm/mlstm_kernels/torch/recurrent/triton_step_alternate.py:18
↓ 1 callersFunctionmlstm_recurrent_step__triton_fw
( matC_old: torch.Tensor, # (B, NH, DHQK, DHHV) vecN_old: torch.Tensor, # (B, NH, DHQK) scaM_old
agents/backbones/xlstm/mlstm_kernels/torch/recurrent/triton_step.py:14
↓ 1 callersFunctionmlstm_recurrent_step__triton_fw
( matC_state: jax.Array, # (B, NH, DHQK, DHV) vecN_state: jax.Array, # (B, NH, DHQK) scaM_state:
agents/backbones/xlstm/mlstm_kernels/jax/recurrent/triton_step.py:15
↓ 1 callersFunctionnaive_recurrent_gla
(q, k, v, gk, initial_state=None, output_final_state=False, causal=True)
agents/backbones/xlstm/mlstm_kernels/baselines/flash_linear_attention/gla/naive.py:13
↓ 1 callersFunctionnamed_reduce_single
Reduce tensor at a dimension by named reduction functions. Args: x (torch.Tensor): tensor to be reduced reduction (str): one
agents/utils/tensor_util.py:629
↓ 1 callersFunctionnice_print
(details: Dict, level: int = 0)
agents/models/beso/utils/utils.py:110
↓ 1 callersFunctionpad
(x, chunk_size=16)
agents/backbones/xlstm/mlstm_kernels/baselines/flash_linear_attention/gla/chunk_fuse.py:639
↓ 1 callersFunctionplot_benchmark_result_table
Plot benchmark results from a DataFrame as line plot. This function is used in the benchmarks for plotting the result raw data. It produces si
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/plot_results.py:61
↓ 1 callersFunctionplot_error_statistics_over_time_per_batchhead
( errors: np.ndarray, # shape: (num_batchheads, num_timesteps, num_features) percentiles: list = [50,
agents/backbones/xlstm/mlstm_kernels/utils/plot/diff_lineplot.py:66
↓ 1 callersFunctionplot_error_statistics_over_time_single
( errors: np.ndarray, # shape: (num_timesteps, num_features) percentiles: list = [50, 90, 100], t
agents/backbones/xlstm/mlstm_kernels/utils/plot/diff_lineplot.py:29
↓ 1 callersFunctionplot_numerical_diffs_single
( baseline, target=None, title="", vmin=0.0, vmax=1e-2, figsize=(10, 6), convert_t
agents/backbones/xlstm/mlstm_kernels/utils/plot/diff_imshow.py:98
↓ 1 callersMethodpreprocess_goals
(self, goals, states_length, uncond=False)
agents/models/beso/models/networks/mdtv_transformer.py:255
↓ 1 callersMethodprocess_sigma_embeddings
(self, sigma)
agents/models/beso/models/networks/mdt_transformer.py:262
↓ 1 callersMethodpropose_step
(self, error)
agents/models/beso/models/edm_diffusion/gc_sampling.py:509
↓ 1 callersMethodrecover_model_state
(self, model_state, scaler)
agents/base_agent.py:253
↓ 1 callersFunctionreplace_submodules
predicate: Return true if the module is to be replaced. func: Return new module to use.
agents/encoders/resnets.py:27
↓ 1 callersFunctionreplace_submodules
predicate: Return true if the module is to be replaced. func: Return new module to use.
agents/models/beso/models/perceptual_encoders/resnets.py:27
↓ 1 callersFunctionreshape_dimensions
Reshape selected dimensions for all tensors in nested dictionary or list or tuple to a target dimension. Args: x (dict or list o
agents/utils/tensor_util.py:510
↓ 1 callersFunctionrotate_half
(x)
agents/models/beso/models/networks/transformers/position_embeddings.py:56
↓ 1 callersFunctionround_up_to_next_multiple_of
Rounds up x to the next multiple of multiple_of.
agents/backbones/xlstm/utils.py:5
↓ 1 callersMethodsample_loop
Main method to generate samples depending on the chosen sampler type. DDIM is the default as it works well in all settings.
agents/beso_agent.py:218
↓ 1 callersMethodsample_loop
Main method to generate samples depending on the chosen sampler type. DDIM is the default as it works well in all settings.
agents/models/beso/beso.py:214
↓ 1 callersFunctionsample_random_image_crops
For each image, randomly sample @num_crops crops of size (@crop_height, @crop_width), from @images. Args: images (torch.Tensor):
agents/encoders/crop_randomizer.py:224
↓ 1 callersFunctionsavefig
(file_ending)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/run_benchmark.py:200
↓ 1 callersMethodscale_aligning_goal
(self, x)
agents/utils/scaler.py:200
↓ 1 callersMethodscale_output
(self, y)
agents/utils/scaler.py:174
↓ 1 callersMethodselect_env
(self, dataset, idx)
agents/models/beso/utils/automatic_lang_annotator_mp.py:253
↓ 1 callersFunctionselect_heuristic_xl_chunk_kernel_params
Heuristic for setting the chunk size params for the XL chunk kernel. These params are used to determine the grid and block sizes for the kernel la
agents/backbones/xlstm/mlstm_kernels/triton/chunkwise/xl_chunk/kernel_param_heuristics.py:37
↓ 1 callersFunctionset_parameter_requires_grad
(model, requires_grad)
agents/encoders/film_resnets.py:16
↓ 1 callersFunctionset_parameter_requires_grad
(model, requires_grad)
agents/encoders/resnets.py:17
↓ 1 callersFunctionset_parameter_requires_grad
(model, requires_grad)
agents/models/beso/models/perceptual_encoders/film_resnets.py:16
↓ 1 callersFunctionset_parameter_requires_grad
(model, requires_grad)
agents/models/beso/models/perceptual_encoders/resnets.py:17
↓ 1 callersFunctionset_seed_everywhere
(seed)
run.py:23
↓ 1 callersMethodsetup_model
(self)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/model_benchmarks.py:66
↓ 1 callersMethodsetup_model
(self)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/huggingface_model_benchmark.py:157
↓ 1 callersFunctionsort_list_by_other
Sort a list by an other.
agents/utils/visualizer.py:23
↓ 1 callersMethodstate_dict
(self)
agents/models/beso/utils/ema.py:89
↓ 1 callersMethodstop
(self)
agents/backbones/xlstm/mlstm_kernels/utils/time.py:48
↓ 1 callersMethodstore_model_weights
Store the weights of the entire agent
agents/base_agent.py:197
↓ 1 callersMethodtest_agent
(self, agent: BaseAgent, cpu_set)
simulation/base_sim.py:31
↓ 1 callersMethodtie_weights
(self)
agents/backbones/mamba/mamba.py:297
↓ 1 callersMethodtimestep_embedding
(t, dim, max_period=10000)
agents/utils/time_embedding.py:69
↓ 1 callersFunctionto_device
Sends all torch tensors in nested dictionary or list or tuple to device @device, and returns a new nested structure. Args: x (di
agents/utils/tensor_util.py:258
↓ 1 callersFunctionto_float
Converts all torch tensors and numpy arrays in nested dictionary or list or tuple to float type entries, and returns a new nested structure.
agents/utils/tensor_util.py:359
↓ 1 callersFunctionto_one_hot_single
Convert tensor to one-hot representation, assuming a certain number of total class labels. Args: tensor (torch.Tensor): tensor conta
agents/utils/tensor_util.py:416
↓ 1 callersFunctionto_tensor
Converts all numpy arrays in nested dictionary or list or tuple to torch tensors (and leaves existing torch Tensors as-is), and returns a
agents/utils/tensor_util.py:279
↓ 1 callersFunctiontokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]] An input s
agents/models/beso/models/networks/clip.py:682
↓ 1 callersMethodtrain_one_step
Run a single training step.
trainers/base_trainer.py:139
↓ 1 callersFunctionunsqueeze
Adds dimension of size 1 at dimension @dim in all torch tensors and numpy arrays in nested dictionary or list or tuple and returns a new nest
agents/utils/tensor_util.py:215
↓ 1 callersFunctionunsqueeze_expand_at
Unsqueeze and expand a tensor at a dimension @dim by @size. Args: x (dict or list or tuple): a possibly nested dictionary or list or
agents/utils/tensor_util.py:597
↓ 1 callersMethodupdate
Update currently maintained parameters. Call this every time the parameters are updated, such as the result of the `optimizer
agents/models/beso/utils/ema.py:35
↓ 1 callersMethodvisualize_pointcloud
(self, pointcloud, color:tuple=None)
utils/visualizer/visualizer/pointcloud.py:76
↓ 1 callersFunctionvp_beta_schedule
(timesteps, dtype=torch.float32)
agents/models/ddpm/utils.py:52
↓ 1 callersFunctionwhitespace_clean
(text)
agents/models/beso/utils/clip_tokenizer.py:56
Method__call__
(self, tensor: torch.Tensor)
agents/models/beso/utils/transforms.py:16
Method__call__
(self, tensor: torch.Tensor)
agents/models/beso/utils/transforms.py:29
Method__call__
(self, tensor: torch.Tensor)
agents/models/beso/utils/transforms.py:42
Method__call__
(self, tensor: torch.Tensor)
agents/models/beso/utils/transforms.py:60
Method__call__
(self, action_and_obs)
agents/models/beso/utils/transforms.py:109
Method__call__
(self, t0, t1)
agents/models/beso/models/edm_diffusion/gc_sampling.py:133
Method__call__
(self, sigma, sigma_next)
agents/models/beso/models/edm_diffusion/gc_sampling.py:158
Method__enter__
(self)
agents/backbones/xlstm/mlstm_kernels/utils/time.py:76
Method__exit__
(self, exc_type, exc_value, traceback)
agents/backbones/xlstm/mlstm_kernels/utils/time.py:80
Method__getitem__
(self, idx)
environments/dataset/libero_dataset.py:200
Method__getitem__
(self, idx)
environments/dataset/robocasa_pc_img_dataset_memory.py:167
Method__getitem__
(self, idx)
environments/dataset/robocasa_dataset_memory.py:122
Method__getitem__
(self, idx)
environments/dataset/robocasa_dataset.py:124
Method__getitem__
(self, idx)
environments/dataset/robocasa_pc_dataset.py:139
Method__getitem__
(self, idx)
environments/dataset/robocasa_pc_dataset_memory.py:148
Method__init__
( self, data_directory: os.PathLike, device="cpu", obs_dim: in
environments/dataset/libero_dataset.py:17
Method__init__
( self, cam_names: list[str], env_name: list[str], data_directory: os.PathLike
environments/dataset/robocasa_pc_img_dataset_memory.py:15
Method__init__
( self, cam_names: list[str], env_name: list[str], data_directory: os.PathLike
environments/dataset/robocasa_dataset_memory.py:12
Method__init__
( self, data_directory: os.PathLike, device="cpu", obs_dim: in
environments/dataset/base_dataset.py:16
Method__init__
( self, cam_names: list[str], env_name: list[str], data_directory: os.PathLike
environments/dataset/robocasa_dataset.py:12
Method__init__
( self, cam_names: list[str], env_name: list[str], data_directory: os.PathLike
environments/dataset/robocasa_pc_dataset.py:12
← previousnext →401–500 of 1,241, ranked by callers