Skip to main content

Agent inference package using ONNX models without Ray or PyTorch dependencies

Project description

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

Project details


Release history Release notifications | RSS feed

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_dev-0.32.0.dev37-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

amesa_inference_dev-0.32.0.dev37-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.32.0.dev37-cp312-cp312-macosx_11_0_arm64.whl (408.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.32.0.dev37-cp312-cp312-macosx_10_9_x86_64.whl (409.9 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.32.0.dev37-cp312-cp312-macosx_10_9_universal2.whl (815.8 kB view details)

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

amesa_inference_dev-0.32.0.dev37-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

amesa_inference_dev-0.32.0.dev37-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.32.0.dev37-cp311-cp311-macosx_11_0_arm64.whl (407.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.32.0.dev37-cp311-cp311-macosx_10_9_x86_64.whl (413.1 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.32.0.dev37-cp311-cp311-macosx_10_9_universal2.whl (818.5 kB view details)

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

amesa_inference_dev-0.32.0.dev37-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_dev-0.32.0.dev37-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.32.0.dev37-cp310-cp310-macosx_11_0_arm64.whl (410.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.32.0.dev37-cp310-cp310-macosx_10_9_x86_64.whl (416.3 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.32.0.dev37-cp310-cp310-macosx_10_9_universal2.whl (824.2 kB view details)

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

File details

Details for the file amesa_inference_dev-0.32.0.dev37-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev37-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7b7147fdb5a1b313a29b276bcb3753b7bf59ef700208f64480376bd98f56cffb
MD5 1395b1aa593366fc490b36917845ec29
BLAKE2b-256 e8ba254ed12a17f76c79c468a39c05ff36821b9398471af84000ce8ac5704c5b

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev37-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev37-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev37-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b5e8e4ec7c44686ce8963c5da6c4a786ee3d576be9e8648e7e1e59d347948ece
MD5 f4ed21a2405207edeebc5e3209a9e8a7
BLAKE2b-256 f6513ff4d61470bc40108d42249ab546fef152071570f87a2d2f80aff5f82baa

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev37-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev37-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev37-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a1cf508f5d2f62832f0df7cec5353b6f72dbe20e21ac3dd7752840e9d4ba1b9d
MD5 cb2100a561f03cf707d1fd5299a32dac
BLAKE2b-256 6173572b2b6718023a0927752689f0f816fb814030e974a697b1262058a5fc75

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev37-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev37-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev37-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e6fbdcada235e4aa3b65808e4852a9b0f47fd8c956cca0c8c88b7529b57a7940
MD5 e176a6cbd10ebab9a9327580746860e7
BLAKE2b-256 ef31698c08f760df2013518972ed849680e9743054027e3b919499f37bcb06a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev37-cp312-cp312-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev37-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev37-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c764c7708f7298c9a05bdc54a49df7c27c5f7ecaa7fa6dafd7164f6a25a4e4b9
MD5 df9887ed31cd92184d42e11dfee8cd7b
BLAKE2b-256 62b72f479b18df6a5731bd5256804bd725cca8b245c063a82b05c3d0d0b0f42f

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev37-cp312-cp312-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev37-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev37-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c523efeeb4c16dd5dbdac4195f126e1d566d84a3c048a81c62fb28b82ccbe493
MD5 3bfa57199d0dddf1d31182f0b3560813
BLAKE2b-256 e073fc2894f7d3822131579db6d623f8b928643b4bcb521e4a5a06dd7aa027e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev37-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev37-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev37-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e74bb929681d015f4f7bcb36f2504f2692e01738aafb3b7bb0ad690cf8b7c12f
MD5 bbff55f4c57bdee8a36d5d32f5b78fb7
BLAKE2b-256 449e858ba93cda8d33148473c961caa4d0774573b2f7bee95e2b38889e883eac

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev37-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev37-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev37-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3525608ae39ed898cef21dc56e4ff69f462d6aceb7151eef6f3f12210bfdeb78
MD5 f6863a3c15588e3e4dacaec0cd10a4e1
BLAKE2b-256 0a3cc47199147e60b1b57afaef6240178b2be520e6f07d672977001c7d413eef

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev37-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev37-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev37-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 642e027b0e0ab5ef806bba9350bc8ca0003d4b564df0ed49c868af1388d97c10
MD5 3329408a64b54b682ca78628f8b67b45
BLAKE2b-256 c91a385ca106352b10dd7b95d989cdd31f54a8a70fd12d2a7afc67addd2ca33c

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev37-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev37-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev37-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ec55ad7b15ea107d7ddba499200bbbfb5a1ee9a21ebfae13fc66f90d6057059e
MD5 c91a6a8ac28a7fc2b6043d2d0fb0dd99
BLAKE2b-256 7d2ac53648e7c93425ef3f881c32f412ccdb3ade25c1f274056603545a8782bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev37-cp311-cp311-macosx_10_9_universal2.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev37-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev37-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 85fc44f87a333bbfa7a59a5730d61c68aeac572c060806ed04fda1707457f478
MD5 06ed3e479834c7f666320bc271a0ca0f
BLAKE2b-256 c1eca5a08b01e806bf78cc6cd2d950f4c1c651d6e93e818e939c13911a364d95

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev37-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev37-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev37-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2a1d8c9ef0327b10c606f6928c5a40bb9c8608f26b71901929433c9d665b63d9
MD5 01887bd941af8d40dc7f8c4c6edf700c
BLAKE2b-256 a11d01d4ce138fc100e7f8c706bfb84873f078fbbcb72768a7b1bd462cc3b136

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev37-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev37-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev37-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 506b94694930238fd36ac1d9cbbdb1505a839e6b785a0c58bea9af53382a6dcb
MD5 9230ef331b481cb795ea65c0db78a0a6
BLAKE2b-256 77d98670e6b6879edaf653d22a113f2d8639dbf31bf8e2ec0f8f22cda5203817

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev37-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev37-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev37-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 011ef1dae9c0b12015107556d1bd6fa5b771d192127db48fb031285332664681
MD5 e7e51a8e05b868cd42ea022554221edd
BLAKE2b-256 ed2af518c1d7075eb4e78788d7e3fc31b562257f7da764bf93adee5ae382c211

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev37-cp310-cp310-macosx_10_9_x86_64.whl:

Publisher: build-and-publish-package-dev.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_dev-0.32.0.dev37-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev37-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 dfbc08daaa05e14106f78a957a7c3e26a75741c5c644d1ef3543edb94cdf8807
MD5 e0f022cb4518b88aada4b3dd06328fa5
BLAKE2b-256 0a03f0d3329656ad983d45399b6ab9ab4e0d52f83bf7320f82d4820914fd4bbf

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.32.0.dev37-cp310-cp310-macosx_10_9_universal2.whl:

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

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page