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.30.0.dev2-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.30.0.dev2-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.30.0.dev2-cp312-cp312-macosx_11_0_arm64.whl (407.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.30.0.dev2-cp312-cp312-macosx_10_9_x86_64.whl (408.1 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.30.0.dev2-cp312-cp312-macosx_10_9_universal2.whl (812.8 kB view details)

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

amesa_inference_dev-0.30.0.dev2-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.30.0.dev2-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.30.0.dev2-cp311-cp311-macosx_11_0_arm64.whl (406.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.30.0.dev2-cp311-cp311-macosx_10_9_x86_64.whl (411.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.30.0.dev2-cp311-cp311-macosx_10_9_universal2.whl (815.6 kB view details)

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

amesa_inference_dev-0.30.0.dev2-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.30.0.dev2-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.30.0.dev2-cp310-cp310-macosx_11_0_arm64.whl (408.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.30.0.dev2-cp310-cp310-macosx_10_9_x86_64.whl (414.4 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.30.0.dev2-cp310-cp310-macosx_10_9_universal2.whl (821.0 kB view details)

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

File details

Details for the file amesa_inference_dev-0.30.0.dev2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b9539e02ca27680a961bc0730a2baeb6812d95327fbe78a484ff13aa081c50d
MD5 d4fcfa6e73f6b315bf58918f05990d94
BLAKE2b-256 844a7a3fedcae065cadf4509e4909a375c5c849cf6f0ca023a25f295744f96e2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3638fa073c5b265264da28cbf8c4640eb8fc2d04889b7f39efdb345510481141
MD5 eb5af35df0f5df138d21fe140dd3be22
BLAKE2b-256 531ecd39bf8d890c652630798082844e74fec3c07636f0aa71e0e15ec944c920

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85d2451f9817bb1ab48cd5fef999dd1cf3247b42727ba97289fa0d71ef7f28f9
MD5 4737c3a21163377724fcaf0de7aede5a
BLAKE2b-256 cd5c9f804e9962264fa6405362d65b7fa1dc02ccf6621f226c45d5564c87a7c4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev2-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5d57dbf35b5f58ecc1a289274633dd293e1706864131e2d403949fe4ea5e8fbc
MD5 ff5b1d33d706ed1b4a0e154261e5d2c6
BLAKE2b-256 b59372d9c7ccfed5188e2b9d58fbf34213aad7925b10f6a82780a45a7e6b61be

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev2-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5d603109f910de0e9dd3469aa9a91926a70d306698cc5d6dd5a9f36e67d221b2
MD5 c0fb1e25f50e733ae341ac905c2f91d2
BLAKE2b-256 56087aae5395cc7128bccd694b5e6eb55d9546b5a2ccf91edd81a3ec1ddb76e7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0753483bb55752762bc5117a4d3b5bc9e6913b61c976622436bfde36c1da129b
MD5 d6bff6ced3754454178854cbd5d749d7
BLAKE2b-256 cbace1a4604aacf4fc922799f7ac6b65039c628cd317ffd68428af078a78dc2f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 53d89236e05ee88021b7afc1181426306e005c82ddf55a820bce903bf1df521e
MD5 69a2c17dd0e5c06cbf5a027351d79a1f
BLAKE2b-256 b8131844ecb23b97a78fa3cc2fa58d2470e6cce550ddad0262cbb8ae471f343e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b2698956aaecf91c6a4c145089908a6418081b790694aa4635c8697af1964e89
MD5 5f523c15a69fd617c333ae4e1286cfff
BLAKE2b-256 4d15a63809e0c530b9da3d5bd9334f5585a27fc5762e78502acab4e3925a92d5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 80058ca82d7bee7efc8e0b444c68c3501b6af7ea637d51e5e4a434ee20b35776
MD5 562675f96804443d62dffc1308bf38c1
BLAKE2b-256 45489429bce35fbebb0c6a62aab80f1747ff5f88ee1dd69df0dd8faca88b4f2b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2489109a7605134afba2350bd45bd9b9e23aed918f5871bb1f2d3d08004d99eb
MD5 b94227b9d4673796b5935462527a7297
BLAKE2b-256 7e9dc585e93a796ad199072ceb7f10815251bedea017b9dd3de7d542350b6472

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dadd716abb5709b95c41ae728a56e5930852c36a6d798f7c783d85387e9c70ff
MD5 f6c626f009a46d5b9c6452a5ca76d189
BLAKE2b-256 3608d2654bd8f7b1e858b3a90f1cc8f420b82c311023c94013d99fb3ff177c3a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 93c9d62f1257396eadf7d4b5bbe8cd52075f35d4bde427c8d4087faf882c1259
MD5 f9f9064405680ae4a789832fc281ebe7
BLAKE2b-256 c468bb5ad4c8a9329465b4a4428e8483325edf4c062b807e6daf0d4fc26c2245

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff2a4488342902afb21f942e208d713c6ff5451795cb93290341cc8a33763b9c
MD5 9cf4c909208003c6c2e2557e99ddabc3
BLAKE2b-256 d31b54695c6bbb3b1efea1c682ac18fa2dcc4397d0329dce0cd28b8da4ae50ee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a168d6c96bf57de61014a34a82a6c80561d7422906fdc6c699841513cec9e2fe
MD5 1a3560f764c7d3e95b8c73f8e4720804
BLAKE2b-256 5b59060481a3ad89232b3438b49fa4c8f607e28a384684085f05476c67acbda3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev2-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 006f19d340d4d26401c892966892d86a0d1c0a6d92511a6cbb1b0a6cd0dee334
MD5 4018342d0c5a124328e9a8c363266864
BLAKE2b-256 21b14efc7939527f4712a4011dea62fd0e407fc16cf7bc39e321cce91c8427ae

See more details on using hashes here.

Provenance

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