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.33.0.dev9-cp311-cp311-macosx_11_0_arm64.whl (407.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.33.0.dev9-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.33.0.dev9-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.33.0.dev9-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.33.0.dev9-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.33.0.dev9-cp310-cp310-macosx_11_0_arm64.whl (410.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.33.0.dev9-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.33.0.dev9-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.33.0.dev9-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev9-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66cc6704ab545e15d24eaa704aec8674e1abe81db0c5baea60dd5e1995bb98f1
MD5 cc7d043fcd920d1cc9885f90999b9306
BLAKE2b-256 a3c634b96c301aa4c5004c8a5dd8967b22269eb60463042d6cc645383362fa1f

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.33.0.dev9-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.33.0.dev9-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev9-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 36b128ccbab08fd6185dba7200073e8269abe996c9183eb1fe8c132cfa12c0fc
MD5 84f1a8a787e5335194e74aa919d0c262
BLAKE2b-256 1d83d93b0c08aa5cadb1cd47a0b4c26f72524b8eba6e90eba5c65efdc23829cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.33.0.dev9-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.33.0.dev9-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev9-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 52b61e5845705e1d461cdb5a7ca23584407685367f8e9b8d7189b5719050e581
MD5 52b592da23f6b99d4a297d9bffc733dd
BLAKE2b-256 cbd79543ade4e9f080f99ee8d3161b908796e2285c746180c98695e4ae3d87c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.33.0.dev9-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.33.0.dev9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8a23a1024a380666fe24b04253c139a4ec71a43c71548ec0f011d97859feb10e
MD5 111435be1eb2625038ee4cd3bdca97b3
BLAKE2b-256 031f5970b1257814f8684805481ce1fe386dac3ecf9f1eba7bcd2195bb08c17c

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.33.0.dev9-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.33.0.dev9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 601aff499f73c6bf0ac9b10652b34e85d77111da13dc48a5e051318461ce1b61
MD5 fcd87092410537c8f9288bab730d3438
BLAKE2b-256 599f65b0ea2daade115a7130afff35dbf0e7827e1f5703fdcde67be5e4144116

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.33.0.dev9-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.33.0.dev9-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev9-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9f2178e5f1ffdb340bdce3834f3089b67ab3615ec718bff555a58085dfe82856
MD5 d3efa7085f7593da1b158bb9d6296bad
BLAKE2b-256 44f25ba1c85586ef9564956bb66f8735e7264eddcb39c4940215f7723a6e1fc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.33.0.dev9-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.33.0.dev9-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev9-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2bcd6124e5fafeafbf3fdf50cb90bd9a10f7b9bd744163f220022321ecedccb6
MD5 650eed2cba085d7fbeb3cbe81c2b8567
BLAKE2b-256 3cb666d3cfe3ebf71e35b91a6e495f8d0877f7324b3073de47add53f0e5e6817

See more details on using hashes here.

Provenance

The following attestation bundles were made for amesa_inference_dev-0.33.0.dev9-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.33.0.dev9-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.33.0.dev9-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 73e7e826a8bfd67994bbc2622c7bdf86793e440fe5d0c6f50b9205d157381882
MD5 aa2b25c59b402692552224ddfe079205
BLAKE2b-256 5c71e5bce9224cb00096a2fd71d9a6889bfdac1f2dc08918f2c64b2f3b931816

See more details on using hashes here.

Provenance

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