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.34.1.dev6-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.34.1.dev6-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.34.1.dev6-cp312-cp312-macosx_11_0_arm64.whl (408.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-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.34.1.dev6-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.34.1.dev6-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.34.1.dev6-cp311-cp311-macosx_11_0_arm64.whl (407.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-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.34.1.dev6-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.34.1.dev6-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.34.1.dev6-cp310-cp310-macosx_11_0_arm64.whl (410.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-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.34.1.dev6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b330984c3c23812c993fb85506921e5598a0af384e34e928e1f10a5fd93a571b
MD5 0c1256a33ef41d6c43b23b61a43ab492
BLAKE2b-256 31a495be321e17e7e2c12b4d3ebf0fc4be049dd8665135d0c258b49df15be44f

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e3e34d0f2c6fad76b724df98705794fbd030fc3c9f786ee5b46aa1a9b437ea24
MD5 d51a55fba9c702dfb9748fa368f7552b
BLAKE2b-256 7396e94e9deaf598ee828c52b18f5da23dbc15c8cb71ce300b9a590860f5d5c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9bd685446d137334364b60bda3e0b15528638ef7875373c4e41ddb8a1952103
MD5 e31eb5f9cd58b0c75cd13c8e643e7583
BLAKE2b-256 d48b6de9a79d63a72ef5c196ce4bf48a927f67ba42d7d913df62d1eba91fa028

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev6-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 eb00bd6d5c56acc8648db54dc50a6a96b77219efeadcaf777034371d94175fc1
MD5 0e41460a6d079901a6919c53d81daa21
BLAKE2b-256 a982372e476e9645999adf6dd029a04633b5bcc89ce529a539512f45bc42572a

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev6-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8f84ee0c87eaaa56d3c75ba5b7b457f23791897875fb328a0b35e05ef4ced265
MD5 9bbce8ff00a981e97b26f05d5bd4c4a7
BLAKE2b-256 769cd65390bd7604e194b35fb00017e2fe068e7cff9b06f754434a7f38cdda8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 84c19df03e5b256b90ab05a1fb0edc2ef622232b436d6b10bf7d6f3bea6f2faf
MD5 f43c51f596151fbb1b6c149f17b1114a
BLAKE2b-256 c08103894566e0712a91ddf03c8b47ffe62096132a4e623ec360a6db29961915

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b8bcf7b8ee89ef9dfb6d63f45e0264d1a2a7b875def0a94d81024cfa62f99523
MD5 a864272fa2ae9e4acc57722dde5a5219
BLAKE2b-256 19cd1c8de7ee1c818cb05c4cb10c896998363d982d02e231d9608c9d864fc2cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1f0c84eaaa6fd5e131cdd0e733059a000c3d459a68afa7c432894017435cfba
MD5 2eef4d405c0e33842b28f3cb4c6fd3d7
BLAKE2b-256 aade211e5c4021c55d373542c42aa35468d646b2066d50e36795cd27acfec007

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev6-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6ad2a90c94239d70d4a14c95cec6b868d34d07518c03f295cf8df5f38f067b7f
MD5 c5aed71720a01aa7831d996895bb5ff9
BLAKE2b-256 901cb9afef86dfce63ec991aed8a4531d89d45eb5e777036fa5a9e7ccb9bd272

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev6-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 bcfb2f129995ec047d297c073a5abb9e1354090874e04643e75e6e3789dd2b15
MD5 d5fa3ca2d891e1dc59f4fef35dd9c924
BLAKE2b-256 25cd718f3917700537a9b5e4df5063bc064ccf1a4c570709601ea121b2192db2

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 da4911f03c753807b7f2121c6b7fe88e08a9639b5389f3b412c7063be0fb6725
MD5 6d64692e3e0548fad83b2db0847e87b4
BLAKE2b-256 ad1b06bbebaaaa7458ea31b6e3f96b23412b385b771421e5517d2acbe34b54ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d23efadeec8d8f12fe802fbe64291941f2178e7fde0cc6ba8e423988f1d6b809
MD5 31c1849c95c69f205dfaff805ced2ebe
BLAKE2b-256 82c5b46b229ff041229ccd6ddeeb4cc9f781494bf67ca58492d6e0dcc030ca16

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8efccb9ab2160162ab1769aea5e292c62abf1863d0b60bb6d4c7c0332c52150
MD5 30ef2802066e24f932013fad886c4388
BLAKE2b-256 2329fa8f4aae8f3ffad1598ea218b9fe86b05e1a76c1e65b545349805344bdeb

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev6-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 39cb580e8d424fa1669c7d82535811d7f8099af8c8c54e746a3f745dfcf02160
MD5 c5c958bd4c7435a0561bbe868bf19c29
BLAKE2b-256 6cac4ce646c1f5888262cf4757cfb220e9b39f24347ce2b72dd991c572ba7976

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev6-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.34.1.dev6-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.34.1.dev6-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8ab14a5b4d18435408f14adb9b222b18601ac9c08b35eec0d70baa8d1eca1216
MD5 44f03f8a226c0092c97c85416c6109ce
BLAKE2b-256 28908ff394cb2fe3f09fb27d2ea52ffdf9eb4f544133718807d097eb9840ecc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.34.1.dev6-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