awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
kingoflolz avatar

kingoflolz/mesh-transformer-jax

0
View on GitHub↗
6,376 stars·884 forks·Python·Apache-2.0·5 views

Mesh Transformer Jax

This project is a JAX-based transformer framework and large language model trainer designed for building and training distributed models on TPU hardware accelerators. It provides a system for pretraining and fine-tuning autoregressive models by splitting weights and computations across a mesh of devices to reduce memory overhead and increase processing speed.

The framework includes a TPU compute orchestrator for provisioning resources and automating dependency installation across remote distributed nodes. It also features a model weight converter capable of transforming and resharding checkpoints between different hardware configurations and numerical precisions.

The project covers broader capabilities including sharded checkpoint management for cloud storage, stream-based data loading with state restoration, and nucleus-based text generation for model inference. It further supports XLA-compiled hardware acceleration for TPU and GPU clusters and provides tools for performance benchmarking against standardized language tasks.

Features

  • Distributed Model Parallelism - Distributes model weights and computations across a mesh of accelerators using sharding operators to scale parameter counts.
  • Large-Scale Model Training - Implements a framework for training massive transformer models that exceed single-device capacity using distributed TPU clusters.
  • Distributed Training Sharding - Partitions model parameters and optimizer states across compute nodes to reduce memory overhead per accelerator.
  • XLA Hardware Accelerations - Executes JAX operations on TPU and GPU clusters by compiling them into optimized machine code using XLA.
  • JAX Transformer Frameworks - Provides a comprehensive library for building and training distributed transformer models using JAX.
  • Language Model Fine-Tuning - Adjusts pre-trained model weights on specialized datasets to adapt behavior for targeted tasks.
  • Language Model Trainers - Ships a trainer for pretraining and fine-tuning autoregressive models with support for sharded checkpoints.
  • Large Language Model Fine-Tuning - Supports updating the weights of pretrained transformer models on specialized datasets to adapt them for specific tasks.
  • Mesh-Based TPU Scaling - Distributes model weights and computations across a TPU coordinate mesh to scale training.
  • Model Parallelism - Splits model parameters across multiple accelerators to enable the training of extremely large models.
  • Distributed Transformer Implementations - Distributes model weights and computations across a hardware mesh using sharding operators.
  • Weight Conversion Utilities - Implements utilities to transform model weights into native array structures for seamless loading across different libraries.
  • Transformer Language Models - Implements a large-scale transformer architecture designed for massive language model development.
  • Checkpoint Saving and Restoration - Restores the state of a distributed network from saved files and maps weights across a device mesh.
  • Sharded Checkpoint Storage - Saves and restores model states as distributed shards to cloud storage using a metadata index for versioning.
  • Model State Persistence - Persists and versions model states in cloud storage to facilitate training resumption and checkpointing.
  • TPU Resource Provisioning - Automates the provisioning of TPU nodes, including dependency installation and lifecycle management via cloud APIs.
  • Distributed Computing - Automates dependency installation and cluster initialization on remote nodes for distributed execution.
  • Data Loading State Restoration - Tracks processed files and batch indices to resume training data loading from a specific point after interruption.
  • Model Checkpoint Converters - Converts and reshard-transforms model checkpoints between different hardware configurations and numerical precisions.
  • Mixed-Precision Quantization - Transforms the numerical precision of model parameters to optimize memory footprint and execution speed on specific hardware.
  • Weight Transformations - Transforms and reshards neural network weights to ensure compatibility between different hardware configurations and precisions.
  • Reshardable Checkpoint Formats - Provides checkpoint formats and mechanisms to redistribute model weights across different parallel layout configurations during loading.
  • Binary Record Data Loading - Reads training batches from binary record files using parsing functions to feed distributed accelerators without memory overflow.
  • Training Sample Streaming - Streams training samples from large record files using parsing and mapping functions to prepare training inputs.
  • Decoder Models - Autoregressive language model implementation using JAX.
  • General Purpose Models - JAX-based library for training and running large transformer models.

Star history

Star history chart for kingoflolz/mesh-transformer-jaxStar history chart for kingoflolz/mesh-transformer-jax

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does kingoflolz/mesh-transformer-jax do?

This project is a JAX-based transformer framework and large language model trainer designed for building and training distributed models on TPU hardware accelerators. It provides a system for pretraining and fine-tuning autoregressive models by splitting weights and computations across a mesh of devices to reduce memory overhead and increase processing speed.

What are the main features of kingoflolz/mesh-transformer-jax?

The main features of kingoflolz/mesh-transformer-jax are: Distributed Model Parallelism, Large-Scale Model Training, Distributed Training Sharding, XLA Hardware Accelerations, JAX Transformer Frameworks, Language Model Fine-Tuning, Language Model Trainers, Large Language Model Fine-Tuning.

What are some open-source alternatives to kingoflolz/mesh-transformer-jax?

Open-source alternatives to kingoflolz/mesh-transformer-jax include: internlm/xtuner — xtuner is a comprehensive training engine for large language models, offering a toolkit for pre-training, supervised… yuanzhoulvpi2017/zero_nlp — zero_nlp is a distributed framework for training and fine-tuning large language models and multimodal architectures.… mosaicml/composer — Composer is a PyTorch distributed training framework designed for scaling large-scale models across multi-node GPU… facebookresearch/fairseq — Fairseq is a PyTorch toolkit for sequence-to-sequence modeling, specializing in neural machine translation, automatic… thinking-machines-lab/tinker-cookbook — Tinker Cookbook is an open-source framework for fine-tuning large language models, supporting supervised learning,… paddlepaddle/paddlenlp — PaddleNLP is a development library and toolkit for training, fine-tuning, and deploying large and small language…

Open-source alternatives to Mesh Transformer Jax

Similar open-source projects, ranked by how many features they share with Mesh Transformer Jax.
  • internlm/xtunerInternLM avatar

    InternLM/xtuner

    5,150View on GitHub↗

    xtuner is a comprehensive training engine for large language models, offering a toolkit for pre-training, supervised fine-tuning, and the optimization of vision-language multimodal models. It serves as a distributed training accelerator and a specialized framework for scaling Mixture-of-Experts models and aligning model behavior through reinforcement learning from human feedback. The project distinguishes itself through advanced memory and compute optimizations, such as sequence parallelism for ultra-long context windows and interleaved pipeline parallelism to reduce GPU idle time. It provide

    Pythonagentdeepseek-v3gpt-oss
    View on GitHub↗5,150
  • yuanzhoulvpi2017/zero_nlpyuanzhoulvpi2017 avatar

    yuanzhoulvpi2017/zero_nlp

    3,825View on GitHub↗

    zero_nlp is a distributed framework for training and fine-tuning large language models and multimodal architectures. It provides a specialized toolkit for distributed model parallelism, allowing neural network layers and weights to be partitioned across multiple GPU devices to train models that exceed the memory capacity of a single processor. The project distinguishes itself through a combination of high-throughput data pipelines and parameter-efficient tuning. It utilizes multi-threading and memory mapping to preprocess and stream datasets exceeding 100GB and implements memory-saving adapta

    Jupyter Notebookbertchatglm-6bclip
    View on GitHub↗3,825
  • mosaicml/composermosaicml avatar

    mosaicml/composer

    5,485View on GitHub↗

    Composer is a PyTorch distributed training framework designed for scaling large-scale models across multi-node GPU clusters. It functions as a large language model trainer, a distributed model optimizer, and a training lifecycle manager. The project differentiates itself as a deep learning regularization library, providing specialized optimization techniques such as Sharpness Aware Minimization, MixUp, and CutMix to improve model generalization. It further distinguishes its training flow through the use of sequence length warmup, progressive layer freezing, and sharded-state checkpointing for

    Python
    View on GitHub↗5,485
  • facebookresearch/fairseqfacebookresearch avatar

    facebookresearch/fairseq

    32,228View on GitHub↗

    Fairseq is a PyTorch toolkit for sequence-to-sequence modeling, specializing in neural machine translation, automatic speech recognition, and large-scale language model training. It provides a framework for processing and aligning diverse data sources, including text, audio, and video, to support tasks such as speech-to-text conversion and multimodal sequence learning. The project is distinguished by its distributed training capabilities, which utilize parameter sharding, mixed-precision training, and CPU offloading to handle models that exceed single-device memory. It also includes specializ

    Python
    View on GitHub↗32,228
  • See all 30 alternatives to Mesh Transformer Jax→