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 (skills, 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 skills, 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 skill 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. ONNXSkillProcessor: Processes skills 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


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.22.0.dev1-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.22.0.dev1-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.22.0.dev1-cp312-cp312-macosx_11_0_arm64.whl (405.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.22.0.dev1-cp312-cp312-macosx_10_9_x86_64.whl (406.5 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.22.0.dev1-cp312-cp312-macosx_10_9_universal2.whl (809.5 kB view details)

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

amesa_inference_dev-0.22.0.dev1-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.22.0.dev1-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.22.0.dev1-cp311-cp311-macosx_11_0_arm64.whl (405.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.22.0.dev1-cp311-cp311-macosx_10_9_x86_64.whl (409.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.22.0.dev1-cp311-cp311-macosx_10_9_universal2.whl (812.3 kB view details)

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

amesa_inference_dev-0.22.0.dev1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

amesa_inference_dev-0.22.0.dev1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

amesa_inference_dev-0.22.0.dev1-cp310-cp310-macosx_11_0_arm64.whl (407.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.22.0.dev1-cp310-cp310-macosx_10_9_x86_64.whl (412.5 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.22.0.dev1-cp310-cp310-macosx_10_9_universal2.whl (817.5 kB view details)

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

File details

Details for the file amesa_inference_dev-0.22.0.dev1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.22.0.dev1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c1f63e7ade3834ecaed7aa5fcb4ab9b4af0c96b296dc5f38f946c150ee0ed126
MD5 8a0c9c54d1e0fedc43159813830bb831
BLAKE2b-256 ce3fdbcf3989ce3d4212bc754cfb717feaf54911b19c6176a9ad08eb9da8ba5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.22.0.dev1-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.22.0.dev1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.22.0.dev1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 88232246754eee68fc62f17fb8487c2e966f3490fe8b443fc7a6f1360029de74
MD5 212c77389408e677ee6d3b76f36d0652
BLAKE2b-256 aa6225ea9a0dceedbc1bf7bd8f9198d3e82ff9fdb095d4cd7858f4b3e2ebd7f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.22.0.dev1-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.22.0.dev1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.22.0.dev1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21d672ba556932380df465a4095957bb37d411ee89a428cc5b3c3cc9630bd082
MD5 59b0564044ae3d135432e8059499c9cc
BLAKE2b-256 fcce2de93923cb049409465b61a7ab70ba2ae5cc4d74124db5c725b0326ee2a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.22.0.dev1-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.22.0.dev1-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.22.0.dev1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 13f63a7853658a06466e2a76eb851c09dd92a45848a6dfc9c22ae85a1560c711
MD5 b234480a9bc7430e07e9a3266a20f2d0
BLAKE2b-256 ff3c5cc95be3bcd9e7bd48ce974686a740053b9314c2a1453afb8a2b802f5708

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.22.0.dev1-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.22.0.dev1-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.22.0.dev1-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d9844b6eb8d2ed36787d368f63123d8e02abad8d8fddf241e632cfef141c7b03
MD5 850826a1c69216552cf0e78b0e442df9
BLAKE2b-256 b8b810ab1366c936fd52c291179fdc994e6985602c456900269c6f65592cd5c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.22.0.dev1-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.22.0.dev1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.22.0.dev1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d8006c28d954faa411e42fff0cfe9528b29ed84b99b1d8415464fca4fd13397b
MD5 6cbe0c57c4f43e2ea8d2991b96564c3f
BLAKE2b-256 3220301cbd945c3a785bedce97cae51b3544d3ce0e1347f2d4add9cd0fbea60e

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.22.0.dev1-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.22.0.dev1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.22.0.dev1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e0f1ceb5c4bc4ef052169241aefd374982b7fe362243f2c908dc92df79f38e24
MD5 dd1609947eebb25e027992f71bb93cc0
BLAKE2b-256 25d6083c9b1d84190ca96d33e0cec06cc7bc5cee933eb93e0ad98d4ed6422443

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.22.0.dev1-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.22.0.dev1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.22.0.dev1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e93982cadbbd03244577f4007c6b52543262ada5ce37ba019843d1bf9d3b204c
MD5 d0687eb05d0e5205baf55da043401883
BLAKE2b-256 86f0f9cee8a39cfe297dfe036677a166b6d1b74239370529337c4dc3f7e9cc85

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.22.0.dev1-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.22.0.dev1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.22.0.dev1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 54c2808460383babd024534552c03e7e369be819106ebd622ab9c342e869a474
MD5 ab0374e56595f13d4ec8242e73cfa03f
BLAKE2b-256 3c2457953061e6ddf454addbf5527b10bb52b302456c784a4e77735125c57625

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.22.0.dev1-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.22.0.dev1-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.22.0.dev1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 23d646c14d31ac9ffa989f66c735d133368f3a8d7c56dc8e35a74ffb233ff65d
MD5 9493fe0bf7c71431d6299135dbc08c69
BLAKE2b-256 6e02bc6a145e24756292ed90ab48ce6d62b66f8b6bba6d7715ab4f1d0f9a63c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.22.0.dev1-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.22.0.dev1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.22.0.dev1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b6b4d210f330ec1c0f06ddc06d4ca042ce080fdcc8723fc061181f112cd93f6d
MD5 0df451e68bf00f4296c696ad8cb82d38
BLAKE2b-256 2190670fe87ccccfad569d69d3992b3ff435c0c9d8e908a1c205612b07d63797

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.22.0.dev1-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.22.0.dev1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.22.0.dev1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2d582bdcbd8a0896b21abf9a9507f0b10f7c755722156e1d7e4c2aafa1612d06
MD5 bc50145ccc08179747ec912241f68c0c
BLAKE2b-256 ceaeeb885fec80eced8598aea4feba3fd1dc309fed0aa361dcef597770fd6f06

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.22.0.dev1-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.22.0.dev1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.22.0.dev1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f30e895c2d0b5adde1933bf6936b170c7e821c27c4e63267760db5dcb04c807d
MD5 9779dd5aaec7f843ac3e5461695c535f
BLAKE2b-256 cd67387585ae25d8f9b613efd03dd5dcaa30096921d8120a395a90966bff30c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.22.0.dev1-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.22.0.dev1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.22.0.dev1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 55941c688e82f7cba8ae22f6ea50a508b2bf25c7c9f0abbe6cd3bf722e81d97e
MD5 4621e4d973b1b5360698a99b2e345a3b
BLAKE2b-256 d7a288e77050ec906c20b964d6db09b28582f7dc5b963406fcc33d8c82d8074d

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.22.0.dev1-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.22.0.dev1-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.22.0.dev1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e26952362bfb9a7adea58456c5c770c05bbfb53d7235f4de07c4ebe5553a86b5
MD5 d9aa53dc7f081eef76807b28c333a442
BLAKE2b-256 aad03514048f59023a566dfd3ec442cf4664ad588251a0d4e19b7ac23527efca

See more details on using hashes here.

Provenance

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