MCPcopy Create free account

hub / github.com/Gen-Verse/OpenClaw-RL / types & classes

Types & classes1,405 in github.com/Gen-Verse/OpenClaw-RL

↓ 188 callersClassTransformerConfig
Configuration object for megatron-core transformers. The initialization function has an argument for each parameter, including those in Model
Megatron-LM/megatron/core/transformer/transformer_config.py:36
↓ 168 callersClassModuleSpec
This is a Module Specification dataclass. Specification defines the location of the module (to import dynamically) or the imported module its
Megatron-LM/megatron/core/transformer/spec_utils.py:12
↓ 93 callersClassTempNamedDir
TemporaryDirectory with a fully named directory. Empties the dir if not empty.
Megatron-LM/tests/unit_tests/dist_checkpointing/__init__.py:28
↓ 74 callersClassDeterministicModel
swe-rl/mini-swe-agent/src/minisweagent/models/test_models.py:16
↓ 74 callersClassLocalEnvironment
swe-rl/mini-swe-agent/src/minisweagent/environments/local.py:15
↓ 59 callersClassSamplingParams
Inference parameters sent along with the prompts. This class contains request-level attributes that control the sampling techniques used when
Megatron-LM/megatron/core/inference/sampling_params.py:8
↓ 56 callersClassGPTModel
GPT-2 Language model.
Megatron-LM/megatron/legacy/model/gpt_model.py:45
↓ 51 callersClassCheckpointingException
Base checkpointing related exception
Megatron-LM/megatron/core/dist_checkpointing/core.py:15
↓ 49 callersClassHyperCommGrid
r"""N-dimensional communication grid. Manages an arbitrary number of parallelisms as a hyperrectangle. Each dimension is given a name at init
Megatron-LM/megatron/core/hyper_comm_grid.py:33
↓ 36 callersClassProcessGroupCollection
Unified process group collection for transformer model parallelism, gradient communication, and finalization. Fields use init=False and must
Megatron-LM/megatron/core/process_groups_config.py:27
↓ 35 callersClassArgumentGroupFactory
Utility that adds an argument group to an ArgumentParser based on the attributes of a dataclass. This utility uses dataclass metadata including t
Megatron-LM/megatron/training/argument_utils.py:21
↓ 35 callersClassMLPSubmodules
The dataclass for ModuleSpecs of MLP submodules including linear fc1, activation function, linear fc2.
Megatron-LM/megatron/core/transformer/mlp.py:47
↓ 34 callersClassInteractiveAgent
swe-rl/mini-swe-agent/src/minisweagent/agents/interactive.py:35
↓ 31 callersClassTransformerLayerSubmodules
Configuration class for specifying the submodules of a transformer layer. This class defines the structure and default implementations for v
Megatron-LM/megatron/core/transformer/transformer_layer.py:196
↓ 29 callersClassDistributedDataParallelConfig
Configuration for DistributedDataParallel.
Megatron-LM/megatron/core/distributed/distributed_data_parallel_config.py:8
↓ 28 callersClassBlendedMegatronDatasetBuilder
Builder class for the BlendedDataset and MegatronDataset classes Args: cls (Type[MegatronDataset]): The class to instantiate, must inheri
Megatron-LM/megatron/core/datasets/blended_megatron_dataset_builder.py:28
↓ 25 callersClassSelfAttentionSubmodules
Configuration class for specifying the submodules of a self-attention.
Megatron-LM/megatron/core/transformer/attention.py:117
↓ 25 callersClassSubPolicy
Definition of a SubPolicy. A SubPolicy consists of two augmentation operations, each of those parametrized as operation, probability, magnitu
Megatron-LM/megatron/legacy/data/autoaugment.py:114
↓ 25 callersClassTransformerBlock
Transformer class.
Megatron-LM/megatron/core/transformer/transformer_block.py:269
↓ 25 callersClass_ValueWithRank
This is an internal class, not for use outside this module Attributes: _rank (int): rank for the value _value (float) : the value
Megatron-LM/megatron/core/utils.py:1182
↓ 22 callersClassOptimizerConfig
Base optimizer configuration object.
Megatron-LM/megatron/core/optimizer/optimizer_config.py:26
↓ 21 callersClassDistributedDataParallel
DDP wrapper which stores grads in contiguous buffers. Also has option of overlapping communication with backprop computation by breaking up f
Megatron-LM/megatron/core/distributed/distributed_data_parallel.py:22
↓ 20 callersClassDynamicInferenceRequest
Class for one inference request Containing relevant data for an dynamic inference request
Megatron-LM/megatron/core/inference/inference_request.py:232
↓ 20 callersClassMatchContext
Layer context that can be matched to a quantization config.
Megatron-LM/megatron/core/quantization/quant_config.py:64
↓ 20 callersClassShardedObject
Represents a mapping between a local object and a global object. Global object is assumed to consist of many local objects distributed betwee
Megatron-LM/megatron/core/dist_checkpointing/mapping.py:539
↓ 18 callersClassMLATransformerConfig
Configuration object for megatron-core Multi-Latent Attention (MLA) transformers. The initialization function has an argument for each parameter,
Megatron-LM/megatron/core/transformer/transformer_config.py:1954
↓ 18 callersClassMoELayer
Mixture of Experts layer. This layer implements a Mixture of Experts model, where each token is routed to a subset of experts. This implement
Megatron-LM/megatron/core/transformer/moe/moe_layer.py:97
↓ 18 callersClassSample
The sample generated
slime/slime/utils/types.py:9
↓ 16 callersClassBubblewrapEnvironment
swe-rl/mini-swe-agent/src/minisweagent/environments/extra/bubblewrap.py:68
↓ 16 callersClassMLASelfAttention
MLA Self-attention layer class Self-attention layer takes input with size [s, b, h] and returns output of the same size.
Megatron-LM/megatron/core/transformer/multi_latent_attention.py:389
↓ 16 callersClassModelParallelConfig
Base configuration for Megatron Core The initialization function has an argument for each parameter.
Megatron-LM/megatron/core/model_parallel_config.py:14
↓ 15 callersClassInferenceWrapperConfig
Config for the model inference wrapper NOTE : All the arguments here are obtained from arguments.py file
Megatron-LM/megatron/core/inference/model_inference_wrappers/inference_wrapper_config.py:9
↓ 14 callersClassDefaultAgent
swe-rl/mini-swe-agent/src/minisweagent/agents/default.py:56
↓ 14 callersClassGenerateState
The global state for the generation process.
slime/slime/rollout/sglang_rollout.py:33
↓ 14 callersClassImageTransform
Image transformation.
Megatron-LM/examples/multimodal/image_processing.py:65
↓ 14 callersClassIndexedDataset
The low-level interface dataset class Args: path_prefix (str): The index (.idx) and data (.bin) prefix multimodal (bool): Whethe
Megatron-LM/megatron/core/datasets/indexed_dataset.py:561
↓ 14 callersClassPackedSeqParams
parameters to TEDotProductAttention and fused rope kernels for the `thd` (packed) sequence format
Megatron-LM/megatron/core/packed_seq_params.py:9
↓ 14 callersClassTrajectoryInspector
swe-rl/mini-swe-agent/src/minisweagent/run/inspector.py:26
↓ 14 callersClassTransformerBlockSubmodules
Dataclass for specifying the submodules of a transformer block. This class defines the structure for configuring the layers and normalizatio
Megatron-LM/megatron/core/transformer/transformer_block.py:209
↓ 13 callersClassFusedScaleMaskSoftmax
fused operation: scaling + mask + softmax Args: input_in_fp16: flag to indicate if input in fp16 data format. input_in_bf16:
Megatron-LM/megatron/legacy/model/fused_softmax.py:120
↓ 13 callersClassSelfAttention
Self-attention layer class Self-attention layer takes input with size [s, b, h] and returns output of the same size.
Megatron-LM/megatron/core/transformer/attention.py:1050
↓ 12 callersClassFullyParallelLoadStrategyWrapper
Wraps arbitrary load strategy and distributes the load during `load`. See `load` method docs for details. Args: strategy (LoadSharde
Megatron-LM/megatron/core/dist_checkpointing/strategies/fully_parallel.py:141
↓ 12 callersClassGPTInferenceWrapper
Inference wrapper for GPT model. The wrapper prepares the model for inference, provides the required input data, and runs the forward pass A
Megatron-LM/megatron/core/inference/model_inference_wrappers/gpt/gpt_inference_wrapper.py:20
↓ 12 callersClassInferenceRequest
Class for one inference request Containing relevant data for an inference request
Megatron-LM/megatron/core/inference/inference_request.py:59
↓ 12 callersClassSection
A docstring section.
Megatron-LM/tools/retro/config_utils.py:236
↓ 12 callersClassTensorParallelMuon
Tensor Parallel Muon optimizer.
Megatron-LM/megatron/core/optimizer/muon.py:41
↓ 12 callersClassTokenRollout
Tokenized representation of a language-based Rollout.
Megatron-LM/megatron/rl/agent/api.py:56
↓ 11 callersClassBlendedMegatronDatasetConfig
Configuration object for Megatron Core datasets
Megatron-LM/megatron/core/datasets/blended_megatron_dataset_config.py:16
↓ 11 callersClassCounter
A simple counter class This class is responsible for assigning request ids to incoming requests
Megatron-LM/megatron/core/inference/utils.py:13
↓ 11 callersClassDockerEnvironment
swe-rl/mini-swe-agent/src/minisweagent/environments/docker.py:41
↓ 11 callersClassDummyTestApp
Minimal test app for providing Textual context.
swe-rl/mini-swe-agent/tests/agents/test_interactive_textual.py:529
↓ 11 callersClassExportConfig
Base configuration for Megatron Core Export These parameters control the export setting for trtllm
Megatron-LM/megatron/core/export/export_config.py:9
↓ 11 callersClassFloat16Module
Float 16 Module. Attributes: config (TransformerConfig): Transformer config fp16 (bool) : Specifies if the model runs in fp16 mod
Megatron-LM/megatron/core/transformer/module.py:379
↓ 11 callersClassOptimizerParamScheduler
Anneals learning rate and weight decay Args: optimizer (MegatronOptimizer): the optimizer to be used init_lr (float): initial lea
Megatron-LM/megatron/core/optimizer_param_scheduler.py:14
↓ 11 callersClassPromptConfig
Config options for different prompt formats.
Megatron-LM/megatron/training/tokenizer/multimodal_tokenizer.py:52
↓ 11 callersClassRotaryEmbedding
Rotary Embedding for language model. Args: kv_channels (int): Projection weights dimension in multi-head attention. Obtained
Megatron-LM/megatron/core/models/common/embeddings/rotary_pos_embedding.py:36
↓ 11 callersClassSmartInputContainer
swe-rl/mini-swe-agent/src/minisweagent/agents/interactive_textual.py:125
↓ 11 callersClassTextualAgent
swe-rl/mini-swe-agent/src/minisweagent/agents/interactive_textual.py:242
↓ 10 callersClassArgMetadata
Arg meta.
Megatron-LM/megatron/core/transformer/cuda_graphs.py:95
↓ 10 callersClassLocalNonpersistentObject
Object that should not be stored in a checkpoint, but restored locally. Wrapping any object inside the state dict with LocalNonpersistentObject
Megatron-LM/megatron/core/dist_checkpointing/mapping.py:521
↓ 10 callersClassSingularityEnvironment
swe-rl/mini-swe-agent/src/minisweagent/environments/singularity.py:30
↓ 10 callersClass_ConverterFakeProcessGroup
Megatron-LM/tools/checkpoint/utils.py:55
↓ 9 callersClassDynamicEngineTestConfig
Test configuration args.
Megatron-LM/tests/unit_tests/inference/engines/test_dynamic_engine.py:76
↓ 9 callersClassDynamicInferenceContext
Inference context that is passed to the main model in order to efficiently calculate and store the KV cache during inference. The dynamic inf
Megatron-LM/megatron/core/inference/contexts/dynamic_context.py:190
↓ 9 callersClassDynamicInferenceEngine
The dynamic inference engine. This engine allows requests of varying length to be dynamically added and removed in each inference step. In co
Megatron-LM/megatron/core/inference/engines/dynamic_engine.py:107
↓ 9 callersClassGPTDatasetConfig
Configuration object for Megatron Core GPT datasets
Megatron-LM/megatron/core/datasets/gpt_dataset.py:24
↓ 9 callersClassGPTPipeline
GPT-specific pipeline customizations. Args: src (Union[ModelMeta, Tuple]): Model meta for loading. dst (Union[ModelMeta, Tuple]):
Megatron-LM/tests/functional_tests/test_cases/common/ckpt_converter/__main__.py:549
↓ 9 callersClassMoEModelTestContainer
Megatron-LM/tests/unit_tests/transformer/moe/test_token_dispatcher.py:35
↓ 9 callersClassMockState
Megatron-LM/tests/unit_tests/test_checkpointing.py:51
↓ 9 callersClassTextGenerationController
The text generation controller (the main sampling loop) This class tokenizes the input, runs inference, samples from logits, and detokenizes the
Megatron-LM/megatron/core/inference/text_generation_controllers/text_generation_controller.py:50
↓ 8 callersClassBridgeCommunicator
Pipeline Communicator between two modules with different(TP/DP/PP/CP). BridgeCommunicator: - Initialize the communicator between a pair of so
Megatron-LM/megatron/core/pipeline_parallel/bridge_communicator.py:39
↓ 8 callersClassInferenceBatchDimensions
Batch dimensions for dynamic inference. Attributes: token_count : number of total input tokens prefill_req_count : number of pref
Megatron-LM/megatron/core/inference/batch_dimensions_utils.py:17
↓ 8 callersClassMockTokenizer
Megatron-LM/tests/unit_tests/test_rl_utils.py:49
↓ 8 callersClassRolloutFnTrainOutput
slime/slime/rollout/base_types.py:8
↓ 8 callersClassTESpecProvider
A protocol for providing the submodules used in Spec building.
Megatron-LM/megatron/core/extensions/transformer_engine_spec_provider.py:26
↓ 8 callersClassTransformerLayer
A single transformer layer. Transformer layer takes input with size [s, b, h] and returns an output of the same size.
Megatron-LM/megatron/core/transformer/transformer_layer.py:257
↓ 7 callersClassCtx
Megatron-LM/tests/unit_tests/tensor_parallel/test_mappings.py:16
↓ 7 callersClassCudaRNGStatesTracker
Tracker for the cuda RNG states. Using the `add` method, a cuda rng state is initialized based on the input `seed` and is assigned to `name`.
Megatron-LM/megatron/core/tensor_parallel/random.py:161
↓ 7 callersClassFullyParallelSaveStrategyWrapper
Wraps arbitrary strategy and distributes the save during `save`. The save distribution happens without any *data* communication. Only the *me
Megatron-LM/megatron/core/dist_checkpointing/strategies/fully_parallel.py:48
↓ 7 callersClassGlobalModelStats
Global model statistics tracker with optional limits.
swe-rl/mini-swe-agent/src/minisweagent/models/__init__.py:13
↓ 7 callersClassLLaVAModel
LLaVA multi-modal model. Args: language_transformer_config (TransformerConfig): Transformer config for the language model. langua
Megatron-LM/megatron/core/models/multimodal/llava_model.py:49
↓ 7 callersClassLocalSpecProvider
A protocol for providing Local submodules used in Spec building.
Megatron-LM/megatron/core/models/backends.py:85
↓ 7 callersClassMambaModel
Mamba language model. Args: config (TransformerConfig): Model config mamba_stack_spec (ModuleSpec): Specifies the modules to use
Megatron-LM/megatron/core/models/mamba/mamba_model.py:22
↓ 7 callersClassMultiModulePipelineCommunicator
Communicator for a multi-module pipeline.
Megatron-LM/megatron/core/pipeline_parallel/multimodule_communicator.py:40
↓ 7 callersClassNonTerminatingException
Raised for conditions that can be handled by the agent.
swe-rl/mini-swe-agent/src/minisweagent/agents/default.py:32
↓ 7 callersClassRerunDataIterator
A wrapper class for data iterators that adds replay capability. Args: iterable: data iterator that needs the replay capability. m
Megatron-LM/megatron/core/rerun_state_machine.py:1027
↓ 7 callersClassShardedTensorFactory
Allows to apply transformations to tensors before/after serialization. The essence of those transformations is that they can be applied to op
Megatron-LM/megatron/core/dist_checkpointing/mapping.py:617
↓ 7 callersClassStaticInferenceContext
Static inference context that is passed to the main model in order to efficiently manage the KV cache during inference. Args: max_bat
Megatron-LM/megatron/core/inference/contexts/static_context.py:10
↓ 7 callersClassStaticInferenceEngine
The Megatron core backend constructor This is the backend that does a simple forward pass on the model. Supports any model that is callable (
Megatron-LM/megatron/core/inference/engines/static_engine.py:34
↓ 7 callersClassYarnRotaryEmbedding
Yarn Rotary Embedding for language model. Args: kv_channels (int): Projection weights dimension in multi-head attention. Obtained from
Megatron-LM/megatron/core/models/common/embeddings/yarn_rotary_pos_embedding.py:21
↓ 6 callersClassBertModel
Bert Language model.
Megatron-LM/megatron/legacy/model/bert_model.py:127
↓ 6 callersClassBucket
A container for holding data in Fully Sharded Data Parallel (FSDP) training. Attributes: data (torch.Tensor): A tensor containing th
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:440
↓ 6 callersClassCrossAttentionSubmodules
Configuration class for specifying the submodules of a cross-attention.
Megatron-LM/megatron/core/transformer/attention.py:130
↓ 6 callersClassDataParallelBuffer
A class that manages the data parallel buffer for Fully Sharded Data Parallel (FSDP) training. It has two operating modes given a bucket of m
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:790
↓ 6 callersClassDistributedOptimizer
Distributed optimizer, for all data types (fp16, bf16, and fp32). See __init__() below for argument details.
Megatron-LM/megatron/core/optimizer/distrib_optimizer.py:94
↓ 6 callersClassDummyState
A dummy state class that holds various attention-related parameters. This class is used to simulate the state object that would normally be
Megatron-LM/tests/unit_tests/a2a_overlap/utils.py:14
↓ 6 callersClassFullyShardedDataParallel
Fully Sharded Data Parallel (FSDP) wrapper for the Megatron model.
Megatron-LM/megatron/core/distributed/fsdp/mcore_fsdp_adapter.py:58
↓ 6 callersClassMimoModel
Multimodal In/Out Model supporting arbitrary combinations of modalities. .. warning:: **EXPERIMENTAL**: This class is experimental, still
Megatron-LM/megatron/core/models/mimo/model/base.py:16
↓ 6 callersClassMimoModelConfig
Configuration for a multi-modal model. Args: language_model_spec (ModuleSpec): Specification for the language model m
Megatron-LM/megatron/core/models/mimo/config/base_configs.py:11
↓ 6 callersClassMultiTurnLossMaskGenerator
slime/slime/utils/mask_utils.py:9
next →1–100 of 1,405, ranked by callers