Add JAX inference backend with multiple model architectures#2250
Draft
efsiatras wants to merge 9 commits intooumi-ai:mainfrom
Draft
Add JAX inference backend with multiple model architectures#2250efsiatras wants to merge 9 commits intooumi-ai:mainfrom
efsiatras wants to merge 9 commits intooumi-ai:mainfrom
Conversation
- Integrated JAX-based model support with model management, conversion utilities, and CLI tools - Added support for Llama3/4, Qwen3, DeepSeek R1, and Kimi K2 architectures - Implemented automatic HuggingFace-to-JAX conversion pipeline - Added proper attribution headers for JAX Authors (jax-llm-examples) and Oumi - Created unified CLI interface for model downloads and conversions - Added registry and manager for JAX model platform
# Conflicts: # scripts/examples/evaluation/custom_evaluation.py # src/oumi/core/configs/inference_engine_type.py # src/oumi/core/types/proto/generated/conversation_pb2.pyi
|
Important Upgrade your plan to unlock code review, CI analysis, custom rules, and more. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a JAX inference backend to Oumi, enabling high-performance LLM inference using JAX implementations from jax-llm-examples repository.
Models
What's included
Core integration:
JAXInferenceEngineextendingBaseInferenceEngine: full prefill-then-decode inference loop with architecture-aware mesh creation, tensor parallelism, and INT8 quantization supportJAXModelManager: unified download, convert, and load pipeline using HuggingFace Hub + orbax checkpointspython -m oumi.models.experimental.jax_models [list|download|convert|run])Upstream code (from jax-llm-examples):
Tests:
Usage