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


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.31.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.31.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.31.0.dev1-cp312-cp312-macosx_11_0_arm64.whl (408.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.31.0.dev1-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.31.0.dev1-cp312-cp312-macosx_10_9_universal2.whl (815.7 kB view details)

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

amesa_inference_dev-0.31.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.31.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.31.0.dev1-cp311-cp311-macosx_11_0_arm64.whl (407.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.31.0.dev1-cp311-cp311-macosx_10_9_x86_64.whl (413.0 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.31.0.dev1-cp311-cp311-macosx_10_9_universal2.whl (818.4 kB view details)

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

amesa_inference_dev-0.31.0.dev1-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.31.0.dev1-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.31.0.dev1-cp310-cp310-macosx_11_0_arm64.whl (410.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.31.0.dev1-cp310-cp310-macosx_10_9_x86_64.whl (416.2 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.31.0.dev1-cp310-cp310-macosx_10_9_universal2.whl (824.1 kB view details)

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

File details

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.31.0.dev1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 35e98e86bdff13c16bf7b1354efec7fd00ada24cec0e6f9adc3327fb18d66269
MD5 2e0becc813b5b3576e9a47d6dd0687de
BLAKE2b-256 343ca3f773e6ef36762d16a813a725f7267988a852403be98077e96687b8be7c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.31.0.dev1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 436bf2b6616dade52be1534d8925555dad76354d2a705ba161529a31b44f3988
MD5 97dccf056ef32954695bb3de04ca5ce3
BLAKE2b-256 2b3d678ed72993fbbef441cde9c0f247057aa75a571f55d0e1ac5eb116072d71

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.31.0.dev1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75a1f0750ec2b62e7cdf303c61f3060e8d179dd43a06eeb8d71e0a42cc19250e
MD5 92d7e88f696a8764fe2d6fd0afca89e0
BLAKE2b-256 4ba8bd63bfe92ce08ddc03b866e9f337569e4bf0f3cb85cdac33d11880611597

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.31.0.dev1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c064317134065738905d1ae8c8d12eaed4599eafac42fcbec52a0619ecc631c4
MD5 6d5193493379517b4a0b32c83db1cb24
BLAKE2b-256 41bc31d8d89e72909b9af09f5073553e5c8cd6da106665d66827ec28eb0a9e4b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.31.0.dev1-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a0c57ec000aea92b54ccc0c57ae13604f613a9408cdac281b5f433f8e97117f2
MD5 2bc6a33878bad335fb3b1a0185c44e71
BLAKE2b-256 7d9226a32a06b54577087fb93faaf1a4a8ff6c9f83b02945066e175976cf9ea9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.31.0.dev1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ee24e468bc2f0371d5dfa39771ff638f8920a688185bd337dd0af8c7d57203ca
MD5 63c1502ef0a2cbfa2a3fd236fd0240c5
BLAKE2b-256 c1fa89be37e04c56aa5d883a23c5bdf78fc7afd67047b1aa9ddbf7558ff1c7a4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.31.0.dev1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8c34f5266a5512fc2ad61ece277834fe0bec8c5157c713cc00dc6dc1a29b8585
MD5 a3954f057ac1bc9be4c12e55d3e50db9
BLAKE2b-256 7e9f69d9d5a08abd2cee1f40f1415a121056e1e51860724314c2c4f1fed647c0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.31.0.dev1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6acc318351d1f47e716053d11fb594da5e6a68c81d2a89a711fb4036904e59cd
MD5 48d0dc22ca35711f2f8de0a6d3867216
BLAKE2b-256 102c013d3d8182c2cd6c008f118f7ca10a8598d754c3bbfe7466b9f0289f8b90

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.31.0.dev1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 65706a6d39ea25769fa2c775c00ff63c20245389b08ebbb691f07e74f5265618
MD5 c3fa7653dfbb2e85d38be9dca34f1b14
BLAKE2b-256 38896beea28808e56c3578ce1f584e3efef1e23b8a800bde33d41c736a721e19

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.31.0.dev1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 15fcfb02c1b6305f477c1934cc366be123962fa68389f36ee342a6136beedf03
MD5 d2d8d23baed0a7d25ac3d9ed8484c105
BLAKE2b-256 34c0a4cbd820d080eb751de07ab72c5c7de954ba179cb2d089bab232b03c7504

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.31.0.dev1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3f3853124d0d267c84f73d499d9dd02ec9a62cf36e4114d1adac25e5a22e5ac1
MD5 8d4020c2c53ad42cfefda204956fe128
BLAKE2b-256 8832f3a1be45c6d8546246ed044c8e80539b4c5c9967dacee7e6906ad2b19bc6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.31.0.dev1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 359de2499c17da1f64ae59ce50e947e4bd19ff7c83f1fdaea428c13655e3d59b
MD5 d9386cc589de3b2f8848e384f0588b31
BLAKE2b-256 3154176bf00a581a412c5d685fdb4a8750ce843abb48bfb3793dcda4de0cafb0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.31.0.dev1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81677b12dee69b050f21dfa5576ca3cc00f4b7e02e0a2828dccce6a81beffea7
MD5 ed9bfa5d4c77283570aba90ad6590cef
BLAKE2b-256 0545b93e5be6dd0c41b8d8524e76e1ec07fa07fd78cc6e26a020ef1ecf257f70

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.31.0.dev1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8dc771c4aba9641964f57fe1a9a8bafdcce0cd7d843e2f8075ff4a30ae89a427
MD5 de191842188eaa218b73f2bec3bc6675
BLAKE2b-256 547d752269266a1c5442332760a365e014be767ed1d838e8501b943ad32bbaa3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.31.0.dev1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 fc67ea98ead0466e154674f4674920ff6af02f6c4c616d87a5519ff722a52afe
MD5 484872a66bd315c1ccacd0c01350f37f
BLAKE2b-256 c57d1ed99756b6c36e39dee7816623625109a21ec6c0a4bb9cb7a3371000c8e1

See more details on using hashes here.

Provenance

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