Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apple/axlearn
/ types & classes
Types & classes
2,118 in github.com/apple/axlearn
⨍
Functions
7,799
◇
Types & classes
2,118
↳
Endpoints
180
↓ 149 callers
Class
_SystemCharacteristics
axlearn/cloud/gcp/system_characteristics.py:19
↓ 131 callers
Class
WeightedSummary
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 callers
Class
ParameterSpec
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 callers
Class
VDict
A dict with Tensor leaf nodes whose values should be vectorized.
axlearn/common/utils.py:433
↓ 66 callers
Class
JobState
Bastion job state. Attributes: status: Job status. metadata: Additional metadata.
axlearn/cloud/common/bastion.py:495
↓ 62 callers
Class
JobMetadata
Metadata for a bastion job.
axlearn/cloud/common/job_types.py:27
↓ 60 callers
Class
OptParam
A parameter to be optimized by an optimizer.
axlearn/common/optimizer_base.py:30
↓ 43 callers
Class
FanAxes
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 callers
Class
RematSpec
Configuration for rematerialization (remat) / checkpointing of layer computations. Rematerialization (also called checkpointing) is a memory-savi
axlearn/common/base_layer.py:235
↓ 37 callers
Class
Tolerance
axlearn/common/test_utils.py:158
↓ 27 callers
Class
KVState
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 callers
Class
FactorizationSpec
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 callers
Class
Job
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 callers
Class
InvocationContext
The invocation context for `Module.__call__()`. Attributes: name: The context name. Must be unique among sibling contexts. parent
axlearn/common/module.py:367
↓ 20 callers
Class
PartitionedGradientTransformation
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 callers
Class
CompositeAttentionBias
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 callers
Class
ValidationError
Validation failure (e.g. JobSpec deserialization).
axlearn/cloud/common/bastion.py:288
↓ 15 callers
Class
ImageSummary
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 callers
Class
ForwardOutputs
axlearn/common/update_transformation.py:343
↓ 13 callers
Class
QuotaInfo
Quota information for job scheduling.
axlearn/cloud/common/quota.py:20
↓ 11 callers
Class
CausalAttentionBias
A causal attention mask.
axlearn/common/attention_bias.py:663
↓ 11 callers
Class
Combo
axlearn/common/utils_test.py:116
↓ 11 callers
Class
GoodputRecorder
Records overall training goodput.
axlearn/cloud/gcp/measurement.py:38
↓ 11 callers
Class
OutputCollection
Implicit outputs from module invocations. Usually users do not interact with `OutputCollection` directly, but via `InvocationContext.add_{sum
axlearn/common/module.py:251
↓ 11 callers
Class
ParamEmaState
Captures an exponential moving average for all params.
axlearn/common/optimizers.py:1585
↓ 11 callers
Class
Updates
An update to model params and state that can be transformed.
axlearn/common/update_transformation.py:207
↓ 10 callers
Class
FeatureMap
axlearn/common/rattention/kernels/utils.py:19
↓ 10 callers
Class
HybridMeshShape
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 callers
Class
SlidingWindowAttentionBias
A sliding window attention mask.
axlearn/common/attention_bias.py:685
↓ 9 callers
Class
GitSummary
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 callers
Class
Table
A table which can be pretty-printed.
axlearn/cloud/common/utils.py:318
↓ 9 callers
Class
TrainerState
axlearn/common/trainer.py:73
↓ 8 callers
Class
BestFitSegmentTree
A segment tree adapter for best-fit decreasing bin packing.
axlearn/common/segment_tree.py:151
↓ 8 callers
Class
DataMixtureComponent
Defines a dataset mixture component to be used for training a LMs.
axlearn/experiments/text/common.py:17
↓ 8 callers
Class
ProjectResourceUtilization
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 callers
Class
_DummyVocabulary
A dummy vocab.
axlearn/common/input_grain_text_test.py:27
↓ 7 callers
Class
_Point
axlearn/common/flax_struct_test.py:27
↓ 6 callers
Class
CommandGroup
A CommandGroup groups multiple commands under a common namespace.
axlearn/cli/utils.py:91
↓ 6 callers
Class
DecodeOutputs
Output of decoding.
axlearn/audio/decoder_asr.py:144
↓ 6 callers
Class
DummyConfig
axlearn/cloud/common/utils_test.py:246
↓ 6 callers
Class
MaskFnAttentionBias
An attention bias represented as an implicit boolean mask.
axlearn/common/attention_bias.py:502
↓ 6 callers
Class
MockUtilizationSample
axlearn/common/monitoring/gpu_client_test.py:23
↓ 6 callers
Class
MockUtilizationSampleValue
axlearn/common/monitoring/gpu_client_test.py:18
↓ 5 callers
Class
AddDecayedWeightsState
axlearn/common/optimizers.py:463
↓ 5 callers
Class
BPEVocabulary
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 callers
Class
BoundedDataShardedAsyncCheckpointManager
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 callers
Class
ComputableMask
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 callers
Class
Config
axlearn/common/config_test.py:41
↓ 5 callers
Class
GitSummaryMember
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 callers
Class
JobLifecycleEvent
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 callers
Class
MyConfig
axlearn/common/config_test.py:958
↓ 5 callers
Class
MyCustomType
axlearn/common/config_test.py:954
↓ 5 callers
Class
SkipClipState
State returned by functions in skip_and_clip_by_global_norm().
axlearn/common/optimizers.py:1239
↓ 5 callers
Class
TestConfig
axlearn/common/config_test.py:252
↓ 5 callers
Class
ZeroAttentionBias
"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 callers
Class
_CommitFuture
Represents the result of a background commit.
axlearn/common/array_serialization.py:980
↓ 5 callers
Class
_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 callers
Class
AcceleratorConfig
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 callers
Class
DataclassCombo
axlearn/common/utils_test.py:243
↓ 4 callers
Class
ExpectedAudio
Information about expected logged audio summaries.
axlearn/common/summary_test.py:166
↓ 4 callers
Class
InvalidDescendantError
axlearn/common/module.py:247
↓ 4 callers
Class
ManagerClient
FT trainer manager gRPC client with simplified, consistent interface.
axlearn/ft/manager_client.py:23
↓ 4 callers
Class
MultiPageAsyncCopyDescriptor
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 callers
Class
ParamInitSpec
axlearn/common/test_utils.py:371
↓ 4 callers
Class
RequiredFieldMissingError
axlearn/common/config.py:285
↓ 4 callers
Class
SegmentIdAttentionBias
An attention bias defined by segment ids.
axlearn/common/attention_bias.py:434
↓ 4 callers
Class
VmInfo
Information associated with a VM instance.
axlearn/cloud/gcp/vm.py:181
↓ 4 callers
Class
_AdastarPerParamState
axlearn/common/optimizers.py:1859
↓ 4 callers
Class
_ConfigA
A dummy config class.
axlearn/experiments/trainer_config_utils_test.py:51
↓ 4 callers
Class
_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 callers
Class
AudioSummary
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 callers
Class
BiasAndResidual
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 callers
Class
DownloadJobsResult
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 callers
Class
ElasticDatasetIterator
Iterator for ElasticDataset
axlearn/common/elastic_input.py:252
↓ 3 callers
Class
FakeTpuGrpcService
Fake libtpu server for testing.
axlearn/cloud/gcp/monitoring/tpu_client_test.py:45
↓ 3 callers
Class
GCSFuseMount
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 callers
Class
HostMount
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 callers
Class
JobSpec
Represents a job that is executed by bastion.
axlearn/cloud/common/job_types.py:46
↓ 3 callers
Class
JobVerdict
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 callers
Class
ModalityVocabInfo
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 callers
Class
PredictionOutputs
axlearn/common/evaler.py:762
↓ 3 callers
Class
ScaleByLionState
State for the Lion algorithm.
axlearn/common/optimizers.py:1655
↓ 3 callers
Class
SplashAttentionKernel
A class wrapper around the splash attention kernel.
axlearn/common/flash_attention/tpu_splash_attention.py:1959
↓ 3 callers
Class
StopOnSubsequence
Early stopping on suffix-matches.
axlearn/common/decoding.py:847
↓ 3 callers
Class
TensorAttentionBias
An attention bias represented as an explicit Tensor.
axlearn/common/attention_bias.py:350
↓ 3 callers
Class
TensorSpec
Specification of a Tensor. Used to describe model parameters and optimizer states.
axlearn/common/utils.py:127
↓ 3 callers
Class
TestAttentionBias
axlearn/common/attention_bias_test.py:188
↓ 3 callers
Class
TestConfigB
axlearn/common/config_test.py:670
↓ 3 callers
Class
Topology
axlearn/cloud/common/job_types.py:21
↓ 3 callers
Class
VMCreationError
An error with VM creation.
axlearn/cloud/gcp/vm.py:22
↓ 3 callers
Class
_AdastarState
axlearn/common/optimizers.py:1864
↓ 3 callers
Class
_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 callers
Class
_ShouldUpdateState
axlearn/common/update_transformation.py:118
↓ 3 callers
Class
_SigmoidConfigArgs
axlearn/experiments/text/gpt/pajama_sigmoid_trainer.py:53
↓ 3 callers
Class
_TensorEma
axlearn/common/optimizers.py:926
↓ 3 callers
Class
_UpdateResult
Opaque container that is not traversed by jax.tree.map.
axlearn/common/factorized_rms.py:64
↓ 2 callers
Class
AlignmentLoopState
Alignment loop state, internal use only.
axlearn/audio/aligner/ctc_aligner.py:341
↓ 2 callers
Class
BackwardOutputs
axlearn/common/update_transformation.py:351
↓ 2 callers
Class
Bf16PagedStorage
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 callers
Class
CConfig7
axlearn/common/config_test.py:152
next →
1–100 of 2,118, ranked by callers