MCPcopy Index your code
hub / github.com/apple/axlearn

github.com/apple/axlearn @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
10,097 symbols 47,387 edges 585 files 4,521 documented · 45%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

The AXLearn Library for Deep Learning

build-and-test

Stage Status
CPU Unit Tests Rio
GPU Unit Tests Rio
TPU Unit Tests Rio
PyPI Release Rio

This library is under active development and the API is subject to change.

Table of Contents

Section Description
Introduction What is AXLearn?
Getting Started Getting up and running with AXLearn.
Concepts Core concepts and design principles.
CLI User Guide How to use the CLI.
Infrastructure Core infrastructure components.

Introduction

AXLearn is a library built on top of JAX and XLA to support the development of large-scale deep learning models.

AXLearn takes an object-oriented approach to the software engineering challenges that arise from building, iterating, and maintaining models. The configuration system of the library lets users compose models from reusable building blocks and integrate with other libraries such as Flax and Hugging Face transformers.

AXLearn is built to scale. It supports the training of models with up to hundreds of billions of parameters across thousands of accelerators at high utilization. It is also designed to run on public clouds and provides tools to deploy and manage jobs and data. Built on top of GSPMD, AXLearn adopts a global computation paradigm to allow users to describe computation on a virtual global computer rather than on a per-accelerator basis.

AXLearn supports a wide range of applications, including natural language processing, computer vision, and speech recognition and contains baseline configurations for training state-of-the-art models.

Please see Concepts for more details on the core components and design of AXLearn, or Getting Started if you want to get your hands dirty.

PyPI Release

See RELEASE.md for PyPI release process, version management, and installation instructions.

Core symbols most depended-on inside this repo

set
called by 2642
axlearn/common/config.py
default_config
called by 1367
axlearn/common/t5.py
instantiate
called by 1110
axlearn/common/config.py
astype
called by 581
axlearn/common/attention_bias.py
get
called by 510
axlearn/vision/utils_detection.py
_add_child
called by 489
axlearn/common/module.py
items
called by 428
axlearn/common/config.py
config_for_function
called by 426
axlearn/common/config.py

Shape

Method 5,634
Function 2,165
Class 2,118
Route 180

Languages

Python100%

Modules by API surface

axlearn/common/attention.py257 symbols
axlearn/common/attention_test.py190 symbols
axlearn/common/layers.py128 symbols
axlearn/common/utils_test.py125 symbols
axlearn/common/config.py118 symbols
axlearn/common/mixture_of_experts.py112 symbols
axlearn/common/utils.py108 symbols
axlearn/common/config_test.py102 symbols
axlearn/common/state_builder.py96 symbols
axlearn/common/input_tf_data_test.py91 symbols
axlearn/common/state_builder_test.py89 symbols
axlearn/common/optimizers.py83 symbols

For agents

$ claude mcp add axlearn \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact