Skip to main content

Amesa Inference

A lightweight inference package for running Amesa agents using ONNX models without Ray or PyTorch dependencies.

Overview

composabl_inference provides a standalone inference engine for running trained Amesa agents. It uses ONNX Runtime for model inference, making it suitable for deployment scenarios where you want to avoid heavy dependencies like Ray and PyTorch.

Features

  • ONNX-based inference: Uses ONNX Runtime for efficient model inference
  • No Ray or PyTorch dependencies: Lightweight package suitable for production deployment
  • Network management: Supports both local and remote objects (agents, perceptors, controllers)
  • Compatible API: Similar interface to Trainer.package() for easy migration

Installation

pip install amesa-inference

Usage

Basic Inference

from composabl_inference import InferenceEngine
from composabl_core import Agent

# Create inference engine (only license needed for license validation)
engine = InferenceEngine(license="your-license-key")

# Load agent
agent = Agent.load("path/to/agent")
await engine.load_agent(agent)

# Package agent for inference (similar to Trainer.package())
await engine.package()

# Run inference
observation = {...}  # Your observation from the simulator
action = engine.execute(observation)

With Remote Objects

The inference engine supports remote agents, perceptors, and controllers, just like the Trainer:

from composabl_inference import InferenceEngine

# Optional: provide custom config for NetworkMgr (e.g., for remote targets)
config = {
    "target": {
        "local": {
            "address": "localhost:1337",
        },
    },
}

engine = InferenceEngine(license="your-license-key", config=config)
await engine.load_agent("path/to/agent")
await engine.package()

# The agent processor will automatically handle remote objects
action = engine.execute(observation)

Cleanup

# Clean up resources
await engine.close()

Architecture

Components

  1. InferenceEngine: Main entry point for inference operations
  2. NetworkMgr: Manages network connections (non-Ray version)
  3. ONNXInferenceEngine: Handles ONNX model loading and inference
  4. ONNXAgentProcessor: Processes agents using ONNX models instead of PyTorch

Differences from Trainer

  • Uses ONNX Runtime instead of PyTorch for model inference
  • NetworkMgr is not a Ray actor (runs in the same process)
  • No Ray initialization required
  • Lighter weight, suitable for production deployment

Requirements

  • Python >= 3.10
  • composabl-core
  • composabl-api
  • onnxruntime
  • numpy

License

Proprietary and confidential - Copyright (C) Amesa, Inc

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

amesa_inference-0.35.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

amesa_inference-0.35.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

amesa_inference-0.35.2-cp311-cp311-macosx_11_0_arm64.whl (418.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference-0.35.2-cp311-cp311-macosx_10_9_x86_64.whl (418.9 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference-0.35.2-cp311-cp311-macosx_10_9_universal2.whl (835.7 kB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

amesa_inference-0.35.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

amesa_inference-0.35.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

amesa_inference-0.35.2-cp310-cp310-macosx_11_0_arm64.whl (421.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference-0.35.2-cp310-cp310-macosx_10_9_x86_64.whl (421.6 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference-0.35.2-cp310-cp310-macosx_10_9_universal2.whl (840.7 kB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file amesa_inference-0.35.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.35.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 61cf5eac9b124495ba7314dd7dc091ddf21ae32878e19e35779cd6a6b34cc4c5
MD5 0e05ad41201747e5f1de490da0f28572
BLAKE2b-256 e0ff59b753eff6f5409ebe58cea581a6408b59f73dcd23450c1b9fdb1e8d8b57

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.35.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.35.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.35.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c10141053a137bdeb39b37489ac01fff5fe3fdc68f3525113e8fc89fe0abbdab
MD5 95e9cda52202c8bbd004459bf3db5c0e
BLAKE2b-256 d60f39b13e880ce7550618cf9d49fcb34bc0610ba70b0f260f03a12a5ebd0b8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.35.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.35.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.35.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15f3393d8b32e8d56bc662e5a69e7e0ca4bb0445f526dcf21a023588b5b32e24
MD5 b5d67ee45b06973ab90b61f564debd67
BLAKE2b-256 d21e7f0e34d4988d224b62034d300b0fd37db9757bc4ea4c567e275e0eafb4c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.35.2-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.35.2-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.35.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 79532ee4592ee0399881df8e599a91f7e1bb246be7dcd4557c24b11115d7beee
MD5 1124ccec35692252628bcef423b9eab3
BLAKE2b-256 0cbca9a8b1152836286a73f351f15aacbc46bdde0043e7dbb272b718ac3bf0d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.35.2-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.35.2-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference-0.35.2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 500d536a747fca01e040af846f2343c563e41c798859e8299d7a65b9a804789d
MD5 eb9e694ba3d6bf3aecc2968b1904ca73
BLAKE2b-256 4295bd9b7f2a914e6b1cfe0c1567b1c68a9e0379662ed8cff6cf90e7f3650342

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.35.2-cp311-cp311-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.35.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.35.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 98604bf132003ca7fa50dcb6885f3d7103585b2262433ac311fd80dce206b99a
MD5 5e0293a13f4afdcd8cc7c4dc23be5e73
BLAKE2b-256 f80807d3cd29654dba7ec7b98964d97797285e16d93e120a9b225fa650e68da7

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.35.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.35.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.35.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 46b105a86186c068d73b5144335e13deb8981f3c107a081347a8c7cf13411636
MD5 7614285bde415b1999ef41a3797a68e4
BLAKE2b-256 a3b0f15aa44972cdf599d75b94da93e1a42434253b6544f17ffabbf32bf4dbd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.35.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.35.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.35.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09aca3924a6d99f3cd4ffc6e341c6c8ca5439372dbf33d4d271ce0e2167f0079
MD5 5a790d5d3e2614bfc72b7d13c5f82acc
BLAKE2b-256 0d4c6fd3bb5acc1357c82e7e1eb955b145c012a1627f1f9237b966d9de0e1bb0

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.35.2-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.35.2-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference-0.35.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 375f7d606a6fa3294f3c809a35180086d7b1d25b9b5b506880a7bda246cef87d
MD5 e66a2bd5ab8204f5f1b79a03b4509d24
BLAKE2b-256 e8d395f393b2adc6f0aaf1948b3117715622f206e3411ac383311f51090eddd6

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.35.2-cp310-cp310-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amesa_inference-0.35.2-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference-0.35.2-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2b66901db6fdbd12300b82ea1351e766056a636de129b45157df2e019a5d8bba
MD5 f13dcd8472e4fe0e75db649e7429a014
BLAKE2b-256 ca4da4c57d418211fb17c5908f9b2e2e012f2a4f332ff900eac4e2a711fe231d

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference-0.35.2-cp310-cp310-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package.yaml on Composabl/sdk.composabl.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.37.1

10 files

0.37.0

10 files

0.36.1

10 files

0.36.0

10 files

This release

0.35.2 This release

10 files

0.35.1

10 files

0.35.0

10 files

0.34.1

10 files

0.34.0

10 files

0.33.2

10 files

0.33.1

10 files

0.33.0

10 files

0.31.0

10 files

0.30.0

10 files

0.29.1

10 files

0.29.0

10 files

0.28.0

10 files

0.27.0

10 files

0.26.0

10 files

0.25.0

10 files

0.24.0

10 files

0.22.0

10 files

0.21.0

10 files

0.20.0

10 files

0.19.7

10 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page