cosmos-xenna
A framework for building and running distributed, AI-powered data pipelines using Ray
What it is and what it does
Cosmos-xenna is a distributed pipeline framework built on Ray that simplifies the development of AI inference workflows. You define a series of stages—each implementing setup() for one-time initialization and process_data() for batch processing—and connect them in a PipelineSpec. The framework handles resource allocation (CPUs, GPUs), autoscaling to balance throughput across stages, backpressure management to prevent memory overflow, and real-time monitoring. It supports three execution modes: streaming (recommended, all stages concurrent with dynamic worker balancing), batch (sequential, simpler but materializes intermediate data), and serving (online real-time input/output via queues). Most code is Python; autoscaling and artifact distribution logic is written in Rust for performance. The framework is designed for production workloads like video captioning, image processing, and other multi-model inference chains.
Use it for:
- Build multi-stage video or image processing pipelines that download data, run VLM inference, and upload results at scale
- Orchestrate complex AI workflows combining multiple models (e.g., detection → captioning → embedding) with automatic GPU/CPU allocation
- Process large datasets through streaming pipelines with automatic worker balancing to maximize throughput without manual tuning
- Deploy online serving scenarios where inference requests arrive in real time and results are pushed to output queues
- Manage resource-constrained inference by defining per-stage batch sizes and resource requirements to prevent OOM
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Cosmos-xenna is a Python framework for building and running distributed AI inference pipelines on Ray clusters, handling resource allocation, autoscaling, and data flow across multi-stage workflows.
Yes, with conditions. Cosmos-xenna is actively maintained and well-suited for production distributed AI pipelines on Ray. However, the package description explicitly states it is no longer under active development and recommends migration to Cosmos 3 for new projects. Install if you have an existing Cosmos-Xenna pipeline or need its specific feature set; otherwise, evaluate Cosmos 3 first. License terms are unclear and must be verified before use. No known security vulnerabilities as of August 2026.
Install
cosmos-xenna on PyPI
pip
pip install cosmos-xennauv
uv add cosmos-xennapoetry
poetry add cosmos-xennaInstalling cosmos-xenna
Before you install
Medium install friction due to 9 runtime dependencies including Ray, a distributed computing framework, plus compiled wheels for x86_64 and aarch64. Active maintenance as of August 2026, though the package description notes that Cosmos-Xenna is no longer under active development and users are encouraged to migrate to Cosmos 3.
License in practice
License treatment is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license before use in proprietary or restricted-license projects.
Quickstart
pip install cosmos-xenna
import cosmos_xenna.pipelines.v1 as pipelines_v1
class MyStage(pipelines_v1.Stage):
@property
def stage_batch_size(self) -> int:
return 10
@property
def required_resources(self) -> pipelines_v1.Resources:
return pipelines_v1.Resources(gpus=0, cpus=1.0)
def process_data(self, samples):
return samples
pipeline_spec = pipelines_v1.PipelineSpec(
input_data=samples,
stages=[MyStage()]
)
pipelines_v1.run_pipeline(pipeline_spec)
Requires Python >= 3.12. Ray cluster must be running or accessible; cosmos-xenna orchestrates work across Ray actors.
Verify before relying
- Actual license terms and restrictions (SPDX/raw license not provided in metadata)
- Whether Cosmos 3 migration path affects long-term support or breaking changes in cosmos-xenna
- Performance characteristics and throughput benchmarks for typical workloads
- Compatibility with Ray versions beyond what runtime dependency resolution enforces
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.12) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 9 — attrs, cattrs, jinja2, loguru, pulp, ray, tabulate, obstore, portpicker |
| Maintenance | actively maintained — 1 days since the last release |
| First released | |
| Downloads | 132,661/month — #11,545 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: cosmos_xenna-0.5.7-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; cosmos_xenna-0.5.7-cp312-abi3-manylinux_2_28_aarch64.whl
Tags
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework…
permissive · top 100 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
cloudpickleCloudpickle extends Python's standard pickle…
permissive · top 1,000 on PyPI
smart-openProvides a unified, open()-compatible Python…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
onnxruntime-openvinoEnables ONNX Runtime to accelerate machine…
permissive · top 15,000 on PyPI
xgboost-rayDistributes XGBoost training and inference…
permissive · top 15,000 on PyPI
nvidia-nvshmem-cu13NVSHMEM provides a global address space for GPU…
unclear · top 1,000 on PyPI
agent-framework-azure-cosmosProvides Azure Cosmos DB integration for the…
permissive · top 15,000 on PyPI
azure-mgmt-cosmosdbProvides programmatic management of Azure…
permissive · top 5,000 on PyPI
nvidia-nccl-cu13Provides NVIDIA's Collective Communication…
unclear · top 1,000 on PyPI
nvidia-nvshmem-cu12NVSHMEM provides a global address space for GPU…
unclear · top 5,000 on PyPI
cosmpyCosmPy provides Python bindings to interact…
permissive · top 15,000 on PyPI
abstract-hugpy-devA self-hosted LLM console and OpenAI-compatible…
unclear · top 15,000 on PyPI