MCPcopy Create free account

hub / github.com/ALRhub/X_IL / functions

Functions1,241 in github.com/ALRhub/X_IL

Functionget_mlstm_kernel
Get a mlstm sequence kernel function by name. Naming convention: name = "<module_name>--<backend_name>" module_name: The name of th
agents/backbones/xlstm/mlstm_kernels/jax/__init__.py:39
Functionget_mlstm_step_kernel
Get a mlstm step kernel function by name. Naming convention: name = "<backend_name>" backend_name: The name of the kernel function
agents/backbones/xlstm/mlstm_kernels/jax/__init__.py:69
Functionget_mlstm_v1_fw_7B_flops
(sequence_length: int, chunk_size: int, batch_size: int = 1)
agents/backbones/xlstm/mlstm_kernels/utils/flops/mlstm_flop_analysis.py:21
Functionget_mlstm_v2_fw_7B_flops
(sequence_length: int, chunk_size: int, batch_size: int = 1)
agents/backbones/xlstm/mlstm_kernels/utils/flops/mlstm_flop_analysis.py:51
Methodget_model_state
(self)
agents/base_agent.py:248
Methodget_model_state_dict
(self)
agents/base_agent.py:238
Methodget_params
(self)
agents/models/bc/bc.py:31
Methodget_params
(self)
agents/models/beso/models/networks/mdtv_transformer.py:321
Methodget_params
(self)
agents/models/beso/models/networks/mdt_transformer.py:252
Methodget_params
(self)
agents/models/beso/models/edm_diffusion/score_wrappers.py:99
Functionget_portion_of_batch_ids
Select percentage * batch_size indices spread out evenly throughout array Examples ________ >>> get_portion_of_batch_ids(percentage=
agents/models/beso/utils/utils.py:139
Functionget_sampling_fn
(sampling_fn_name: str)
agents/backbones/xlstm/generate.py:23
Methodget_scaler
(self)
agents/base_agent.py:242
Methodget_seq_length
(self, idx)
environments/dataset/robocasa_pc_img_dataset_memory.py:137
Methodget_seq_length
(self, idx)
environments/dataset/robocasa_dataset_memory.py:93
Methodget_seq_length
Returns the length of the idx-th trajectory.
environments/dataset/base_dataset.py:36
Methodget_seq_length
(self, idx)
environments/dataset/robocasa_dataset.py:89
Methodget_seq_length
(self, idx)
environments/dataset/robocasa_pc_dataset.py:103
Methodget_seq_length
(self, idx)
environments/dataset/robocasa_pc_dataset_memory.py:118
Functionget_shape
Get all shapes of arrays and tensors in nested dictionary or list or tuple. Args: x (dict or list or tuple): a possibly nested dicti
agents/utils/tensor_util.py:850
Functionget_slstm_fw_flop_dict
(sequence_length: int)
agents/backbones/xlstm/mlstm_kernels/utils/flops/slstm_block_flop_counts.py:41
Functionget_strides
Returns the strides of a JAX array. Args: array: JAX array or shape-dtype struct. Returns: The strides of the array. Le
agents/backbones/xlstm/mlstm_kernels/jax/stride_utils.py:8
Functionget_transformer_fw_flop_dict
Returns a dictionary with the FLOPs of the transformer block for different hidden sizes.
agents/backbones/xlstm/mlstm_kernels/utils/flops/transformer_block_flop_counts.py:26
Methodget_value
Gets the current EMA decay rate.
agents/utils/ema.py:130
Methodget_value
Gets the current EMA decay rate.
agents/models/beso/utils/ema.py:130
Functiongreedy_sampling
Takes the argmax of the logits. Actually no sampling is done here.
agents/backbones/xlstm/generate.py:13
Functiongrid
(args)
agents/backbones/xlstm/mlstm_kernels/torch/parallel/triton_limit_headdim/fw.py:40
Functiongrid_fn_C
(args)
agents/backbones/xlstm/mlstm_kernels/torch/recurrent/triton_step_alternate.py:70
Functiongrid_fn_h
(args)
agents/backbones/xlstm/mlstm_kernels/torch/recurrent/triton_step_alternate.py:129
Methodhidden_size
(self)
agents/encoders/siglip_encoder.py:76
Functionindex_at_time
Indexes all torch tensors and numpy arrays in dimension 1 with index @ind in nested dictionary or list or tuple and returns a new nested stru
agents/utils/tensor_util.py:193
Functioninitialize_pretrained_weights
(model, cfg)
agents/models/beso/utils/utils.py:32
Methodinverse_scale_input
(self, x)
agents/utils/scaler.py:183
Methodinverse_scale_output
Inversely scales the output tensor `y` based on the defined scaling parameters. Args: y (torch.Tensor): The output tenso
agents/utils/scaler.py:70
Methodinverse_scale_output
(self, y)
agents/utils/scaler.py:264
Functionkeep
(conf)
agents/backbones/xlstm/mlstm_kernels/baselines/flash_attention/triton_tutorial.py:109
Functionkeep
(conf)
agents/backbones/xlstm/mlstm_kernels/triton/recurrent/fw_step_alternate.py:53
Functionkeep
(conf)
agents/backbones/xlstm/mlstm_kernels/triton/parallel/limit_headdim/fw_kernel.py:60
Methodkernel_fn
(*args, **kwargs)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/training_kernel_benchmarks.py:254
Methodkernel_fn
(*args, **kwargs)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/training_kernel_benchmarks.py:399
Methodkernel_fn
(q, k, v, f, initial_state)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/inference_kernel_benchmarks.py:198
Methodkernel_fn2
(q, k, v)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/training_kernel_benchmarks.py:522
Methodlap
(self)
agents/backbones/xlstm/mlstm_kernels/utils/time.py:55
Methodlap_count
(self)
agents/backbones/xlstm/mlstm_kernels/utils/time.py:68
Methodlap_times_seconds
(self)
agents/backbones/xlstm/mlstm_kernels/utils/time.py:94
Methodlast_lap_time
(self)
agents/backbones/xlstm/mlstm_kernels/utils/time.py:63
Functionlist_of_flat_dict_to_dict_of_list
Helper function to go from a list of flat dictionaries to a dictionary of lists. By "flat" we mean that none of the values are dictionaries,
agents/utils/tensor_util.py:871
Methodllm_forward
(tokens, state)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/model_benchmarks.py:160
Methodload_model_scaler
Load the model scaler from the weights path
agents/base_agent.py:218
Methodload_shadow_params
(self, parameters)
agents/utils/ema.py:93
Methodload_shadow_params
(self, parameters)
agents/models/beso/utils/ema.py:93
Functionlog_likelihood
Computes the log-likelihood of actions
agents/models/beso/models/edm_diffusion/gc_sampling.py:469
Functionlogcumsumexp_fwd_kernel
(s, z, s_s_h, s_s_t, s_s_d, T: tl.constexpr, S: tl.constexpr, BT: tl.constexpr)
agents/backbones/xlstm/mlstm_kernels/baselines/flash_linear_attention/fla_utils.py:27
Functionmake_chunkwise_flop_chunksize_sweep
( seq_len, chunk_sizes: list[int], dqk, dv, Nh, factor_exp, factor_max, factor_mask )
agents/backbones/xlstm/mlstm_kernels/utils/flops/mlstm_flop_analysis.py:254
Functionmake_chunkwise_flop_sequence_length_sweep
( seq_lengths: list[int], chunk_size, dqk, dv, Nh, factor_exp, factor_max, factor_mask )
agents/backbones/xlstm/mlstm_kernels/utils/flops/mlstm_flop_analysis.py:294
Functionmake_flop_table
( model_size_keys: list[str], mlstm_flops_v1: dict[str, FLOPsComputation], mlstm_flops_v2: dict[st
agents/backbones/xlstm/mlstm_kernels/utils/flops/mlstm_flop_analysis.py:201
Functionmake_sample_contour_plot
(actions, n_steps, file_store_path)
agents/models/beso/models/edm_diffusion/gc_sampling.py:997
Functionmap_ndarray
Apply function @func to np.ndarray objects in a nested dictionary or list or tuple. Args: x (dict or list or tuple): a possibly
agents/utils/tensor_util.py:67
Functionmap_tensor_ndarray
Apply function @tensor_func to torch.Tensor objects and @ndarray_func to np.ndarray objects in a nested dictionary or list or tuple. Arg
agents/utils/tensor_util.py:88
Functionmat2quat_numpy
Converts given rotation matrix to quaternion. Args: rmat (np.array): Rotation matrix with shape [..., 3, 3] Returns: np
utils/transform_utils.py:95
Functionmlstm_chunkwise
( 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:321
Functionmlstm_chunkwise
Computes the forward pass of the mLSTM chunkwise formulation. Args: matQ (jax.Array): The query matrix Q. Shape (B, NH, S, DHQK).
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/native/fw.py:372
Functionmlstm_chunkwise__limit_chunk
( q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, i: torch.Tensor, f: torch.Tensor,
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/triton_limit_chunk/fwbw.py:177
Functionmlstm_chunkwise__limit_chunk
Apply the mLSTM chunkwise formulation with Triton kernels. Supports autograd application. Args: q: The query tensor of shape (B
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/triton_limit_chunk/fwbw.py:217
Functionmlstm_chunkwise__native_autograd
( q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, i: torch.Tensor, f: torch.Tensor,
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/native/fwbw.py:192
Functionmlstm_chunkwise__native_autograd
( q: jax.Array, k: jax.Array, v: jax.Array, i: jax.Array, f: jax.Array, c_initial: jax
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/native/fwbw.py:9
Functionmlstm_chunkwise__native_custbw
( q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, i: torch.Tensor, f: torch.Tensor,
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/native/fwbw.py:226
Functionmlstm_chunkwise__parallel_bw_dK_kernel
( ## input tensor pointers matQ, # (B, NH, S, DHQK) matK, # (B, NH, S, DHQK) matV, # (B, NH
agents/backbones/xlstm/mlstm_kernels/triton/chunkwise/xl_chunk/bw_kernel_parallel_dK.py:17
Functionmlstm_chunkwise__parallel_bw_dQKV_kernel
( matQ, # (B, NH, S, DHQK) matK, # (B, NH, S, DHQK) matV, # (B, NH, S, DHHV) vecB, # (B, N
agents/backbones/xlstm/mlstm_kernels/triton/chunkwise/limit_chunk/bw_kernel_parallel.py:33
Functionmlstm_chunkwise__parallel_bw_dQ_kernel
( ## input tensor pointers matQ, # (B, NH, S, DHQK) matK, # (B, NH, S, DHQK) matV, # (B, NH
agents/backbones/xlstm/mlstm_kernels/triton/chunkwise/xl_chunk/bw_kernel_parallel_dQ.py:17
Functionmlstm_chunkwise__parallel_bw_dV_kernel
( ## input tensor pointers matQ, # (B, NH, S, DHQK) matK, # (B, NH, S, DHQK) matV, # (B, NH
agents/backbones/xlstm/mlstm_kernels/triton/chunkwise/xl_chunk/bw_kernel_parallel_dV.py:17
Functionmlstm_chunkwise__parallel_fw_H_kernel
( matQ, # (B, NH, S, DHQK) matK, # (B, NH, S, DHQK) matV, # (B, NH, S, DHHV) matC_states,
agents/backbones/xlstm/mlstm_kernels/triton/chunkwise/limit_chunk/fw_kernel_parallel.py:33
Functionmlstm_chunkwise__parallel_fw_Hintra_kernel
( matQ, # (B, NH, S, DHQK) matK, # (B, NH, S, DHQK) matV, # (B, NH, S, DHHV) # these are al
agents/backbones/xlstm/mlstm_kernels/triton/chunkwise/xl_chunk/fw_kernel_parallel.py:14
Functionmlstm_chunkwise__recurrent_bw_dC_kernel
( matQ, # (B, NH, S, DHQK) vecF, # (B, NH, NC * L) = (B, NH, S) scaM_inter, # (B, NH, NC+1)
agents/backbones/xlstm/mlstm_kernels/triton/chunkwise/xl_chunk/bw_kernel_recurrent.py:15
Functionmlstm_chunkwise__recurrent_bw_dC_kernel
( matQ, # (B, NH, S, DHQK) vecB, # (B, NH, NC, L) scaM_inter, # (B, NH, NC+1) vecM_combine,
agents/backbones/xlstm/mlstm_kernels/triton/chunkwise/limit_chunk/bw_kernel_recurrent.py:33
Functionmlstm_chunkwise__recurrent_fw_C_kernel
( matK, # (B, NH, S, DHQK) matV, # (B, NH, S, DHHV) vecF, # (B, NH, NC * L) = (B, NH, S) ve
agents/backbones/xlstm/mlstm_kernels/triton/chunkwise/xl_chunk/fw_kernel_recurrent.py:14
Functionmlstm_chunkwise__recurrent_fw_C_kernel
( matK, # (B, NH, S, DHQK) matV, # (B, NH, S, DHHV) vecB, # (B, NH, NC, L) vecI, # (B, NH,
agents/backbones/xlstm/mlstm_kernels/triton/chunkwise/limit_chunk/fw_kernel_recurrent.py:33
Functionmlstm_chunkwise__xl_chunk
( q: torch.Tensor, # (B, NH, S, DHQK) k: torch.Tensor, # (B, NH, S, DHQK) v: torch.Tensor, # (B
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/triton_xl_chunk/fwbw.py:244
Functionmlstm_chunkwise__xl_chunk
Apply the mLSTM chunkwise formulation with Triton kernels. Supports autograd application. Args: q: The query tensor of shape (B
agents/backbones/xlstm/mlstm_kernels/jax/chunkwise/triton_xl_chunk/fwbw.py:240
Functionmlstm_fwbw
( matQ: torch.Tensor, matK: torch.Tensor, matV: torch.Tensor, vecI: torch.Tensor, vecF: to
agents/backbones/xlstm/mlstm_kernels/torch/parallel/_native_tiled.py:364
Functionmlstm_parallel__limit_headdim
( q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, i: torch.Tensor, f: torch.Tensor,
agents/backbones/xlstm/mlstm_kernels/torch/parallel/triton_limit_headdim/fwbw.py:81
Functionmlstm_parallel__native_autograd
( q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, i: torch.Tensor, f: torch.Tensor,
agents/backbones/xlstm/mlstm_kernels/torch/parallel/native/fwbw.py:88
Functionmlstm_parallel__native_autograd
Apply the mLSTM parallel formulation in native JAX. Gradients are computed through autograd. This function does not use stable forget gat
agents/backbones/xlstm/mlstm_kernels/jax/parallel/native/fwbw.py:19
Functionmlstm_parallel__native_custbw
( q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, i: torch.Tensor, f: torch.Tensor,
agents/backbones/xlstm/mlstm_kernels/torch/parallel/native/fwbw.py:117
Functionmlstm_parallel__native_custbw
Apply the mLSTM parallel formulation in native JAX. Gradients are computed through autograd. This function does not use stable forget gat
agents/backbones/xlstm/mlstm_kernels/jax/parallel/native/fwbw.py:192
Functionmlstm_parallel__native_stablef_autograd
( q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, i: torch.Tensor, f: torch.Tensor,
agents/backbones/xlstm/mlstm_kernels/torch/parallel/native_stablef/fwbw.py:88
Functionmlstm_parallel__native_stablef_autograd
Apply the mLSTM parallel formulation in native JAX. Gradients are computed through autograd. This function uses the stable forget gate ma
agents/backbones/xlstm/mlstm_kernels/jax/parallel/native_stablef/fwbw.py:19
Functionmlstm_parallel__native_stablef_custbw
( q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, i: torch.Tensor, f: torch.Tensor,
agents/backbones/xlstm/mlstm_kernels/torch/parallel/native_stablef/fwbw.py:117
Functionmlstm_parallel__native_stablef_custbw
Apply the mLSTM parallel formulation in native JAX. Gradients are computed through autograd. This function uses the stable forget gate ma
agents/backbones/xlstm/mlstm_kernels/jax/parallel/native_stablef/fwbw.py:192
Functionmlstm_parallel_bw_dKdV_kernel
( matDeltaHtilde, matQ, matK, matV, vecI, vecF_cs, vecM, vecN, qk_scale,
agents/backbones/xlstm/mlstm_kernels/triton/parallel/limit_headdim/bw_kernel.py:231
Functionmlstm_parallel_bw_dQ_kernel
( matDeltaHtilde, matQ, matK, matV, vecI, vecF_cs, vecM, vecN, qk_scale,
agents/backbones/xlstm/mlstm_kernels/triton/parallel/limit_headdim/bw_kernel.py:26
Functionmlstm_parallel_fw_kernel
( matQ, matK, matV, vecI, vecF_cs, qk_scale, matH, # vecM, vecN, stri
agents/backbones/xlstm/mlstm_kernels/triton/parallel/limit_headdim/fw_kernel.py:76
Functionmlstm_recurrent_sequence__native_fw
( q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, i: torch.Tensor, f: torch.Tensor,
agents/backbones/xlstm/mlstm_kernels/torch/recurrent/native_sequence.py:125
Functionmlstm_recurrent_sequence__native_fw
Forward pass of the mLSTM cell in recurrent form on a full sequence using native JAX implementation. Args: q: Queries tensor of shap
agents/backbones/xlstm/mlstm_kernels/jax/recurrent/native_sequence_scan.py:113
Functionmlstm_recurrent_sequence__native_fw
Forward pass of the mLSTM cell in recurrent form on a full sequence using native JAX implementation. Args: q: Queries tensor of shap
agents/backbones/xlstm/mlstm_kernels/jax/recurrent/native_sequence.py:143
Functionmlstm_recurrent_sequence__triton_alternate_step_fw
( q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, i: torch.Tensor, f: torch.Tensor,
agents/backbones/xlstm/mlstm_kernels/torch/recurrent/native_sequence.py:162
Functionmlstm_recurrent_sequence__triton_step_fused_fw
( q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, i: torch.Tensor, f: torch.Tensor,
agents/backbones/xlstm/mlstm_kernels/torch/recurrent/native_sequence.py:197
Functionmlstm_recurrent_sequence__triton_step_fused_fw
Forward pass of the mLSTM cell in recurrent form on a full sequence using the fused Triton step kernel. Args: q: Queries tensor
agents/backbones/xlstm/mlstm_kernels/jax/recurrent/native_sequence_scan.py:167
Functionmlstm_recurrent_sequence__triton_step_fused_fw
Forward pass of the mLSTM cell in recurrent form on a full sequence using the fused Triton step kernel. Args: q: Queries tensor
agents/backbones/xlstm/mlstm_kernels/jax/recurrent/native_sequence.py:198
Functionmlstm_recurrent_step__native
This is a single step of the mLSTM operation in recurrent form.
agents/backbones/xlstm/mlstm_kernels/torch/recurrent/native_step.py:104
← previousnext →1,001–1,100 of 1,241, ranked by callers