MCPcopy Create free account

hub / github.com/apple/axlearn / types & classes

Types & classes2,118 in github.com/apple/axlearn

↓ 149 callersClass_SystemCharacteristics
axlearn/cloud/gcp/system_characteristics.py:19
↓ 131 callersClassWeightedSummary
A weighted tensor represents a weighted Summable value. Weight should be a tensor and is assumed to be non-negative. A weight of zero corresp
axlearn/common/metrics.py:35
↓ 122 callersClassParameterSpec
Specification of a layer parameter. This is a dataclass so that jax.tree.map does not expand it, treating it as a leaf node in pytrees. This
axlearn/common/base_layer.py:165
↓ 87 callersClassVDict
A dict with Tensor leaf nodes whose values should be vectorized.
axlearn/common/utils.py:433
↓ 66 callersClassJobState
Bastion job state. Attributes: status: Job status. metadata: Additional metadata.
axlearn/cloud/common/bastion.py:495
↓ 62 callersClassJobMetadata
Metadata for a bastion job.
axlearn/cloud/common/job_types.py:27
↓ 60 callersClassOptParam
A parameter to be optimized by an optimizer.
axlearn/common/optimizer_base.py:30
↓ 43 callersClassFanAxes
FanAxes describes axis indices corresponding to input, output, and batch axes. Note: axes not listed in {in,out,batch}_axis are assumed to be the
axlearn/common/param_init.py:24
↓ 39 callersClassRematSpec
Configuration for rematerialization (remat) / checkpointing of layer computations. Rematerialization (also called checkpointing) is a memory-savi
axlearn/common/base_layer.py:235
↓ 37 callersClassTolerance
axlearn/common/test_utils.py:158
↓ 27 callersClassKVState
Represents key/value projections. Fields: k_proj: [batch, source_length, num_kv_heads, per_head_dim], Projected key tensor. v_pro
axlearn/common/kv_cache/base_kv_cache.py:15
↓ 25 callersClassFactorizationSpec
A FactorizationSpec describes how to factorize a parameter's gradient. Used by AdaFactor optimizer for memory-efficient second-moment estimation
axlearn/common/base_layer.py:131
↓ 23 callersClassJob
A bastion job. Attributes: spec: Job spec. state: Job state. command_proc: Optional process for the main command.
axlearn/cloud/common/bastion.py:508
↓ 20 callersClassInvocationContext
The invocation context for `Module.__call__()`. Attributes: name: The context name. Must be unique among sibling contexts. parent
axlearn/common/module.py:367
↓ 20 callersClassPartitionedGradientTransformation
An optax-style optimizer with a function to partition the inputs across devices. For new optimizers, using `UpdateTransformation` is preferred in
axlearn/common/optimizer_base.py:71
↓ 16 callersClassCompositeAttentionBias
A lazily evaluated list of biases that are added together to get the final bias. The implementation automatically flattens nested instances of `C
axlearn/common/attention_bias.py:216
↓ 16 callersClassValidationError
Validation failure (e.g. JobSpec deserialization).
axlearn/cloud/common/bastion.py:288
↓ 15 callersClassImageSummary
A summary that should be logged as a batch of images. The shape should either be (batch, height, width, channels) or (batch, height, width).
axlearn/common/summary.py:43
↓ 13 callersClassForwardOutputs
axlearn/common/update_transformation.py:343
↓ 13 callersClassQuotaInfo
Quota information for job scheduling.
axlearn/cloud/common/quota.py:20
↓ 11 callersClassCausalAttentionBias
A causal attention mask.
axlearn/common/attention_bias.py:663
↓ 11 callersClassCombo
axlearn/common/utils_test.py:116
↓ 11 callersClassGoodputRecorder
Records overall training goodput.
axlearn/cloud/gcp/measurement.py:38
↓ 11 callersClassOutputCollection
Implicit outputs from module invocations. Usually users do not interact with `OutputCollection` directly, but via `InvocationContext.add_{sum
axlearn/common/module.py:251
↓ 11 callersClassParamEmaState
Captures an exponential moving average for all params.
axlearn/common/optimizers.py:1585
↓ 11 callersClassUpdates
An update to model params and state that can be transformed.
axlearn/common/update_transformation.py:207
↓ 10 callersClassFeatureMap
axlearn/common/rattention/kernels/utils.py:19
↓ 10 callersClassHybridMeshShape
A mesh shape for hybrid (i.e., ICI and DCN) parallelism. For example, with mesh axes (data, model): - Pure fsdp on a v4-8: HybridMesh
axlearn/common/utils.py:95
↓ 10 callersClassSlidingWindowAttentionBias
A sliding window attention mask.
axlearn/common/attention_bias.py:685
↓ 9 callersClassGitSummary
Retrieve different summaries for a git repo. Git summaries include things like the current commit, branch, origin, and whether the workspace
axlearn/cloud/common/git_summary.py:141
↓ 9 callersClassTable
A table which can be pretty-printed.
axlearn/cloud/common/utils.py:318
↓ 9 callersClassTrainerState
axlearn/common/trainer.py:73
↓ 8 callersClassBestFitSegmentTree
A segment tree adapter for best-fit decreasing bin packing.
axlearn/common/segment_tree.py:151
↓ 8 callersClassDataMixtureComponent
Defines a dataset mixture component to be used for training a LMs.
axlearn/experiments/text/common.py:17
↓ 8 callersClassProjectResourceUtilization
Holds per-resource-type usage and quota for a project. Attributes: usage: Current resource usage for this resource type. quota: R
axlearn/cloud/common/bastion.py:780
↓ 8 callersClass_DummyVocabulary
A dummy vocab.
axlearn/common/input_grain_text_test.py:27
↓ 7 callersClass_Point
axlearn/common/flax_struct_test.py:27
↓ 6 callersClassCommandGroup
A CommandGroup groups multiple commands under a common namespace.
axlearn/cli/utils.py:91
↓ 6 callersClassDecodeOutputs
Output of decoding.
axlearn/audio/decoder_asr.py:144
↓ 6 callersClassDummyConfig
axlearn/cloud/common/utils_test.py:246
↓ 6 callersClassMaskFnAttentionBias
An attention bias represented as an implicit boolean mask.
axlearn/common/attention_bias.py:502
↓ 6 callersClassMockUtilizationSample
axlearn/common/monitoring/gpu_client_test.py:23
↓ 6 callersClassMockUtilizationSampleValue
axlearn/common/monitoring/gpu_client_test.py:18
↓ 5 callersClassAddDecayedWeightsState
axlearn/common/optimizers.py:463
↓ 5 callersClassBPEVocabulary
BPE tokenization in the style of GPT2 and RoBERTa, compatible with seqio. Known differences: - Encoding is truncated at null bytes, seeming
axlearn/common/vocabulary_bpe.py:26
↓ 5 callersClassBoundedDataShardedAsyncCheckpointManager
Similar to GlobalAsyncCheckpointManager but with few improvements: 1. Tensorstore calls now run in a background event loop, hiding the cost of `t
axlearn/common/array_serialization.py:1167
↓ 5 callersClassComputableMask
Computable mask for splash attention that supports custom mask functions. This mask accepts any Jax/Numpy exchangeable mask function following th
axlearn/common/flash_attention/splash_attention_mask.py:19
↓ 5 callersClassConfig
axlearn/common/config_test.py:41
↓ 5 callersClassGitSummaryMember
Generic class to define various git summary attributes and how the values for this attributes are collected and exposed as a label and/or a file.
axlearn/cloud/common/git_summary.py:16
↓ 5 callersClassJobLifecycleEvent
Represents a lifecycle event for a job. Attributes: job_name: The name of the job associated with this event. state: The state of
axlearn/cloud/common/bastion.py:255
↓ 5 callersClassMyConfig
axlearn/common/config_test.py:958
↓ 5 callersClassMyCustomType
axlearn/common/config_test.py:954
↓ 5 callersClassSkipClipState
State returned by functions in skip_and_clip_by_global_norm().
axlearn/common/optimizers.py:1239
↓ 5 callersClassTestConfig
axlearn/common/config_test.py:252
↓ 5 callersClassZeroAttentionBias
"Attention bias that adds zero. It is better to check whether a bias has `value()` None rather than using an isinstacne check on this class,
axlearn/common/attention_bias.py:725
↓ 5 callersClass_CommitFuture
Represents the result of a background commit.
axlearn/common/array_serialization.py:980
↓ 5 callersClass_LoadBalancer
Configures the load balancer which exposes a K8s replicated job. The jobset-controller will take care of creating the load balancer ba
axlearn/cloud/gcp/jobset_utils.py:142
↓ 4 callersClassAcceleratorConfig
Configures job resources, e.g. TPU or GPU. Attributes: instance_type: Instance type, e.g. tpu-v4-8. The format of instance type is
axlearn/cloud/common/utils.py:376
↓ 4 callersClassDataclassCombo
axlearn/common/utils_test.py:243
↓ 4 callersClassExpectedAudio
Information about expected logged audio summaries.
axlearn/common/summary_test.py:166
↓ 4 callersClassInvalidDescendantError
axlearn/common/module.py:247
↓ 4 callersClassManagerClient
FT trainer manager gRPC client with simplified, consistent interface.
axlearn/ft/manager_client.py:23
↓ 4 callersClassMultiPageAsyncCopyDescriptor
Descriptor for async copy of multiple K/V pages from HBM. Ported from https://github.com/jax-ml/jax/blob/127aa7621868cb77e552b5d1f90e4a42b09c
axlearn/common/flash_attention/tpu_paged_attention_kernel.py:40
↓ 4 callersClassParamInitSpec
axlearn/common/test_utils.py:371
↓ 4 callersClassRequiredFieldMissingError
axlearn/common/config.py:285
↓ 4 callersClassSegmentIdAttentionBias
An attention bias defined by segment ids.
axlearn/common/attention_bias.py:434
↓ 4 callersClassVmInfo
Information associated with a VM instance.
axlearn/cloud/gcp/vm.py:181
↓ 4 callersClass_AdastarPerParamState
axlearn/common/optimizers.py:1859
↓ 4 callersClass_ConfigA
A dummy config class.
axlearn/experiments/trainer_config_utils_test.py:51
↓ 4 callersClass_DeepCopyWithClosureFnWrapper
A wrapper for TrainerConfigFn that tries to serialize them before calling. This helps prevent cases where trainer config functions share states in
axlearn/experiments/trainer_config_utils.py:117
↓ 3 callersClassAudioSummary
Audio summary. Attributes: _value: A Tensor representing audio data with shape [t,] or [t,c], t is the number of frames, and
axlearn/common/summary.py:80
↓ 3 callersClassBiasAndResidual
A bias and residual where the bias has type `B` (or is None) and the residual has any type. Used to represent an original bias that has been
axlearn/common/attention_bias.py:194
↓ 3 callersClassDownloadJobsResult
Data object to encapsulate download job's various outputs. Attributes: jobs: A mapping from job name to Job(spec, state). jobs_wi
axlearn/cloud/common/bastion.py:587
↓ 3 callersClassElasticDatasetIterator
Iterator for ElasticDataset
axlearn/common/elastic_input.py:252
↓ 3 callersClassFakeTpuGrpcService
Fake libtpu server for testing.
axlearn/cloud/gcp/monitoring/tpu_client_test.py:45
↓ 3 callersClassGCSFuseMount
Configures the GCS FUSE mount. https://cloud.google.com/kubernetes-engine/docs/how-to/persistent-volumes/cloud-storage-fuse-csi-driver#sidecar-co
axlearn/cloud/gcp/jobset_utils.py:81
↓ 3 callersClassHostMount
Configures the hostPath mount. https://kubernetes.io/docs/concepts/storage/volumes/#hostpath Attributes: host_path: Host path to mou
axlearn/cloud/gcp/jobset_utils.py:112
↓ 3 callersClassJobSpec
Represents a job that is executed by bastion.
axlearn/cloud/common/job_types.py:46
↓ 3 callersClassJobVerdict
Describes whether the job should run. Attributes: over_limits: If the job cannot be scheduled, the set of resource types on which the job
axlearn/cloud/common/scheduler.py:127
↓ 3 callersClassModalityVocabInfo
A modality-specific vocab info. The range [placeholder_start, placeholder_end) denotes the global range of placeholder tokens for this modali
axlearn/common/embedding.py:174
↓ 3 callersClassPredictionOutputs
axlearn/common/evaler.py:762
↓ 3 callersClassScaleByLionState
State for the Lion algorithm.
axlearn/common/optimizers.py:1655
↓ 3 callersClassSplashAttentionKernel
A class wrapper around the splash attention kernel.
axlearn/common/flash_attention/tpu_splash_attention.py:1959
↓ 3 callersClassStopOnSubsequence
Early stopping on suffix-matches.
axlearn/common/decoding.py:847
↓ 3 callersClassTensorAttentionBias
An attention bias represented as an explicit Tensor.
axlearn/common/attention_bias.py:350
↓ 3 callersClassTensorSpec
Specification of a Tensor. Used to describe model parameters and optimizer states.
axlearn/common/utils.py:127
↓ 3 callersClassTestAttentionBias
axlearn/common/attention_bias_test.py:188
↓ 3 callersClassTestConfigB
axlearn/common/config_test.py:670
↓ 3 callersClassTopology
axlearn/cloud/common/job_types.py:21
↓ 3 callersClassVMCreationError
An error with VM creation.
axlearn/cloud/gcp/vm.py:22
↓ 3 callersClass_AdastarState
axlearn/common/optimizers.py:1864
↓ 3 callersClass_ShardInfo
Stores information for a maybe sliced jax.Shard. Attributes: data: The actual data of the shard. index: The index of the shard.
axlearn/common/array_serialization.py:137
↓ 3 callersClass_ShouldUpdateState
axlearn/common/update_transformation.py:118
↓ 3 callersClass_SigmoidConfigArgs
axlearn/experiments/text/gpt/pajama_sigmoid_trainer.py:53
↓ 3 callersClass_TensorEma
axlearn/common/optimizers.py:926
↓ 3 callersClass_UpdateResult
Opaque container that is not traversed by jax.tree.map.
axlearn/common/factorized_rms.py:64
↓ 2 callersClassAlignmentLoopState
Alignment loop state, internal use only.
axlearn/audio/aligner/ctc_aligner.py:341
↓ 2 callersClassBackwardOutputs
axlearn/common/update_transformation.py:351
↓ 2 callersClassBf16PagedStorage
Paged KV storage emitted by `PagedKVCache` (bf16 pages). The fields `k_proj` / `v_proj` mirror `KVState`'s naming so call sites that accessed
axlearn/common/kv_cache/paged_kv_storage.py:185
↓ 2 callersClassCConfig7
axlearn/common/config_test.py:152
next →1–100 of 2,118, ranked by callers