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.dev6-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.dev6-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.dev6-cp312-cp312-macosx_11_0_arm64.whl (407.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.30.0.dev6-cp312-cp312-macosx_10_9_x86_64.whl (408.8 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.30.0.dev6-cp312-cp312-macosx_10_9_universal2.whl (813.9 kB view details)

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

amesa_inference_dev-0.30.0.dev6-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.dev6-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.dev6-cp311-cp311-macosx_11_0_arm64.whl (407.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.30.0.dev6-cp311-cp311-macosx_10_9_x86_64.whl (412.0 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.30.0.dev6-cp311-cp311-macosx_10_9_universal2.whl (816.5 kB view details)

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

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

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.30.0.dev6-cp310-cp310-macosx_10_9_x86_64.whl (414.8 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.30.0.dev6-cp310-cp310-macosx_10_9_universal2.whl (821.8 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.dev6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8534f153f31f208d1025416fe2640ddc004e26cebc6a73f01eb5deae96b9c6cc
MD5 d1754fa6b4cf712545155c719ad94409
BLAKE2b-256 c6e4f072ee1e40dc6530e4a169af03035482618f5bd0a5dd4dbf25f1949e20b0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7ae4b744ec4d7728d38264abefed0200090edba80f8dd0ce4ac75e3662ecd6eb
MD5 fec287fa7cfdf2eec616db59ed944d36
BLAKE2b-256 3548bc72ea3f50fe3f9c00f4089b65e63ae951459eba83c37b33f0e71ea44556

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f980b7d0712469d8216f39df3e6da0ab0dc43fa1607d038bb0ea0220b667073d
MD5 4d1d262d3c1b7c5fb18074b39bb1ee02
BLAKE2b-256 b9e3d9755d950e70a5c4171834d4aa6b6f017822d3adbd433d2103dd5d912159

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev6-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 efe6e497397521ed19f1bdd5e0ba8bc55e045fa9d87b5b4faaa67ebb86012a31
MD5 a1a522a4b52b2d29f3c479093b4d4277
BLAKE2b-256 bc21b0a01673e289709803aac0f15adc048ef1ff47f27494963e9374f42d5b54

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev6-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 819b253e1c0e815e0ecbab35498cfc2f008fc75f097a875ee251f67ac1bdb421
MD5 68c6005f6f8ccc9cb02d4adb7bc1b58d
BLAKE2b-256 969e2397d579a2651dafc1c911e0bb80fa6bb9867eb9418d630ec46c0c8b74c5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f4d2f18631e885ee80a476d5419e1f6145bd9a3e59a70f1bf76b65df5a6c7e8d
MD5 c8e20b50324c31bbefd9ed0c623f2083
BLAKE2b-256 ba3d60df8d09ce15c8aaf04a8c982ae74d27e7b1597f6ca20ba7c680ce1cf3ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 55e2436bada1f7b314200c988b13e71385d8973e3fd6ab0821305f8f7d41bfc4
MD5 b305f4da6687a7a52da1051ff1a25058
BLAKE2b-256 a79c243d4e0b0908b1e6c58cc0cf8083e49375c79db8be9e8822deef0f8ea384

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 618c34890be2eccea4831f62104ff4bc74bf434fcde3df8d6c6426390012efa3
MD5 c641bb2a09e3fe4440dd0ded5a46616c
BLAKE2b-256 d6dc256debf87a714143568ad58b1c64395d0761b70ac0b0db44f229d5db29af

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev6-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6116a28b6672429583e0dfbdc59fdd92bdbbabaf4f2f4cce418d14999ca5c99a
MD5 9bb63f4b957326a85a6f3525e52ff9ff
BLAKE2b-256 92fd0280b08d4feffa564ac6a90c8cbec410c7a473331257c2decbbf1d411db4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev6-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 31726d878a7c0560162dca29d9b93f11fa1da37257d418341a7f8be6e57fc0e4
MD5 92b493856abc430e3b38ae7a32e7a0d8
BLAKE2b-256 c7e371c7247b593f9c1f7f64796c730bfe35d32eb04bdb2dc892a747cde3a243

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 16ce87540f8949376ed71e5f62ff1bd9976f991908c1ca66a201c73c62b2fdfc
MD5 a4720b8255b19f23451774262ee91e1f
BLAKE2b-256 45c3148a41810bc39de167de50062cd77ae0e6a07c4c7f1906376905008e6143

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 06b0431692c7ceaabb7d1f17424f54d24f6443efa530241a6a718b00e2fcf4d5
MD5 93d7971879610d1f760e9519d7e49f8b
BLAKE2b-256 ef08690ff18aa87c05d28d1d0ce1e6c4ca923ff63b0a581a93231054fe4b017e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6fad638a1079def0de53d726ad0aed8825f379b42dac8f25a2061c2812596de
MD5 8abae906f246d3eda7ff5adb42ff224a
BLAKE2b-256 c98591eebadcccb421cf4b6b1dee0814fb56e3aa8741f89287350f9632d05fa6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev6-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9fc95833ab009b97dc5d8751c0e5bcbef09b4630484e301eab22c8f7677712f1
MD5 16cc9ac76bec466d4b5540c53d2d3600
BLAKE2b-256 08e08154d80e0bd33312a3ad776f4382509e247caac8e7ed22f96ba03eb51a4b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.30.0.dev6-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 00e1738da72dcf66b554c8c1faef808b1ee6b0d81ed1684cea96f646dcfeabc9
MD5 ce1cf66d588468345bf360ebd1e90e90
BLAKE2b-256 b18e0159ecdd67627f26b6b69328ec2fa6870d11d13ebb557f88d08b01ffe4c1

See more details on using hashes here.

Provenance

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