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.21.0.dev3-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.21.0.dev3-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.21.0.dev3-cp312-cp312-macosx_11_0_arm64.whl (405.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

amesa_inference_dev-0.21.0.dev3-cp312-cp312-macosx_10_9_x86_64.whl (406.4 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

amesa_inference_dev-0.21.0.dev3-cp312-cp312-macosx_10_9_universal2.whl (809.5 kB view details)

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

amesa_inference_dev-0.21.0.dev3-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.21.0.dev3-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.21.0.dev3-cp311-cp311-macosx_11_0_arm64.whl (405.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

amesa_inference_dev-0.21.0.dev3-cp311-cp311-macosx_10_9_x86_64.whl (409.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

amesa_inference_dev-0.21.0.dev3-cp311-cp311-macosx_10_9_universal2.whl (812.3 kB view details)

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

amesa_inference_dev-0.21.0.dev3-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.21.0.dev3-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.21.0.dev3-cp310-cp310-macosx_11_0_arm64.whl (407.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

amesa_inference_dev-0.21.0.dev3-cp310-cp310-macosx_10_9_x86_64.whl (412.5 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

amesa_inference_dev-0.21.0.dev3-cp310-cp310-macosx_10_9_universal2.whl (817.5 kB view details)

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

File details

Details for the file amesa_inference_dev-0.21.0.dev3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 892c4c73ee2486feeb80b364dd9ccfd57cd4595edd845eca03b978c081034d5b
MD5 890528064f76a653428fafb7fe50420a
BLAKE2b-256 4fd1f8115b366e5d7db80aabd4d2a5c1fba8ab6e96a1fed29b5157cf47ef137c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bd8110871c7fe55f3e86c3be59585a7665592e8872750900fa5343336b5b0c24
MD5 2500f1dc6e5dad17c1dbfb4921a42ba1
BLAKE2b-256 a4f37d4719e844e21b59619d3d1b102ed906e2a09c2c87594cccb12111fec5f4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ed02ef888f3100c234953c28403d5f9328b3d8068ba3b87b6f784c310c52fe0
MD5 f184f95ae51413b42ceb1f84acde3de7
BLAKE2b-256 b5a4d291434ed8c331b1481f6b0597e5e401af539d770c6b52e8267d6da1604e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev3-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1732bcb83a0d2d43de6452bd8369dd790960069c9fe3fa03d52fa275fe2c10c2
MD5 2a9c6f9cc1f45b3e7e254b84d60bf5dd
BLAKE2b-256 d46f88ec376eb17033b6a0b6a971d57fd727bfa3a55673ab2a8091927827292d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev3-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 55fe32841bdb9b24ae6b32b4cf1fccfbee69cd9255dd206d43a0832cc2aa70b8
MD5 6ceb3ae4dca2952db62d6b605dc5ebff
BLAKE2b-256 6e31b77ba308a314bb63ef02164edc00f1c2e6f9dcb3f1e2868fb1c2886e2748

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a70acf37c6f6df10573bb991a74cfcaaea2f590b4516f8cc486c639abad91f77
MD5 be7cde343b84f8d678cf20dead74441d
BLAKE2b-256 d94e87698868d8c18729a1882833c2e72cc976a7766ab33149e418283ef4aee8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c3aadf9ff235f6ab9047e5ad6c9d143be928243d407ea9354cee7687b4006cc9
MD5 218aed1bbd2d86712a27353e3f4f0824
BLAKE2b-256 146ba50bc7f732ead49cf3a85710f4c9f655e594d28554e3f0a9566f8d26a9d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70b53346e293b84678e8b163e9aa4b1fd640fdfdd26380edb2794ce819dd554c
MD5 7b24efa6ea76fc5f02a4e0c23fb9a68e
BLAKE2b-256 c44afccdf27aece7366c444ec6becc25436a74e64774823550e44528c40eeee4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 04cf91cf0ee5aa051f222e83fcff18564a5e097385b1dd14dc15000535c5f5d5
MD5 a4c9c13eac04d325cb5987ff2a289c9b
BLAKE2b-256 d795a4da269722d85dc640d41e7f5102e8d0defa85d2ce9e09e788404daa78b4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e2e381ca4d83dce8886b5a5007e0fe4da3d3257f90f41a64a21bb785c1157271
MD5 fc47deec998552369336f7590271a5ca
BLAKE2b-256 b31cfd0461d346196664c55cd8087dbbbe4d44dd7bb57e6ce871d9ce3dbceb45

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 04413e96132808bc4424963e9e20a1f506969390d97e80a60cd46eb9f1f1d0c1
MD5 afbd47fe8cb947bbfab342c669bf5577
BLAKE2b-256 d1239b5c3c3d458b3792a7639bf438db880276c11e5933507d5fbf678aa27860

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 10d750cf31be836ff621154d540e349447f2434910572797edb5181b9237fdf9
MD5 bd0db35688bd40d31c910d3fa286d2a8
BLAKE2b-256 1c95e7ffb3c319b1b1aae0004238d280d150486380e3e6da2a2b8cb50de36010

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b67fcd328580c82f246eba18f48b4eda72cd566895955a260e56151b0a01315c
MD5 523f8bdfd095c9e3623013515481fee7
BLAKE2b-256 19f9e1f7abc2815a10b5e94d36e3f3e1bdf4b0fb4559fa5e494f09f271001d4f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 94ff3af232e3ed0af25593683bb793545b99f81fcff862a0457c13608f714c0f
MD5 dc3a43c21a7c6d274876299885496f2f
BLAKE2b-256 00907de35f73f107b497266acd75ffa3b7c68d4543f7a80ff4076b30b5d2231d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for amesa_inference_dev-0.21.0.dev3-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 131bee46f145030c35c5dd8c2ee4dc00e089ae2316b24b91255a714f30e35df1
MD5 a6b2977aaefb4421e62672b72d11d0e5
BLAKE2b-256 a878f8bd9ba3a08bc55b951fa5467b48d83a0f65bebcca729e0b5b354332066d

See more details on using hashes here.

Provenance

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