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.dev18-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.dev18-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.dev18-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.dev18-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.dev18-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.dev18-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.dev18-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.dev18-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.dev18-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.dev18-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.dev18-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.dev18-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.dev18-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.dev18-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.dev18-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.dev18-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev18-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 358e8fc6735b7a0216fd2c91abb89918dca51bbb9141d12e428839a9ef68e7c9
MD5 9965d6acc7fb8a845b4ae695278ed751
BLAKE2b-256 4f47009528351b6bf7800ca3ded6e79e3c117c55e10c3be2ea146c1f695fd7a6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev18-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 de85776a04b8777ed71c6aba0ea69a3f0520c9301580a2c7d1451cf6272ade39
MD5 454a9cab4ca6aefdf2645d66c5a65c17
BLAKE2b-256 c3d97f048a5e49dd73348e6e260fc3f71768f79fa53db24e4ba61beacd21f826

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev18-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c157df01b232a2d7c0d28892f57e2840e004f8f55ac2c8033d9aa41633af9cf5
MD5 7fb12fb35d77ac05abf9d92b0985c8b2
BLAKE2b-256 d22a6051090916e80843e365952b47f7622f6faf97e09bd05d7ec6c67d333358

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev18-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 07cd32db179f9328fab80024cd3d11299cf0ba138fea0b191eaccb25a1cf7457
MD5 2403cc0f41082341878564e79d2cf41f
BLAKE2b-256 1ad810888483425c76ef7298bf028f606296ab9f5172c8a3de1bcd9f8d3e7976

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev18-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8523f4628d041d426b439c0114475dc9f3ec2b11fc37555ba32373f41398a8e1
MD5 8e7f1af4d14370c1d537e5acfbf7c81f
BLAKE2b-256 aa52d942937b1069841a5f6eb0cac5fb3a51f04e2d0220f29c87fabfe3b82b8b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev18-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9628fb35c3f774777d33789a7d0d5db640a4e7f5b72bacb604aea9eec7261d03
MD5 0fa50296554de8ce2f63df3606078ad3
BLAKE2b-256 c08c9651e528994f9f80477126b5e64aad85b70b35ef4643f2aa661cb7534a3e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev18-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fb1e8e20417a826073614c849495e851b1f0a73f8853159c9670fec666685436
MD5 7f56e7db04487197b54f5971f4ff8de8
BLAKE2b-256 d2d0dfb7fbd4aff91a4bbdd93450e2b6647558550b15b396c1091e5a65af29ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev18-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af5ee56e64f4be68a014735fc67afc8bea12b78be7e31d8f2eefd3a9ec293a36
MD5 322c59c85d9bba5362b5e139bbd3089d
BLAKE2b-256 2aba854de225ed183962d02230cd2bb307749158e4dd714d7fc5a85902398a20

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev18-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 302c4daa61c6b69f0d6a951f373217ecabfa734438f25087059b82b120f59789
MD5 e0efd636dc8b842e5c5cc68ed415e47e
BLAKE2b-256 2bb9a22bd6e65b1b42044c4c84dee9c8620c596356cf2ea66878b9f579b6ea7e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev18-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c6ab9c45bc9c4e56190043baae95b2b9bb44c23749a9cbeab07be7dee125a97d
MD5 3f53402625b3d9c921eaff011018190f
BLAKE2b-256 0f4f850e8c2c6758d29f4ff9f5383e8200f8afa9f24e113431a6e890b6f2975c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev18-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9a91615d46da37551dfdabcfd7ea552809a797692ac05f2b6c38e0d6a96209b4
MD5 702a51979c638a736ac6046763013abc
BLAKE2b-256 87ad13473190db658ec9c4b72325fa1b01d723bb630004f4e108ad4595936e27

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev18-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b2b66e0a13903cb6244ba56ae4144d9bf8fada9449b8f8d57a480ddbc9f2d8aa
MD5 63dd372ccbd337033213b21c2881cd43
BLAKE2b-256 ff4e3daceaa4aa0c03fbd142fda80392466b1ce3bd1e431c0c80430a50d5d06e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev18-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 920c26756eb73d9cbccce67d3a2b5570013ddd4761f66afa72cb58f203c94b4c
MD5 ac4d8521036bcad8656799f0e5b8ce12
BLAKE2b-256 6dc75c01fed06bb57f39a7ac95eaf8d836661bd8e3b866cd8bdf3a926b9e3a46

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev18-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a4403256842efc37a817dbea230b807144279394ebade00a840b5bd7034c5911
MD5 5e9cb00cb8383238eb12d6519bcbe910
BLAKE2b-256 ff9599c60aa614d1381db86f29a9c04c80df6f4af2b2bcf90fe8fc0cb03df9ef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.32.0.dev18-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 de5e58961d62883045506e9a50cd484bffd06c79aca3b1374024e60720eeb72a
MD5 002dee6a607388ee2676d0a9f17925bc
BLAKE2b-256 04bbad9a9dc3fa2b5168ac54509a1dec001ab1d4b9e19ac15c9c532c85ed6617

See more details on using hashes here.

Provenance

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