erfanzar/EasyDeL

Accelerate, Optimize performance with streamlined training and serving options with JAX.

What it solves

EasyDeL is a single toolkit for the full lifecycle of large AI models — language models, vision-language models, and speech models — on specialized hardware: Google TPU pods and NVIDIA GPU clusters. Normally, training, fine-tuning, and serving such models on this hardware requires stitching together many separate tools and dealing with complex low-level details. EasyDeL bundles model definitions (88 model families), training and fine-tuning tools, an inference server, and hardware-optimized kernels into one framework, so you can load a model, train or fine-tune it, and serve it to users from the same codebase.

How it works

EasyDeL is built on JAX and SpectraX (a model-building library), with custom kernels (eJKernel) tuned for TPU and GPU hardware. Models are defined as plain Python modules with a clear separation between the model's structure and its learned state.

For serving, EasyDeL's inference engine (eSurge) uses a native Rust core that handles scheduling, KV-cache memory management, and token decoding — keeping Python out of the hot path so decoding is fast. It supports continuous batching, speculative decoding, and prefix caching, and can run across multiple hosts.

For training, EasyDeL provides many trainers: supervised fine-tuning (SFT), preference optimization (DPO and variants), online reinforcement learning (GRPO and others), distillation, and multi-turn agentic RL with sandboxed environments.

A key feature is 6D sharding — models can be split across up to six dimensions (pipeline, data, fully-sharded data, expert, tensor, sequence) to fit on large clusters. A unified config object (eLargeModel) wraps loading, sharding, quantization, serving, and training into one serializable file.

Who it's for

Researchers and engineers who work with large models on TPU pods or GPU clusters and need to train, fine-tune, or serve them at scale. It's especially relevant for people doing reinforcement learning with sandboxed code environments, or teams that want an OpenAI-compatible serving endpoint for their models.

Highlights

  • 88 model families supported, including Llama, Qwen, DeepSeek, Gemma, Mistral, and more
  • Rust-based inference engine with continuous batching, speculative decoding, and prefix caching
  • 6D sharding and multiple pipeline-parallel schedules for scaling across many devices
  • A wide range of trainers: SFT, preference optimization, online RL (GRPO), distillation, and multi-turn agentic RL
  • Sandboxed RL environments (code execution, terminal, container) with judges and reward shaping
  • Quantization support (FP8, AWQ, GPTQ, and more) and LoRA adapters
  • OpenAI-compatible API server for serving models
  • Unified eLargeModel config that wraps the whole workflow

Related

  • Project
  • Project
  • Project
  • Project
  • Project